Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial") translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001519/0.001524, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001768/0.001768, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.49/1.49, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2335/0.2335, allocations: 46.1 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002158/0.002158, allocations: 79.31 kB / 417.6 MB, free: 19.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1346/0.1367, allocations: 62.44 MB / 480 MB, free: 5.305 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.00225/0.1391, allocations: 499.6 kB / 480.5 MB, free: 4.812 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003958/0.143, allocations: 2.03 MB / 482.5 MB, free: 2.762 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.967e-05/0.1431, allocations: 4 kB / 482.5 MB, free: 2.758 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.772e-05/0.1432, allocations: 0 / 482.5 MB, free: 2.758 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.093e-06/0.1432, allocations: 0 / 482.5 MB, free: 2.758 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:928:5-1011:16:writable] Warning: Pure function 'ModelicaTest.Math.Random.special' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.002051/0.1452, allocations: 0.4945 MB / 483 MB, free: 2.266 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.439e-05/0.1453, allocations: 7.984 kB / 483 MB, free: 2.258 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.864e-05/0.1453, allocations: 0 / 483 MB, free: 2.258 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.779e-05/0.1454, allocations: 0 / 483 MB, free: 2.258 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.402e-05/0.1454, allocations: 4 kB / 483 MB, free: 2.254 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.482e-06/0.1454, allocations: 0 / 483 MB, free: 2.254 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001279/0.1467, allocations: 0.6357 MB / 483.7 MB, free: 1.617 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.366e-05/0.1467, allocations: 0 / 483.7 MB, free: 1.617 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.814e-05/0.1468, allocations: 3.938 kB / 483.7 MB, free: 1.613 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008571/0.1476, allocations: 391.2 kB / 484.1 MB, free: 1.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.818e-06/0.1476, allocations: 0 / 484.1 MB, free: 1.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.196e-06/0.1476, allocations: 8 kB / 484.1 MB, free: 1.223 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.1477, allocations: 0 / 484.1 MB, free: 1.223 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0006049/0.1483, allocations: 409.5 kB / 484.5 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.1483, allocations: 8.031 kB / 484.5 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.167e-05/0.1484, allocations: 0.9375 kB / 484.5 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001355/0.1485, allocations: 164.4 kB / 484.6 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.528e-05/0.1486, allocations: 384 / 484.6 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.283e-05/0.1486, allocations: 4.359 kB / 484.6 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001135/0.1487, allocations: 38.02 kB / 484.7 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.358e-06/0.1487, allocations: 0 / 484.7 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.218e-05/0.1487, allocations: 0 / 484.7 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.1487, allocations: 0 / 484.7 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.165e-05/0.1488, allocations: 7.922 kB / 484.7 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002102/0.149, allocations: 149.7 kB / 484.8 MB, free: 320 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.502e-05/0.1491, allocations: 22.56 kB / 484.9 MB, free: 288 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.144e-05/0.1491, allocations: 4.859 kB / 484.9 MB, free: 280 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.386e-05/0.1491, allocations: 4 kB / 484.9 MB, free: 276 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.172e-05/0.1492, allocations: 64.27 kB / 484.9 MB, free: 196 kB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.513e-06/0.1492, allocations: 0 / 484.9 MB, free: 196 kB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002549/0.1495, allocations: 67.28 kB / 485 MB, free: 116 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.831e-05/0.1495, allocations: 85.09 kB / 485.1 MB, free: 12 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.328e-05/0.1496, allocations: 89.86 kB / 485.2 MB, free: 15.91 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.931e-05/0.1497, allocations: 25.7 kB / 485.2 MB, free: 15.88 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.369e-05/0.1497, allocations: 80.14 kB / 485.3 MB, free: 15.8 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.346e-05/0.1497, allocations: 4.125 kB / 485.3 MB, free: 15.8 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.966e-05/0.1498, allocations: 13.72 kB / 485.3 MB, free: 15.78 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.1499, allocations: 310.8 kB / 485.6 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.99e-05/0.15, allocations: 0 / 485.6 MB, free: 15.46 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.179e-05/0.15, allocations: 4 kB / 485.6 MB, free: 15.46 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.453e-05/0.1501, allocations: 64.27 kB / 485.7 MB, free: 15.38 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.1e-06/0.1501, allocations: 4 kB / 485.7 MB, free: 15.38 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.857e-05/0.1502, allocations: 67.39 kB / 485.7 MB, free: 15.3 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.018e-05/0.1502, allocations: 41.58 kB / 485.8 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.072e-06/0.1502, allocations: 0 / 485.8 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.681e-05/0.1503, allocations: 0 / 485.8 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.042e-06/0.1503, allocations: 0 / 485.8 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.1503, allocations: 0 / 485.8 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.803e-05/0.1503, allocations: 0 / 485.8 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.017e-05/0.1503, allocations: 4 kB / 485.8 MB, free: 15.25 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.698e-05/0.1504, allocations: 135.5 kB / 485.9 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.278e-05/0.1504, allocations: 7.969 kB / 485.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.271e-05/0.1505, allocations: 11.12 kB / 485.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.1505, allocations: 0 / 485.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.1505, allocations: 0 / 485.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.1505, allocations: 0 / 485.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001071/0.1506, allocations: 145.7 kB / 486.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.1506, allocations: 0 / 486.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.81e-07/0.1506, allocations: 0 / 486.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.572e-06/0.1506, allocations: 7.938 kB / 486.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.645e-06/0.1506, allocations: 0 / 486.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.1506, allocations: 0 / 486.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1507, allocations: 4 kB / 486.1 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.887e-05/0.1508, allocations: 94.77 kB / 486.2 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.678e-05/0.1508, allocations: 81.02 kB / 486.3 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.444e-05/0.1508, allocations: 3.938 kB / 486.3 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.124e-05/0.1508, allocations: 0 / 486.3 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.664e-05/0.1509, allocations: 4 kB / 486.3 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.685e-06/0.1509, allocations: 0 / 486.3 MB, free: 14.66 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.18e-05/0.1509, allocations: 83.34 kB / 486.3 MB, free: 14.58 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1509, allocations: 0 / 486.3 MB, free: 14.58 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005898/0.1515, allocations: 132 kB / 486.5 MB, free: 14.45 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001004/0.1525, allocations: 315 kB / 486.8 MB, free: 14.14 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001275/0.1527, allocations: 59.41 kB / 486.8 MB, free: 14.07 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1527, allocations: 0 / 486.8 MB, free: 14.07 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.504e-05/0.1527, allocations: 59.34 kB / 486.9 MB, free: 14 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001443/0.1529, allocations: 4 kB / 486.9 MB, free: 13.99 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002274/0.1531, allocations: 84.92 kB / 487 MB, free: 13.88 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003461/0.1535, allocations: 0.6691 MB / 487.6 MB, free: 13.19 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.508e-06/0.1535, allocations: 4 kB / 487.7 MB, free: 13.18 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.091e-05/0.1535, allocations: 7.438 kB / 487.7 MB, free: 13.18 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1535, allocations: 0 / 487.7 MB, free: 13.18 MB / 366.1 MB Notification: Performance of Templates: time 0.007981/0.1615, allocations: 3.521 MB / 491.2 MB, free: 9.66 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestSpecial/TestSpecial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches