Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.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.001402/0.001402, allocations: 123 kB / 17.79 MB, free: 5.246 MB / 14.72 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.001508/0.001508, allocations: 207.2 kB / 20.75 MB, free: 2.297 MB / 14.72 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 1.713/1.713, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] 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.2731/0.2731, allocations: 46.92 MB / 357.1 MB, free: 10.3 MB / 286.1 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.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002167/0.002167, allocations: 67.89 kB / 0.4914 GB, free: 7.453 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1592/0.1614, allocations: 66 MB / 0.5559 GB, free: 5.328 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001805/0.1632, allocations: 0.4932 MB / 0.5563 GB, free: 4.832 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.003923/0.1671, allocations: 2.396 MB / 0.5587 GB, free: 2.414 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.75e-05/0.1671, allocations: 0 / 0.5587 GB, free: 2.414 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.41e-05/0.1672, allocations: 4 kB / 0.5587 GB, free: 2.41 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 7.324e-06/0.1672, allocations: 0 / 0.5587 GB, free: 2.41 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Math.mo:1098:5-1194:31:writable] Warning: Pure function 'ModelicaTest.Math.Random.truncatedDistributions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001755/0.1689, allocations: 0.5647 MB / 0.5592 GB, free: 1.844 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.995e-05/0.169, allocations: 7.938 kB / 0.5592 GB, free: 1.836 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.938e-05/0.169, allocations: 4 kB / 0.5592 GB, free: 1.832 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.104e-05/0.169, allocations: 0 / 0.5592 GB, free: 1.832 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.907e-05/0.1691, allocations: 0 / 0.5592 GB, free: 1.832 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.182e-06/0.1691, allocations: 0 / 0.5592 GB, free: 1.832 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001348/0.1704, allocations: 0.737 MB / 0.56 GB, free: 1.094 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.019e-05/0.1704, allocations: 0 / 0.56 GB, free: 1.094 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.073e-05/0.1704, allocations: 0 / 0.56 GB, free: 1.094 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007593/0.1712, allocations: 454.8 kB / 0.5604 GB, free: 0.6484 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.1712, allocations: 4 kB / 0.5604 GB, free: 0.6445 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1712, allocations: 4 kB / 0.5604 GB, free: 0.6406 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.803e-06/0.1712, allocations: 0 / 0.5604 GB, free: 0.6406 MB / 414.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.0006465/0.1719, allocations: 444.1 kB / 0.5608 GB, free: 156 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.771e-05/0.1719, allocations: 12.03 kB / 0.5608 GB, free: 144 kB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.693e-05/0.1719, allocations: 0.9375 kB / 0.5608 GB, free: 144 kB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001719/0.1721, allocations: 168.3 kB / 0.561 GB, free: 15.94 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.033e-05/0.1721, allocations: 384 / 0.561 GB, free: 15.94 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.537e-05/0.1721, allocations: 384 / 0.561 GB, free: 15.94 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001261/0.1723, allocations: 46 kB / 0.561 GB, free: 15.89 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.818e-06/0.1723, allocations: 0 / 0.561 GB, free: 15.89 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.031e-05/0.1723, allocations: 0 / 0.561 GB, free: 15.89 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.89e-06/0.1723, allocations: 0 / 0.561 GB, free: 15.89 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.875e-05/0.1723, allocations: 0 / 0.561 GB, free: 15.89 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001791/0.1725, allocations: 145.7 kB / 0.5612 GB, free: 15.7 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.376e-05/0.1726, allocations: 22.5 kB / 0.5612 GB, free: 15.66 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.879e-05/0.1726, allocations: 4.859 kB / 0.5612 GB, free: 15.66 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.353e-05/0.1726, allocations: 8.094 kB / 0.5612 GB, free: 15.65 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.468e-05/0.1727, allocations: 64.2 kB / 0.5613 GB, free: 15.57 MB / 430.1 MB Notification: Performance of pre-optimization done (n=1): time 1.132e-06/0.1727, allocations: 0 / 0.5613 GB, free: 15.57 MB / 430.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002252/0.1729, allocations: 59.41 kB / 0.5613 GB, free: 15.5 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.913e-05/0.173, allocations: 81.09 kB / 0.5614 GB, free: 15.4 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.756e-05/0.173, allocations: 97.75 kB / 0.5615 GB, free: 15.3 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.808e-05/0.173, allocations: 25.7 kB / 0.5615 GB, free: 15.27 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.267e-05/0.1731, allocations: 80.14 kB / 0.5616 GB, free: 15.18 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.201e-05/0.1731, allocations: 16.06 kB / 0.5616 GB, free: 15.17 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.861e-05/0.1731, allocations: 9.719 kB / 0.5616 GB, free: 15.15 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001758/0.1733, allocations: 310.8 kB / 0.5619 GB, free: 14.84 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.495e-05/0.1733, allocations: 4 kB / 0.5619 GB, free: 14.84 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.761e-06/0.1733, allocations: 0 / 0.5619 GB, free: 14.84 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.933e-05/0.1734, allocations: 60.27 kB / 0.562 GB, free: 14.76 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.1734, allocations: 0 / 0.562 GB, free: 14.76 MB / 430.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001/0.1735, allocations: 71.45 kB / 0.5621 GB, free: 14.68 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.268e-05/0.1735, allocations: 33.64 kB / 0.5621 GB, free: 14.64 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.1736, allocations: 0 / 0.5621 GB, free: 14.64 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.1736, allocations: 0 / 0.5621 GB, free: 14.64 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.292e-06/0.1736, allocations: 3.938 kB / 0.5621 GB, free: 14.64 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.672e-06/0.1736, allocations: 0 / 0.5621 GB, free: 14.64 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.967e-05/0.1736, allocations: 4 kB / 0.5621 GB, free: 14.63 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.873e-06/0.1736, allocations: 3.938 kB / 0.5621 GB, free: 14.63 MB / 430.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 0.0001315/0.1737, allocations: 137.7 kB / 0.5622 GB, free: 14.48 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.269e-05/0.1737, allocations: 11.97 kB / 0.5622 GB, free: 14.47 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.318e-06/0.1738, allocations: 3.125 kB / 0.5622 GB, free: 14.47 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-06/0.1738, allocations: 0 / 0.5622 GB, free: 14.47 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.1738, allocations: 0 / 0.5622 GB, free: 14.47 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.1738, allocations: 0 / 0.5622 GB, free: 14.47 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001374/0.1739, allocations: 153.7 kB / 0.5624 GB, free: 14.27 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.1739, allocations: 0 / 0.5624 GB, free: 14.27 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.41e-07/0.1739, allocations: 4 kB / 0.5624 GB, free: 14.27 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.467e-06/0.1739, allocations: 3.938 kB / 0.5624 GB, free: 14.26 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.514e-06/0.1739, allocations: 0 / 0.5624 GB, free: 14.26 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.81e-07/0.1739, allocations: 0 / 0.5624 GB, free: 14.26 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1739, allocations: 4 kB / 0.5624 GB, free: 14.26 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001149/0.174, allocations: 90.83 kB / 0.5625 GB, free: 14.14 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.209e-05/0.1741, allocations: 85.05 kB / 0.5626 GB, free: 14.04 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.458e-05/0.1741, allocations: 3.938 kB / 0.5626 GB, free: 14.04 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.154e-05/0.1741, allocations: 4 kB / 0.5626 GB, free: 14.04 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.12e-05/0.1741, allocations: 3.984 kB / 0.5626 GB, free: 14.03 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.765e-06/0.1741, allocations: 0 / 0.5626 GB, free: 14.03 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.734e-05/0.1742, allocations: 79.31 kB / 0.5627 GB, free: 13.95 MB / 430.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1742, allocations: 0 / 0.5627 GB, free: 13.95 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005186/0.1747, allocations: 163.3 kB / 0.5628 GB, free: 13.79 MB / 430.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.000904/0.1756, allocations: 355.6 kB / 0.5632 GB, free: 13.44 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001326/0.1757, allocations: 59.41 kB / 0.5632 GB, free: 13.37 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.1757, allocations: 0 / 0.5632 GB, free: 13.37 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 5.18e-05/0.1758, allocations: 55.41 kB / 0.5633 GB, free: 13.3 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001277/0.1759, allocations: 0 / 0.5633 GB, free: 13.3 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002315/0.1762, allocations: 88.98 kB / 0.5633 GB, free: 13.19 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003624/0.1765, allocations: 0.6729 MB / 0.564 GB, free: 12.49 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 6.251e-06/0.1765, allocations: 0 / 0.564 GB, free: 12.49 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.362e-05/0.1765, allocations: 7.438 kB / 0.564 GB, free: 12.48 MB / 430.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1765, allocations: 128 / 0.564 GB, free: 12.48 MB / 430.1 MB Notification: Performance of Templates: time 0.008253/0.1848, allocations: 3.594 MB / 0.5675 GB, free: 8.891 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.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.724206160753965]