Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008829/0.0008829, allocations: 87.62 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.005637/0.005637, allocations: 161 kB / 24.7 MB, free: 9.41 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8816/0.8816, allocations: 177.1 MB / 205 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2684/0.2684, allocations: 34.26 MB / 295.7 MB, free: 0.7148 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial") translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.413e-06/1.413e-06, allocations: 0 / 443.4 MB, free: 1.16 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.308e-05/2.45e-05, allocations: 2.281 kB / 443.4 MB, free: 1.156 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.0009691/0.0009936, allocations: 0.5001 MB / 443.9 MB, free: 0.6602 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1678/0.1688, allocations: 1.93 MB / 445.9 MB, free: 43.48 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.968e-05/0.1688, allocations: 0 / 445.9 MB, free: 43.48 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 2.084e-05/0.1689, allocations: 0.5625 kB / 445.9 MB, free: 43.48 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 6.542e-06/0.1689, allocations: 0 / 445.9 MB, free: 43.48 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.001054/0.1699, allocations: 0.5001 MB / 446.4 MB, free: 43.3 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.702e-05/0.17, allocations: 2.781 kB / 446.4 MB, free: 43.3 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.97e-05/0.17, allocations: 3.281 kB / 446.4 MB, free: 43.3 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.588e-05/0.1701, allocations: 2.906 kB / 446.4 MB, free: 43.3 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.925e-05/0.1701, allocations: 3.531 kB / 446.4 MB, free: 43.3 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 7.655e-06/0.1701, allocations: 0 / 446.4 MB, free: 43.3 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000607/0.1707, allocations: 0.6667 MB / 447 MB, free: 43.11 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 7.123e-06/0.1707, allocations: 0 / 447 MB, free: 43.11 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.088e-05/0.1707, allocations: 6.25 kB / 447.1 MB, free: 43.11 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003839/0.1711, allocations: 490.8 kB / 447.5 MB, free: 42.95 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.1711, allocations: 0 / 447.5 MB, free: 42.95 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1711, allocations: 2.594 kB / 447.5 MB, free: 42.95 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.519e-06/0.1711, allocations: 0 / 447.5 MB, free: 42.95 MB / 410.7 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.0002766/0.1714, allocations: 340.3 kB / 447.9 MB, free: 42.62 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.315e-05/0.1714, allocations: 8.094 kB / 447.9 MB, free: 42.62 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.295e-05/0.1715, allocations: 0.9375 kB / 447.9 MB, free: 42.62 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.551e-05/0.1715, allocations: 105.6 kB / 448 MB, free: 42.5 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.054e-05/0.1715, allocations: 384 / 448 MB, free: 42.5 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.514e-06/0.1715, allocations: 3.844 kB / 448 MB, free: 42.5 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.397e-05/0.1716, allocations: 62.77 kB / 448 MB, free: 42.43 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.644e-06/0.1716, allocations: 6.656 kB / 448 MB, free: 42.43 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.076e-06/0.1716, allocations: 384 / 448 MB, free: 42.43 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.059e-06/0.1716, allocations: 6.875 kB / 448.1 MB, free: 42.42 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.787e-05/0.1716, allocations: 32.23 kB / 448.1 MB, free: 42.39 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.564e-05/0.1717, allocations: 93.33 kB / 448.2 MB, free: 42.27 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.575e-05/0.1717, allocations: 42.81 kB / 448.2 MB, free: 42.21 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.352e-05/0.1717, allocations: 36.7 kB / 448.3 MB, free: 42.17 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.402e-06/0.1717, allocations: 0 / 448.3 MB, free: 42.17 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.409e-05/0.1718, allocations: 64.05 kB / 448.3 MB, free: 42.1 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 4.61e-07/0.1718, allocations: 0 / 448.3 MB, free: 42.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001461/0.1719, allocations: 122.8 kB / 448.4 MB, free: 41.96 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.005e-05/0.1719, allocations: 81.05 kB / 448.5 MB, free: 41.87 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.543e-05/0.172, allocations: 89.86 kB / 448.6 MB, free: 41.77 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.589e-06/0.172, allocations: 25.7 kB / 448.6 MB, free: 41.74 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.052e-06/0.172, allocations: 83.08 kB / 448.7 MB, free: 41.66 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.864e-05/0.172, allocations: 3.266 kB / 448.7 MB, free: 41.66 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.181e-05/0.172, allocations: 16.69 kB / 448.7 MB, free: 41.64 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.149e-05/0.172, allocations: 310.8 kB / 449 MB, free: 41.32 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.396e-05/0.1721, allocations: 29.03 kB / 449.1 MB, free: 41.29 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.258e-06/0.1721, allocations: 28.67 kB / 449.1 MB, free: 41.26 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.013e-05/0.1721, allocations: 67.3 kB / 449.2 MB, free: 41.18 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.1721, allocations: 0 / 449.2 MB, free: 41.18 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.113e-05/0.1721, allocations: 93.25 kB / 449.2 MB, free: 41.09 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.39e-05/0.1722, allocations: 31.3 kB / 449.3 MB, free: 41.05 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-06/0.1722, allocations: 0 / 449.3 MB, free: 41.05 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.359e-05/0.1722, allocations: 0 / 449.3 MB, free: 41.05 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.162e-06/0.1722, allocations: 0 / 449.3 MB, free: 41.05 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.1722, allocations: 7.875 kB / 449.3 MB, free: 41.05 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.417e-05/0.1722, allocations: 2.75 kB / 449.3 MB, free: 41.05 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.843e-06/0.1722, allocations: 0 / 449.3 MB, free: 41.05 MB / 410.7 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 4.597e-05/0.1723, allocations: 145.3 kB / 449.4 MB, free: 40.89 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.966e-06/0.1723, allocations: 0 / 449.4 MB, free: 40.89 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.328e-05/0.1723, allocations: 12.59 kB / 449.4 MB, free: 40.89 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.1723, allocations: 0 / 449.4 MB, free: 40.89 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.1723, allocations: 0 / 449.4 MB, free: 40.89 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.1723, allocations: 5.438 kB / 449.4 MB, free: 40.88 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.742e-05/0.1723, allocations: 99.61 kB / 449.5 MB, free: 40.76 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.11e-07/0.1723, allocations: 0 / 449.5 MB, free: 40.76 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.61e-07/0.1723, allocations: 3.938 kB / 449.5 MB, free: 40.76 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.122e-06/0.1723, allocations: 1.75 kB / 449.6 MB, free: 40.76 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.213e-06/0.1723, allocations: 4 kB / 449.6 MB, free: 40.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.1723, allocations: 2.906 kB / 449.6 MB, free: 40.75 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-07/0.1723, allocations: 0 / 449.6 MB, free: 40.75 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.042e-05/0.1724, allocations: 118.9 kB / 449.7 MB, free: 40.62 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.97e-06/0.1724, allocations: 2.531 kB / 449.7 MB, free: 40.62 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.067e-05/0.1724, allocations: 0 / 449.7 MB, free: 40.62 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.104e-06/0.1724, allocations: 4 kB / 449.7 MB, free: 40.62 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.459e-05/0.1724, allocations: 2.531 kB / 449.7 MB, free: 40.62 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.613e-06/0.1724, allocations: 0 / 449.7 MB, free: 40.62 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.125e-05/0.1724, allocations: 79.22 kB / 449.8 MB, free: 40.54 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1724, allocations: 32 / 449.8 MB, free: 40.54 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002513/0.1727, allocations: 135.3 kB / 449.9 MB, free: 40.51 MB / 410.7 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.0006084/0.1733, allocations: 334.2 kB / 450.2 MB, free: 40.38 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001098/0.1734, allocations: 123.7 kB / 450.3 MB, free: 40.24 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1734, allocations: 0 / 450.3 MB, free: 40.24 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.692e-05/0.1734, allocations: 86.19 kB / 450.4 MB, free: 40.15 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001083/0.1735, allocations: 2.312 kB / 450.4 MB, free: 40.15 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001933/0.1737, allocations: 136.1 kB / 450.6 MB, free: 39.99 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.327e-05/0.1738, allocations: 60.48 kB / 450.6 MB, free: 39.92 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.38e-05/0.1738, allocations: 11.38 kB / 450.6 MB, free: 39.91 MB / 410.7 MB Notification: Performance of SimCode: time 5.31e-07/0.1738, allocations: 0 / 450.6 MB, free: 39.91 MB / 410.7 MB Notification: Performance of Templates: time 0.003784/0.1776, allocations: 3.438 MB / 454.1 MB, free: 39.67 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestSpecial/TestSpecial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.7615938344970345]