Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001256/0.001256, allocations: 107.8 kB / 19.17 MB, free: 3.871 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001413/0.001413, allocations: 208.9 kB / 22.13 MB, free: 0.918 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.469/1.469, allocations: 230.2 MB / 255.1 MB, free: 15.23 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2397/0.2397, allocations: 46.89 MB / 358.1 MB, free: 10.48 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-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002261/0.002261, allocations: 83.86 kB / 0.4924 GB, free: 7.867 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1365/0.1388, allocations: 65.99 MB / 0.5568 GB, free: 5.754 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001728/0.1405, allocations: 0.497 MB / 0.5573 GB, free: 5.25 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.003751/0.1443, allocations: 2.384 MB / 0.5596 GB, free: 2.844 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.676e-05/0.1443, allocations: 0 / 0.5596 GB, free: 2.844 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.577e-05/0.1443, allocations: 0 / 0.5596 GB, free: 2.844 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.161e-06/0.1443, allocations: 0 / 0.5596 GB, free: 2.844 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.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.001714/0.146, allocations: 0.5686 MB / 0.5602 GB, free: 2.273 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 6.375e-05/0.1461, allocations: 3.938 kB / 0.5602 GB, free: 2.27 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.238e-05/0.1461, allocations: 4 kB / 0.5602 GB, free: 2.266 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.078e-05/0.1461, allocations: 0 / 0.5602 GB, free: 2.266 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.072e-05/0.1462, allocations: 4 kB / 0.5602 GB, free: 2.262 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.823e-06/0.1462, allocations: 0 / 0.5602 GB, free: 2.262 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001317/0.1475, allocations: 0.7409 MB / 0.5609 GB, free: 1.52 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.056e-06/0.1475, allocations: 0 / 0.5609 GB, free: 1.52 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.058e-05/0.1475, allocations: 0 / 0.5609 GB, free: 1.52 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000716/0.1482, allocations: 466.7 kB / 0.5614 GB, free: 1.062 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1482, allocations: 0 / 0.5614 GB, free: 1.062 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1482, allocations: 0 / 0.5614 GB, free: 1.062 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.62e-06/0.1482, allocations: 0 / 0.5614 GB, free: 1.062 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.0005798/0.1488, allocations: 444.2 kB / 0.5618 GB, free: 0.5742 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/0.1489, allocations: 12.03 kB / 0.5618 GB, free: 0.5625 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.309e-05/0.1489, allocations: 4.875 kB / 0.5618 GB, free: 0.5586 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001336/0.149, allocations: 160.4 kB / 0.5619 GB, free: 372 kB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.727e-06/0.149, allocations: 384 / 0.5619 GB, free: 372 kB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.25e-05/0.149, allocations: 384 / 0.5619 GB, free: 372 kB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001078/0.1491, allocations: 37.95 kB / 0.562 GB, free: 328 kB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.1492, allocations: 0 / 0.562 GB, free: 328 kB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.248e-06/0.1492, allocations: 0 / 0.562 GB, free: 328 kB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.997e-06/0.1492, allocations: 4 kB / 0.562 GB, free: 324 kB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.291e-05/0.1492, allocations: 7.984 kB / 0.562 GB, free: 316 kB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001604/0.1494, allocations: 149.7 kB / 0.5621 GB, free: 116 kB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.059e-05/0.1494, allocations: 14.58 kB / 0.5621 GB, free: 92 kB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.877e-05/0.1494, allocations: 4.953 kB / 0.5622 GB, free: 84 kB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.047e-05/0.1494, allocations: 4 kB / 0.5622 GB, free: 80 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.532e-05/0.1495, allocations: 64.41 kB / 0.5622 GB, free: 16 MB / 430.1 MB Notification: Performance of pre-optimization done (n=1): time 1.122e-06/0.1495, allocations: 0 / 0.5622 GB, free: 16 MB / 430.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002055/0.1497, allocations: 71.33 kB / 0.5623 GB, free: 15.91 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.388e-05/0.1498, allocations: 77.11 kB / 0.5624 GB, free: 15.82 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.225e-05/0.1498, allocations: 93.81 kB / 0.5625 GB, free: 15.72 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.678e-05/0.1499, allocations: 25.7 kB / 0.5625 GB, free: 15.69 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.299e-05/0.1499, allocations: 80.14 kB / 0.5626 GB, free: 15.61 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.237e-05/0.1499, allocations: 4 kB / 0.5626 GB, free: 15.6 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.966e-05/0.1499, allocations: 13.72 kB / 0.5626 GB, free: 15.58 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.1501, allocations: 319 kB / 0.5629 GB, free: 15.26 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.328e-05/0.1501, allocations: 4 kB / 0.5629 GB, free: 15.26 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.63e-06/0.1501, allocations: 0 / 0.5629 GB, free: 15.26 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.647e-05/0.1502, allocations: 64.2 kB / 0.5629 GB, free: 15.18 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.1502, allocations: 0 / 0.5629 GB, free: 15.18 MB / 430.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.277e-05/0.1502, allocations: 59.41 kB / 0.563 GB, free: 15.11 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.054e-05/0.1503, allocations: 37.69 kB / 0.563 GB, free: 15.07 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.1503, allocations: 4.031 kB / 0.563 GB, free: 15.06 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.1503, allocations: 4 kB / 0.563 GB, free: 15.06 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.082e-06/0.1503, allocations: 0 / 0.563 GB, free: 15.06 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.188e-06/0.1503, allocations: 0 / 0.563 GB, free: 15.06 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.79e-05/0.1503, allocations: 4 kB / 0.563 GB, free: 15.05 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.995e-06/0.1503, allocations: 0 / 0.563 GB, free: 15.05 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.0001023/0.1504, allocations: 131.5 kB / 0.5632 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.849e-06/0.1504, allocations: 11.88 kB / 0.5632 GB, free: 14.9 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.027e-05/0.1505, allocations: 7.062 kB / 0.5632 GB, free: 14.89 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.1505, allocations: 7.984 kB / 0.5632 GB, free: 14.89 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.1505, allocations: 0 / 0.5632 GB, free: 14.89 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.365e-06/0.1505, allocations: 0 / 0.5632 GB, free: 14.89 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001221/0.1506, allocations: 145.6 kB / 0.5633 GB, free: 14.7 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.1506, allocations: 4 kB / 0.5633 GB, free: 14.69 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.01e-07/0.1506, allocations: 0 / 0.5633 GB, free: 14.69 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.62e-07/0.1506, allocations: 0 / 0.5633 GB, free: 14.69 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.816e-06/0.1506, allocations: 3.938 kB / 0.5633 GB, free: 14.69 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.1506, allocations: 0 / 0.5633 GB, free: 14.69 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.1506, allocations: 0 / 0.5633 GB, free: 14.69 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001236/0.1507, allocations: 98.81 kB / 0.5634 GB, free: 14.57 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.668e-05/0.1508, allocations: 77.11 kB / 0.5635 GB, free: 14.47 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.641e-05/0.1508, allocations: 7.922 kB / 0.5635 GB, free: 14.46 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.574e-05/0.1508, allocations: 11.98 kB / 0.5635 GB, free: 14.45 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.702e-05/0.1508, allocations: 0 / 0.5635 GB, free: 14.45 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.729e-06/0.1508, allocations: 4 kB / 0.5635 GB, free: 14.45 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.659e-05/0.1509, allocations: 75.28 kB / 0.5636 GB, free: 14.38 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1509, allocations: 0 / 0.5636 GB, free: 14.38 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004705/0.1513, allocations: 163.4 kB / 0.5638 GB, free: 14.21 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.0007888/0.1521, allocations: 340.5 kB / 0.5641 GB, free: 13.88 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001166/0.1522, allocations: 63.34 kB / 0.5641 GB, free: 13.8 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.1522, allocations: 0 / 0.5641 GB, free: 13.8 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 4.203e-05/0.1523, allocations: 67.44 kB / 0.5642 GB, free: 13.72 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001207/0.1524, allocations: 0 / 0.5642 GB, free: 13.72 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002264/0.1526, allocations: 110.7 kB / 0.5643 GB, free: 13.58 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003246/0.153, allocations: 0.6729 MB / 0.565 GB, free: 12.88 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.115e-05/0.153, allocations: 7.438 kB / 0.565 GB, free: 12.88 MB / 430.1 MB Notification: Performance of SimCode: time 3e-07/0.153, allocations: 0 / 0.565 GB, free: 12.88 MB / 430.1 MB Notification: Performance of Templates: time 0.006423/0.1594, allocations: 3.382 MB / 0.5683 GB, free: 9.488 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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: 8.666246386012062]