Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_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.000911/0.0009111, allocations: 95.06 kB / 16.98 MB, free: 5.938 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.000966/0.000966, allocations: 186.4 kB / 17.88 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.468/1.468, allocations: 223.2 MB / 241.8 MB, free: 14.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2252/0.2252, allocations: 44.22 MB / 337.1 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003969/0.000397, allocations: 8 kB / 409.5 MB, free: 27.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1437/0.1441, allocations: 61.91 MB / 471.4 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.0006936/0.1448, allocations: 226.9 kB / 471.7 MB, free: 13.51 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003344/0.1482, allocations: 2.183 MB / 473.9 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.018e-05/0.1482, allocations: 0 / 473.9 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.208e-05/0.1483, allocations: 4 kB / 473.9 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.949e-06/0.1483, allocations: 0 / 473.9 MB, free: 11.3 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.001522/0.1498, allocations: 449.5 kB / 474.3 MB, free: 10.87 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.932e-05/0.1498, allocations: 7.938 kB / 474.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.999e-05/0.1499, allocations: 0 / 474.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.71e-05/0.1499, allocations: 4 kB / 474.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.963e-05/0.15, allocations: 0 / 474.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.572e-06/0.15, allocations: 0 / 474.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009989/0.151, allocations: 0.6786 MB / 475 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.093e-06/0.151, allocations: 4 kB / 475 MB, free: 10.17 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.361e-05/0.151, allocations: 25.7 kB / 475 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004439/0.1515, allocations: 303.7 kB / 475.3 MB, free: 9.844 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.1515, allocations: 0 / 475.3 MB, free: 9.844 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1515, allocations: 0 / 475.3 MB, free: 9.844 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.518e-06/0.1515, allocations: 0 / 475.3 MB, free: 9.844 MB / 350.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.0004368/0.152, allocations: 429.1 kB / 475.7 MB, free: 9.371 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.131e-05/0.152, allocations: 12.5 kB / 475.7 MB, free: 9.359 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.2e-05/0.152, allocations: 4 kB / 475.7 MB, free: 9.355 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001047/0.1522, allocations: 163 kB / 475.9 MB, free: 9.156 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.426e-05/0.1522, allocations: 4 kB / 475.9 MB, free: 9.152 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.415e-06/0.1522, allocations: 0 / 475.9 MB, free: 9.152 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001036/0.1523, allocations: 33.64 kB / 475.9 MB, free: 9.113 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.642e-06/0.1523, allocations: 0 / 475.9 MB, free: 9.113 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.062e-05/0.1523, allocations: 4 kB / 475.9 MB, free: 9.109 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.1523, allocations: 0 / 475.9 MB, free: 9.109 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.874e-05/0.1524, allocations: 0 / 475.9 MB, free: 9.109 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001735/0.1525, allocations: 149.7 kB / 476.1 MB, free: 8.914 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.73e-05/0.1526, allocations: 26.48 kB / 476.1 MB, free: 8.879 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.047e-05/0.1526, allocations: 0 / 476.1 MB, free: 8.879 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.616e-05/0.1527, allocations: 60.25 kB / 476.2 MB, free: 8.805 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.583e-06/0.1527, allocations: 0 / 476.2 MB, free: 8.805 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001905/0.1529, allocations: 71.41 kB / 476.2 MB, free: 8.723 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.659e-05/0.153, allocations: 81.23 kB / 476.3 MB, free: 8.625 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.963e-05/0.153, allocations: 89.86 kB / 476.4 MB, free: 8.527 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.903e-05/0.153, allocations: 29.7 kB / 476.4 MB, free: 8.492 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.507e-05/0.1531, allocations: 80.14 kB / 476.5 MB, free: 8.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.322e-05/0.1531, allocations: 0 / 476.5 MB, free: 8.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.146e-06/0.1531, allocations: 0 / 476.5 MB, free: 8.41 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.1533, allocations: 314.8 kB / 476.8 MB, free: 8.094 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.024e-05/0.1533, allocations: 3.938 kB / 476.8 MB, free: 8.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.694e-06/0.1533, allocations: 4 kB / 476.8 MB, free: 8.086 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.848e-05/0.1533, allocations: 29.77 kB / 476.9 MB, free: 8.051 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.1534, allocations: 0 / 476.9 MB, free: 8.051 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.538e-05/0.1534, allocations: 63.41 kB / 476.9 MB, free: 7.977 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.27e-05/0.1535, allocations: 35.88 kB / 477 MB, free: 7.938 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.343e-06/0.1535, allocations: 0 / 477 MB, free: 7.938 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.927e-05/0.1535, allocations: 7.953 kB / 477 MB, free: 7.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.112e-06/0.1535, allocations: 0 / 477 MB, free: 7.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.1536, allocations: 0 / 477 MB, free: 7.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.818e-05/0.1536, allocations: 0 / 477 MB, free: 7.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.905e-06/0.1536, allocations: 0 / 477 MB, free: 7.93 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001072/0.1537, allocations: 139.6 kB / 477.1 MB, free: 7.777 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.245e-06/0.1537, allocations: 3.984 kB / 477.1 MB, free: 7.773 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.276e-05/0.1537, allocations: 7.078 kB / 477.1 MB, free: 7.766 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-06/0.1537, allocations: 0 / 477.1 MB, free: 7.766 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.279e-05/0.1538, allocations: 7.938 kB / 477.1 MB, free: 7.758 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.315e-06/0.1538, allocations: 3.938 kB / 477.1 MB, free: 7.754 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001129/0.1539, allocations: 153.6 kB / 477.3 MB, free: 7.555 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-07/0.1539, allocations: 3.938 kB / 477.3 MB, free: 7.551 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.1539, allocations: 0 / 477.3 MB, free: 7.551 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.1539, allocations: 4 kB / 477.3 MB, free: 7.547 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.492e-06/0.1539, allocations: 0 / 477.3 MB, free: 7.547 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.1539, allocations: 0 / 477.3 MB, free: 7.547 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.1539, allocations: 3.938 kB / 477.3 MB, free: 7.543 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.348e-05/0.154, allocations: 94.78 kB / 477.4 MB, free: 7.426 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.786e-05/0.1541, allocations: 77.11 kB / 477.5 MB, free: 7.332 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.661e-05/0.1541, allocations: 8 kB / 477.5 MB, free: 7.324 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.118e-06/0.1541, allocations: 4.031 kB / 477.5 MB, free: 7.32 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.607e-05/0.1541, allocations: 3.984 kB / 477.5 MB, free: 7.316 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.725e-06/0.1541, allocations: 0 / 477.5 MB, free: 7.316 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.669e-05/0.1542, allocations: 79.23 kB / 477.6 MB, free: 7.238 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1542, allocations: 0 / 477.6 MB, free: 7.238 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005251/0.1547, allocations: 155.9 kB / 477.7 MB, free: 7.086 MB / 350.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 (linear and non-linear blocks): 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.1555, allocations: 343.8 kB / 478 MB, free: 6.746 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.65e-05/0.1556, allocations: 59.41 kB / 478.1 MB, free: 6.676 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1556, allocations: 0 / 478.1 MB, free: 6.676 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.749e-05/0.1557, allocations: 55.41 kB / 478.2 MB, free: 6.609 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.6e-05/0.1558, allocations: 0 / 478.2 MB, free: 6.609 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002331/0.156, allocations: 78.94 kB / 478.2 MB, free: 6.504 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003755/0.1564, allocations: 0.6733 MB / 478.9 MB, free: 5.805 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.103e-05/0.1564, allocations: 7.984 kB / 478.9 MB, free: 5.797 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.256e-05/0.1564, allocations: 7.438 kB / 478.9 MB, free: 5.789 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1564, allocations: 0 / 478.9 MB, free: 5.789 MB / 350.1 MB Notification: Performance of Templates: time 0.00751/0.164, allocations: 3.594 MB / 482.5 MB, free: 2.195 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches