Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001452/0.001452, allocations: 108.3 kB / 19.7 MB, free: 1.918 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.001672/0.001672, allocations: 216.6 kB / 22.99 MB, free: 4.977 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.64/1.64, allocations: 207.7 MB / 233.8 MB, free: 9.797 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2452/0.2452, allocations: 44.27 MB / 330.3 MB, free: 9.312 MB / 270.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002359/0.002359, allocations: 71.91 kB / 468 MB, free: 3.848 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1537/0.1561, allocations: 61.05 MB / 0.5166 GB, free: 6.676 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001849/0.1579, allocations: 0.4988 MB / 0.5171 GB, free: 6.176 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00363/0.1615, allocations: 2.228 MB / 0.5193 GB, free: 3.922 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.249e-05/0.1616, allocations: 4 kB / 0.5193 GB, free: 3.918 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.485e-05/0.1616, allocations: 0 / 0.5193 GB, free: 3.918 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.682e-06/0.1616, allocations: 0 / 0.5193 GB, free: 3.918 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001867/0.1635, allocations: 0.5726 MB / 0.5199 GB, free: 3.344 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.934e-05/0.1635, allocations: 4 kB / 0.5199 GB, free: 3.34 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.257e-05/0.1636, allocations: 3.984 kB / 0.5199 GB, free: 3.336 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.024e-05/0.1636, allocations: 4 kB / 0.5199 GB, free: 3.332 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.018e-05/0.1636, allocations: 0 / 0.5199 GB, free: 3.332 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.993e-06/0.1636, allocations: 4 kB / 0.5199 GB, free: 3.328 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001226/0.1648, allocations: 0.6667 MB / 0.5205 GB, free: 2.66 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.096e-05/0.1648, allocations: 0 / 0.5205 GB, free: 2.66 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.105e-05/0.1649, allocations: 0 / 0.5205 GB, free: 2.66 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000657/0.1655, allocations: 434.9 kB / 0.521 GB, free: 2.234 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.1655, allocations: 0 / 0.521 GB, free: 2.234 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.1655, allocations: 0 / 0.521 GB, free: 2.234 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.55e-06/0.1655, allocations: 0 / 0.521 GB, free: 2.234 MB / 398.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.0005094/0.166, allocations: 371 kB / 0.5213 GB, free: 1.836 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/0.1661, allocations: 8.031 kB / 0.5213 GB, free: 1.828 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.536e-05/0.1661, allocations: 0.9375 kB / 0.5213 GB, free: 1.828 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.785e-05/0.1662, allocations: 110.5 kB / 0.5214 GB, free: 1.695 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.201e-05/0.1662, allocations: 384 / 0.5214 GB, free: 1.695 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.095e-05/0.1662, allocations: 4.312 kB / 0.5214 GB, free: 1.691 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001375/0.1664, allocations: 71.69 kB / 0.5215 GB, free: 1.609 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.785e-06/0.1664, allocations: 0 / 0.5215 GB, free: 1.609 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.837e-06/0.1664, allocations: 0 / 0.5215 GB, free: 1.609 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-06/0.1664, allocations: 0 / 0.5215 GB, free: 1.609 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.3e-05/0.1664, allocations: 33.7 kB / 0.5215 GB, free: 1.57 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001216/0.1666, allocations: 93.33 kB / 0.5216 GB, free: 1.449 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.762e-05/0.1666, allocations: 44.31 kB / 0.5217 GB, free: 1.391 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.918e-05/0.1667, allocations: 38.5 kB / 0.5217 GB, free: 1.344 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.075e-06/0.1667, allocations: 0 / 0.5217 GB, free: 1.344 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.502e-05/0.1668, allocations: 68.31 kB / 0.5218 GB, free: 1.262 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.1668, allocations: 0 / 0.5218 GB, free: 1.262 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002768/0.167, allocations: 118.8 kB / 0.5219 GB, free: 1.121 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.632e-05/0.1671, allocations: 77.11 kB / 0.5219 GB, free: 1.027 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.923e-05/0.1672, allocations: 93.84 kB / 0.522 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.707e-05/0.1672, allocations: 25.7 kB / 0.5221 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.976e-05/0.1672, allocations: 84.14 kB / 0.5221 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.965e-05/0.1673, allocations: 4 kB / 0.5221 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.66e-05/0.1673, allocations: 9.719 kB / 0.5222 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001985/0.1675, allocations: 310.8 kB / 0.5224 GB, free: 488 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.623e-05/0.1675, allocations: 33.64 kB / 0.5225 GB, free: 448 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.143e-05/0.1675, allocations: 25.83 kB / 0.5225 GB, free: 416 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.267e-05/0.1676, allocations: 72.27 kB / 0.5226 GB, free: 328 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1676, allocations: 0 / 0.5226 GB, free: 328 kB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.82e-05/0.1677, allocations: 89.09 kB / 0.5227 GB, free: 220 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.665e-05/0.1677, allocations: 29.7 kB / 0.5227 GB, free: 184 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.98e-06/0.1677, allocations: 4 kB / 0.5227 GB, free: 180 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.654e-05/0.1677, allocations: 3.938 kB / 0.5227 GB, free: 176 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.052e-06/0.1677, allocations: 0 / 0.5227 GB, free: 176 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.1678, allocations: 0 / 0.5227 GB, free: 176 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.569e-05/0.1678, allocations: 0 / 0.5227 GB, free: 176 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.907e-05/0.1678, allocations: 12 kB / 0.5227 GB, free: 164 kB / 398.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.0001149/0.1679, allocations: 143.5 kB / 0.5228 GB, free: 4 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.404e-06/0.1679, allocations: 0 / 0.5228 GB, free: 4 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.047e-05/0.1679, allocations: 6.938 kB / 0.5228 GB, free: 0 / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.92e-07/0.1679, allocations: 0 / 0.5228 GB, free: 0 / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.1679, allocations: 4.047 kB / 0.5229 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-06/0.1679, allocations: 0 / 0.5229 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.758e-05/0.168, allocations: 97.27 kB / 0.5229 GB, free: 15.87 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.168, allocations: 0 / 0.5229 GB, free: 15.87 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.168, allocations: 3.938 kB / 0.523 GB, free: 15.87 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.253e-06/0.168, allocations: 0 / 0.523 GB, free: 15.87 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.257e-06/0.168, allocations: 8 kB / 0.523 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.799e-06/0.168, allocations: 7.938 kB / 0.523 GB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.168, allocations: 0 / 0.523 GB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001294/0.1682, allocations: 116.5 kB / 0.5231 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.649e-06/0.1682, allocations: 0 / 0.5231 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.113e-05/0.1682, allocations: 0 / 0.5231 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.183e-05/0.1682, allocations: 11.92 kB / 0.5231 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.413e-05/0.1682, allocations: 0 / 0.5231 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.435e-06/0.1682, allocations: 0 / 0.5231 GB, free: 15.7 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.971e-05/0.1683, allocations: 79.22 kB / 0.5232 GB, free: 15.62 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1683, allocations: 4.031 kB / 0.5232 GB, free: 15.61 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004535/0.1687, allocations: 163.3 kB / 0.5233 GB, free: 15.45 MB / 414.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.0008289/0.1695, allocations: 335 kB / 0.5236 GB, free: 15.12 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001573/0.1697, allocations: 114.8 kB / 0.5238 GB, free: 14.98 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.1697, allocations: 0 / 0.5238 GB, free: 14.98 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.09e-05/0.1698, allocations: 85.17 kB / 0.5238 GB, free: 14.88 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001301/0.1699, allocations: 0 / 0.5238 GB, free: 14.88 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002808/0.1702, allocations: 114.5 kB / 0.5239 GB, free: 14.73 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.281e-05/0.1702, allocations: 55.36 kB / 0.524 GB, free: 14.66 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.742e-06/0.1702, allocations: 0 / 0.524 GB, free: 14.66 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.577e-05/0.1703, allocations: 11.44 kB / 0.524 GB, free: 14.65 MB / 414.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1703, allocations: 0 / 0.524 GB, free: 14.65 MB / 414.1 MB Notification: Performance of Templates: time 0.00779/0.178, allocations: 3.517 MB / 0.5274 GB, free: 11.13 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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.81809214502573]