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.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) 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.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.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001398/0.001399, allocations: 102.5 kB / 15.98 MB, free: 5.906 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.001633/0.001633, allocations: 191.8 kB / 16.9 MB, free: 5.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.748/1.748, allocations: 205.1 MB / 222.8 MB, free: 12.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.272/0.272, allocations: 43.5 MB / 313.6 MB, free: 0.6914 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001446, allocations: 72.78 kB / 382.2 MB, free: 56.93 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1495/0.151, allocations: 57.79 MB / 440 MB, free: 7.336 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.002148/0.1532, allocations: 0.5582 MB / 440.6 MB, free: 6.77 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003231/0.1565, allocations: 2.333 MB / 442.9 MB, free: 4.414 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.645e-05/0.1565, allocations: 0 / 442.9 MB, free: 4.414 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.823e-05/0.1565, allocations: 0 / 442.9 MB, free: 4.414 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.941e-06/0.1565, allocations: 4 kB / 442.9 MB, free: 4.41 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001447/0.158, allocations: 0.5141 MB / 443.4 MB, free: 3.898 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 5.283e-05/0.1581, allocations: 8 kB / 443.4 MB, free: 3.891 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.764e-05/0.1581, allocations: 0 / 443.4 MB, free: 3.891 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.226e-05/0.1581, allocations: 0 / 443.4 MB, free: 3.891 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.878e-05/0.1582, allocations: 7.938 kB / 443.4 MB, free: 3.883 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.993e-06/0.1582, allocations: 0 / 443.4 MB, free: 3.883 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009401/0.1591, allocations: 0.7213 MB / 444.2 MB, free: 3.16 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.049e-05/0.1591, allocations: 0 / 444.2 MB, free: 3.16 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.866e-05/0.1592, allocations: 0 / 444.2 MB, free: 3.16 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006409/0.1598, allocations: 471.3 kB / 444.6 MB, free: 2.699 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.102e-06/0.1599, allocations: 0 / 444.6 MB, free: 2.699 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.955e-06/0.1599, allocations: 0 / 444.6 MB, free: 2.699 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.582e-06/0.1599, allocations: 0 / 444.6 MB, free: 2.699 MB / 318.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.0005088/0.1604, allocations: 433.2 kB / 445 MB, free: 2.223 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.868e-05/0.1604, allocations: 11.89 kB / 445 MB, free: 2.211 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.932e-05/0.1605, allocations: 8.938 kB / 445.1 MB, free: 2.203 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.954e-05/0.1606, allocations: 160.4 kB / 445.2 MB, free: 2.008 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.896e-05/0.1606, allocations: 4.312 kB / 445.2 MB, free: 2.004 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.515e-05/0.1607, allocations: 4.312 kB / 445.2 MB, free: 2 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001309/0.1608, allocations: 38 kB / 445.3 MB, free: 1.957 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.1608, allocations: 3.938 kB / 445.3 MB, free: 1.953 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.527e-06/0.1608, allocations: 0 / 445.3 MB, free: 1.953 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/0.1608, allocations: 0 / 445.3 MB, free: 1.953 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.163e-05/0.1609, allocations: 0 / 445.3 MB, free: 1.953 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001202/0.161, allocations: 157.7 kB / 445.4 MB, free: 1.75 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.298e-05/0.1611, allocations: 22.5 kB / 445.4 MB, free: 1.719 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.155e-05/0.1611, allocations: 4.859 kB / 445.4 MB, free: 1.711 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.468e-05/0.1611, allocations: 4.094 kB / 445.4 MB, free: 1.707 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.198e-05/0.1611, allocations: 60.2 kB / 445.5 MB, free: 1.633 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.1612, allocations: 0 / 445.5 MB, free: 1.633 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001949/0.1614, allocations: 63.41 kB / 445.6 MB, free: 1.559 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.987e-05/0.1614, allocations: 85.22 kB / 445.7 MB, free: 1.457 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.117e-05/0.1614, allocations: 89.86 kB / 445.7 MB, free: 1.359 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.408e-06/0.1615, allocations: 25.7 kB / 445.8 MB, free: 1.328 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.685e-05/0.1615, allocations: 80.14 kB / 445.8 MB, free: 1.246 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.314e-05/0.1615, allocations: 7.938 kB / 445.8 MB, free: 1.238 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.266e-05/0.1615, allocations: 9.719 kB / 445.9 MB, free: 1.223 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.602e-05/0.1616, allocations: 314.8 kB / 446.2 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.186e-05/0.1616, allocations: 4 kB / 446.2 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.873e-06/0.1616, allocations: 8 kB / 446.2 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.801e-05/0.1617, allocations: 60.27 kB / 446.2 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.1617, allocations: 0 / 446.2 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.308e-05/0.1618, allocations: 63.39 kB / 446.3 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.187e-05/0.1618, allocations: 33.64 kB / 446.3 MB, free: 0.707 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.1618, allocations: 0 / 446.3 MB, free: 0.707 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.787e-05/0.1618, allocations: 3.984 kB / 446.3 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.593e-06/0.1618, allocations: 0 / 446.3 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.1618, allocations: 0 / 446.3 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.088e-05/0.1619, allocations: 8.094 kB / 446.3 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.295e-06/0.1619, allocations: 3.938 kB / 446.3 MB, free: 0.6914 MB / 318.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 7.086e-05/0.162, allocations: 147.5 kB / 446.5 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.976e-06/0.162, allocations: 7.938 kB / 446.5 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.048e-05/0.162, allocations: 3.125 kB / 446.5 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.162, allocations: 0 / 446.5 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.162, allocations: 3.938 kB / 446.5 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.162, allocations: 0 / 446.5 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.635e-05/0.1621, allocations: 145.7 kB / 446.6 MB, free: 332 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.1621, allocations: 4 kB / 446.7 MB, free: 328 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.062e-06/0.1621, allocations: 4 kB / 446.7 MB, free: 324 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.764e-06/0.1621, allocations: 3.938 kB / 446.7 MB, free: 320 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.755e-06/0.1621, allocations: 0 / 446.7 MB, free: 320 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.42e-07/0.1621, allocations: 0 / 446.7 MB, free: 320 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.1621, allocations: 3.938 kB / 446.7 MB, free: 316 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.74e-05/0.1622, allocations: 94.81 kB / 446.8 MB, free: 196 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.488e-05/0.1622, allocations: 81.14 kB / 446.8 MB, free: 96 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.59e-05/0.1623, allocations: 3.938 kB / 446.8 MB, free: 92 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.306e-06/0.1623, allocations: 0 / 446.8 MB, free: 92 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.497e-05/0.1623, allocations: 7.938 kB / 446.8 MB, free: 84 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.777e-06/0.1623, allocations: 4 kB / 446.9 MB, free: 80 kB / 318.1 MB Notification: Performance of sorting global known variables: time 2.796e-05/0.1624, allocations: 75.28 kB / 446.9 MB, free: 4 kB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1624, allocations: 0 / 446.9 MB, free: 4 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004877/0.1629, allocations: 152 kB / 447.1 MB, free: 15.86 MB / 334.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.0008201/0.1637, allocations: 336.8 kB / 447.4 MB, free: 15.52 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001327/0.1638, allocations: 63.39 kB / 447.5 MB, free: 15.45 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.1638, allocations: 0 / 447.5 MB, free: 15.45 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.251e-05/0.1639, allocations: 55.41 kB / 447.5 MB, free: 15.38 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001471/0.164, allocations: 1.031 kB / 447.5 MB, free: 15.38 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002356/0.1643, allocations: 85.2 kB / 447.6 MB, free: 15.27 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003255/0.1646, allocations: 0.6767 MB / 448.3 MB, free: 14.57 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.995e-06/0.1646, allocations: 0 / 448.3 MB, free: 14.57 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.004e-05/0.1647, allocations: 11.44 kB / 448.3 MB, free: 14.56 MB / 334.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1647, allocations: 3.938 kB / 448.3 MB, free: 14.55 MB / 334.1 MB Notification: Performance of Templates: time 0.00779/0.1725, allocations: 3.511 MB / 451.8 MB, free: 11.05 MB / 334.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile (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) 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","../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches