Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial") translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000973/0.0009732, allocations: 94.94 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001289/0.001289, allocations: 168 kB / 18.25 MB, free: 5.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.431/1.431, allocations: 223.3 MB / 242.3 MB, free: 208 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2213/0.2213, allocations: 44.25 MB / 337.7 MB, free: 2.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004086/0.0004086, allocations: 8 kB / 410.3 MB, free: 27.33 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1509/0.1513, allocations: 61.92 MB / 472.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.0007364/0.1521, allocations: 226.9 kB / 472.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002801/0.1549, allocations: 2.049 MB / 474.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.315e-05/0.1549, allocations: 0 / 474.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.307e-05/0.1549, allocations: 3.938 kB / 474.5 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.08e-06/0.1549, allocations: 0 / 474.5 MB, free: 11.08 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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.001189/0.1561, allocations: 409.8 kB / 474.9 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.384e-05/0.1562, allocations: 4 kB / 474.9 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.828e-05/0.1562, allocations: 4 kB / 474.9 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.891e-05/0.1563, allocations: 0 / 474.9 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.266e-05/0.1563, allocations: 4 kB / 474.9 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.345e-05/0.1563, allocations: 0 / 474.9 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009842/0.1573, allocations: 0.6667 MB / 475.6 MB, free: 10 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.095e-06/0.1573, allocations: 4 kB / 475.6 MB, free: 10 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.416e-05/0.1574, allocations: 29.7 kB / 475.6 MB, free: 9.965 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005408/0.1579, allocations: 395.3 kB / 476 MB, free: 9.578 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1579, allocations: 0 / 476 MB, free: 9.578 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1579, allocations: 3.938 kB / 476 MB, free: 9.574 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.209e-06/0.1579, allocations: 0 / 476 MB, free: 9.574 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.000425/0.1584, allocations: 405.3 kB / 476.4 MB, free: 9.125 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.1584, allocations: 12.03 kB / 476.4 MB, free: 9.113 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.378e-05/0.1585, allocations: 0.9375 kB / 476.4 MB, free: 9.113 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.113e-05/0.1585, allocations: 164.4 kB / 476.6 MB, free: 8.914 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.209e-05/0.1586, allocations: 384 / 476.6 MB, free: 8.914 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.859e-06/0.1586, allocations: 384 / 476.6 MB, free: 8.914 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.441e-05/0.1587, allocations: 37.95 kB / 476.6 MB, free: 8.871 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.091e-06/0.1587, allocations: 3.938 kB / 476.6 MB, free: 8.867 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.957e-06/0.1587, allocations: 0 / 476.6 MB, free: 8.867 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/0.1587, allocations: 4 kB / 476.6 MB, free: 8.863 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2e-05/0.1587, allocations: 4 kB / 476.6 MB, free: 8.859 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001301/0.1589, allocations: 149.7 kB / 476.8 MB, free: 8.664 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.606e-05/0.1589, allocations: 14.67 kB / 476.8 MB, free: 8.641 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.443e-05/0.1589, allocations: 8.859 kB / 476.8 MB, free: 8.629 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.048e-06/0.159, allocations: 0 / 476.8 MB, free: 8.629 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.64e-05/0.159, allocations: 64.2 kB / 476.9 MB, free: 8.551 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.164e-06/0.159, allocations: 0 / 476.9 MB, free: 8.551 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001809/0.1592, allocations: 71.33 kB / 476.9 MB, free: 8.469 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.325e-05/0.1592, allocations: 77.11 kB / 477 MB, free: 8.375 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.618e-05/0.1593, allocations: 93.86 kB / 477.1 MB, free: 8.273 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.525e-05/0.1593, allocations: 25.7 kB / 477.1 MB, free: 8.242 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.891e-05/0.1594, allocations: 80.14 kB / 477.2 MB, free: 8.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.897e-05/0.1594, allocations: 0 / 477.2 MB, free: 8.16 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.369e-05/0.1594, allocations: 9.719 kB / 477.2 MB, free: 8.145 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001087/0.1595, allocations: 319 kB / 477.5 MB, free: 7.824 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.656e-06/0.1595, allocations: 0 / 477.5 MB, free: 7.824 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.519e-06/0.1596, allocations: 4 kB / 477.5 MB, free: 7.82 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.026e-05/0.1596, allocations: 68.19 kB / 477.6 MB, free: 7.738 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.1596, allocations: 0 / 477.6 MB, free: 7.738 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.269e-05/0.1597, allocations: 55.41 kB / 477.7 MB, free: 7.672 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.396e-05/0.1597, allocations: 37.64 kB / 477.7 MB, free: 7.629 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.947e-06/0.1598, allocations: 0 / 477.7 MB, free: 7.629 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.248e-05/0.1598, allocations: 8.094 kB / 477.7 MB, free: 7.621 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.012e-06/0.1598, allocations: 0 / 477.7 MB, free: 7.621 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.201e-06/0.1598, allocations: 0 / 477.7 MB, free: 7.621 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.786e-05/0.1598, allocations: 4 kB / 477.7 MB, free: 7.617 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.798e-06/0.1598, allocations: 7.984 kB / 477.7 MB, free: 7.609 MB / 350.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.446e-05/0.1599, allocations: 131.5 kB / 477.8 MB, free: 7.465 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.616e-06/0.1599, allocations: 3.938 kB / 477.8 MB, free: 7.461 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.325e-05/0.16, allocations: 11.08 kB / 477.9 MB, free: 7.449 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.92e-07/0.16, allocations: 3.938 kB / 477.9 MB, free: 7.445 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.311e-06/0.16, allocations: 4 kB / 477.9 MB, free: 7.441 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.16, allocations: 7.922 kB / 477.9 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.792e-05/0.1601, allocations: 145.7 kB / 478 MB, free: 7.242 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.1601, allocations: 0 / 478 MB, free: 7.242 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.1601, allocations: 0 / 478 MB, free: 7.242 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.518e-06/0.1601, allocations: 7.938 kB / 478 MB, free: 7.234 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.622e-06/0.1601, allocations: 3.938 kB / 478 MB, free: 7.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.41e-07/0.1601, allocations: 0 / 478 MB, free: 7.23 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.1601, allocations: 0 / 478 MB, free: 7.23 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001002/0.1602, allocations: 98.73 kB / 478.1 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.263e-05/0.1603, allocations: 77.11 kB / 478.2 MB, free: 7.016 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.442e-05/0.1603, allocations: 3.938 kB / 478.2 MB, free: 7.012 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.855e-06/0.1603, allocations: 0 / 478.2 MB, free: 7.012 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.368e-05/0.1603, allocations: 4 kB / 478.2 MB, free: 7.008 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.589e-06/0.1604, allocations: 4 kB / 478.2 MB, free: 7.004 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.918e-05/0.1604, allocations: 75.28 kB / 478.3 MB, free: 6.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1604, allocations: 0 / 478.3 MB, free: 6.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003687/0.1608, allocations: 120 kB / 478.4 MB, free: 6.812 MB / 350.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.0007956/0.1616, allocations: 298.8 kB / 478.7 MB, free: 6.523 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.538e-05/0.1617, allocations: 71.33 kB / 478.8 MB, free: 6.441 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1617, allocations: 0 / 478.8 MB, free: 6.441 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.531e-05/0.1617, allocations: 55.41 kB / 478.8 MB, free: 6.375 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001238/0.1619, allocations: 4 kB / 478.8 MB, free: 6.371 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001802/0.162, allocations: 74.7 kB / 478.9 MB, free: 6.27 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000269/0.1623, allocations: 0.677 MB / 479.6 MB, free: 5.566 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.863e-06/0.1623, allocations: 0 / 479.6 MB, free: 5.566 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.091e-05/0.1624, allocations: 7.438 kB / 479.6 MB, free: 5.559 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1624, allocations: 4.125 kB / 479.6 MB, free: 5.555 MB / 350.1 MB Notification: Performance of Templates: time 0.006745/0.1691, allocations: 3.373 MB / 483 MB, free: 2.184 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Math.Random.TestSpecial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches