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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.0009026/0.0009025, allocations: 184.1 kB / 18.09 MB, free: 3.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.3/1.3, allocations: 223.3 MB / 242.1 MB, free: 9.961 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008187/0.0008188, allocations: 95.84 kB / 293.3 MB, free: 10.55 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3247/0.3247, allocations: 44.14 MB / 388.5 MB, free: 38.51 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004232/0.0004232, allocations: 12 kB / 461.1 MB, free: 1.324 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3624/0.3628, allocations: 61.88 MB / 0.5107 GB, free: 37.95 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1134/0.4763, allocations: 89.56 MB / 0.5982 GB, free: 5.512 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002006/0.4765, allocations: 71.95 kB / 0.5983 GB, free: 5.445 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6518/1.128, allocations: 59.82 MB / 0.6567 GB, free: 9.531 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.794e-06/1.128, allocations: 0 / 0.6567 GB, free: 9.531 MB / 474.7 MB Notification: Performance of Transformations before backend: time 6.372e-06/1.128, allocations: 0 / 0.6567 GB, free: 9.531 MB / 474.7 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.003471/1.132, allocations: 460.9 kB / 0.6571 GB, free: 9.023 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/1.132, allocations: 16.02 kB / 0.6571 GB, free: 9.008 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.151e-05/1.132, allocations: 4.938 kB / 0.6571 GB, free: 9.004 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.599e-05/1.132, allocations: 164.3 kB / 0.6573 GB, free: 8.805 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.187e-06/1.132, allocations: 384 / 0.6573 GB, free: 8.805 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.245e-05/1.132, allocations: 4.375 kB / 0.6573 GB, free: 8.801 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.846e-05/1.132, allocations: 34.2 kB / 0.6573 GB, free: 8.762 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.635e-06/1.132, allocations: 192 / 0.6573 GB, free: 8.762 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.152e-05/1.132, allocations: 3.938 kB / 0.6573 GB, free: 8.758 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.407e-06/1.132, allocations: 3.984 kB / 0.6573 GB, free: 8.754 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.871e-05/1.132, allocations: 4 kB / 0.6573 GB, free: 8.75 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001302/1.132, allocations: 149.7 kB / 0.6575 GB, free: 8.555 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.718e-05/1.132, allocations: 18.52 kB / 0.6575 GB, free: 8.527 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.589e-05/1.132, allocations: 12.95 kB / 0.6575 GB, free: 8.512 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.065e-06/1.132, allocations: 0 / 0.6575 GB, free: 8.512 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.027e-05/1.132, allocations: 56.27 kB / 0.6576 GB, free: 8.441 MB / 474.7 MB Notification: Performance of pre-optimization done (n=1): time 8.81e-07/1.132, allocations: 0 / 0.6576 GB, free: 8.441 MB / 474.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001633/1.133, allocations: 71.33 kB / 0.6576 GB, free: 8.359 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.852e-05/1.133, allocations: 77.11 kB / 0.6577 GB, free: 8.266 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.806e-05/1.133, allocations: 89.86 kB / 0.6578 GB, free: 8.168 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.38e-05/1.133, allocations: 33.83 kB / 0.6578 GB, free: 8.129 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.803e-05/1.133, allocations: 84.08 kB / 0.6579 GB, free: 8.043 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.542e-05/1.133, allocations: 3.938 kB / 0.6579 GB, free: 8.039 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.943e-06/1.133, allocations: 0 / 0.6579 GB, free: 8.039 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 9.82e-05/1.133, allocations: 310.8 kB / 0.6582 GB, free: 7.727 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.925e-06/1.133, allocations: 0 / 0.6582 GB, free: 7.727 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.242e-06/1.133, allocations: 4 kB / 0.6582 GB, free: 7.723 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.739e-05/1.133, allocations: 64.25 kB / 0.6583 GB, free: 7.645 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/1.133, allocations: 4.062 kB / 0.6583 GB, free: 7.641 MB / 474.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.047e-05/1.133, allocations: 59.41 kB / 0.6583 GB, free: 7.57 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.675e-05/1.133, allocations: 33.7 kB / 0.6584 GB, free: 7.531 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/1.133, allocations: 0 / 0.6584 GB, free: 7.531 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.109e-05/1.133, allocations: 3.938 kB / 0.6584 GB, free: 7.527 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.474e-06/1.133, allocations: 0 / 0.6584 GB, free: 7.527 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/1.133, allocations: 7.922 kB / 0.6584 GB, free: 7.52 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.344e-05/1.133, allocations: 0 / 0.6584 GB, free: 7.52 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.585e-06/1.133, allocations: 3.984 kB / 0.6584 GB, free: 7.516 MB / 474.7 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 7.442e-05/1.133, allocations: 140.1 kB / 0.6585 GB, free: 7.363 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.282e-06/1.133, allocations: 0 / 0.6585 GB, free: 7.363 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.511e-05/1.133, allocations: 14.66 kB / 0.6585 GB, free: 7.352 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/1.133, allocations: 0 / 0.6585 GB, free: 7.352 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/1.133, allocations: 4 kB / 0.6585 GB, free: 7.348 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.844e-06/1.133, allocations: 3.938 kB / 0.6585 GB, free: 7.344 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.729e-05/1.133, allocations: 145.7 kB / 0.6587 GB, free: 7.152 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/1.133, allocations: 0 / 0.6587 GB, free: 7.152 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.51e-07/1.133, allocations: 0 / 0.6587 GB, free: 7.152 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.002e-06/1.133, allocations: 0 / 0.6587 GB, free: 7.152 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.938e-06/1.133, allocations: 11.94 kB / 0.6587 GB, free: 7.141 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.11e-07/1.133, allocations: 0 / 0.6587 GB, free: 7.141 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/1.133, allocations: 0 / 0.6587 GB, free: 7.141 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001057/1.134, allocations: 90.83 kB / 0.6588 GB, free: 7.027 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.148e-05/1.134, allocations: 77.11 kB / 0.6588 GB, free: 6.934 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.478e-05/1.134, allocations: 3.938 kB / 0.6588 GB, free: 6.93 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.235e-06/1.134, allocations: 3.938 kB / 0.6589 GB, free: 6.926 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.648e-05/1.134, allocations: 4 kB / 0.6589 GB, free: 6.922 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.068e-06/1.134, allocations: 8.031 kB / 0.6589 GB, free: 6.914 MB / 474.7 MB Notification: Performance of sorting global known variables: time 3.078e-05/1.134, allocations: 75.28 kB / 0.6589 GB, free: 6.84 MB / 474.7 MB Notification: Performance of sort global known variables: time 9e-08/1.134, allocations: 0 / 0.6589 GB, free: 6.84 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.005927/1.14, allocations: 1.531 MB / 0.6604 GB, free: 5.309 MB / 474.7 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.01122/1.151, allocations: 2.027 MB / 0.6624 GB, free: 3.277 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0001347/1.151, allocations: 59.41 kB / 0.6625 GB, free: 3.207 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/1.151, allocations: 0 / 0.6625 GB, free: 3.207 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 3.273e-05/1.151, allocations: 59.39 kB / 0.6625 GB, free: 3.137 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001246/1.151, allocations: 0 / 0.6625 GB, free: 3.137 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002056/1.152, allocations: 82.67 kB / 0.6626 GB, free: 3.027 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002694/1.152, allocations: 0.6733 MB / 0.6633 GB, free: 2.328 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 5.711e-06/1.152, allocations: 3.938 kB / 0.6633 GB, free: 2.324 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.379e-05/1.152, allocations: 11.44 kB / 0.6633 GB, free: 2.312 MB / 474.7 MB Notification: Performance of SimCode: time 3.21e-07/1.152, allocations: 0 / 0.6633 GB, free: 2.312 MB / 474.7 MB Notification: Performance of Templates: time 0.346/1.498, allocations: 81.3 MB / 0.7427 GB, free: 96.99 MB / 490.7 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/jenkins1/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