Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.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.TestRandomIntegers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|cnt.1.|cnt.2.|cnt.3.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers") translateModel(ModelicaTest.Math.Random.TestRandomIntegers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|cnt.1.|cnt.2.|cnt.3.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009999/0.0009999, allocations: 97.72 kB / 16.02 MB, free: 84 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001804/0.001804, allocations: 177.7 kB / 16.92 MB, free: 6.668 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.828/1.828, allocations: 205.4 MB / 223.1 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.431/0.431, allocations: 43.57 MB / 315 MB, free: 8.781 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.0005524/0.0005524, allocations: 12 kB / 384.6 MB, free: 7.637 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1647/0.1652, allocations: 58.87 MB / 443.5 MB, free: 12.66 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.0007559/0.166, allocations: 272.3 kB / 443.7 MB, free: 12.39 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009864/0.167, allocations: 439.1 kB / 444.1 MB, free: 11.96 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.948e-05/0.1671, allocations: 0 / 444.1 MB, free: 11.96 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 9.417e-05/0.1672, allocations: 3.938 kB / 444.2 MB, free: 11.96 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001253/0.1673, allocations: 11.92 kB / 444.2 MB, free: 11.95 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005003/0.1678, allocations: 147.7 kB / 444.3 MB, free: 11.8 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001335/0.168, allocations: 75.92 kB / 444.4 MB, free: 11.73 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.124e-05/0.168, allocations: 7.938 kB / 444.4 MB, free: 11.72 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.594e-05/0.1681, allocations: 39.95 kB / 444.4 MB, free: 11.68 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.498e-05/0.1682, allocations: 15.92 kB / 444.4 MB, free: 11.67 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.416e-05/0.1682, allocations: 4 kB / 444.4 MB, free: 11.66 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001857/0.1684, allocations: 99.88 kB / 444.5 MB, free: 11.57 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.376e-05/0.1685, allocations: 19.92 kB / 444.6 MB, free: 11.55 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.162e-05/0.1685, allocations: 53.55 kB / 444.6 MB, free: 11.49 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002344/0.1688, allocations: 127.7 kB / 444.7 MB, free: 11.36 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.1688, allocations: 4 kB / 444.7 MB, free: 11.36 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.514e-06/0.1688, allocations: 0 / 444.7 MB, free: 11.36 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.1688, allocations: 7.938 kB / 444.8 MB, free: 11.35 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005672/0.1694, allocations: 373.2 kB / 445.1 MB, free: 10.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.605e-05/0.1694, allocations: 8.031 kB / 445.1 MB, free: 10.92 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.168e-05/0.1695, allocations: 12.83 kB / 445.1 MB, free: 10.91 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001924/0.1697, allocations: 180.6 kB / 445.3 MB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.448e-05/0.1697, allocations: 4.375 kB / 445.3 MB, free: 10.69 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.844e-05/0.1697, allocations: 384 / 445.3 MB, free: 10.69 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002061/0.17, allocations: 94.19 kB / 445.4 MB, free: 10.59 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.17, allocations: 8.125 kB / 445.4 MB, free: 10.59 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.415e-05/0.17, allocations: 7.938 kB / 445.4 MB, free: 10.58 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.17, allocations: 0 / 445.4 MB, free: 10.58 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.882e-05/0.1701, allocations: 19.98 kB / 445.4 MB, free: 10.56 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002073/0.1703, allocations: 173.6 kB / 445.6 MB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.167e-05/0.1704, allocations: 42.55 kB / 445.7 MB, free: 10.29 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.664e-05/0.1705, allocations: 28.91 kB / 445.7 MB, free: 10.26 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.617e-05/0.1705, allocations: 0 / 445.7 MB, free: 10.26 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002621/0.1708, allocations: 131.2 kB / 445.8 MB, free: 10.12 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.593e-06/0.1708, allocations: 4 kB / 445.8 MB, free: 10.11 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003544/0.1711, allocations: 125.4 kB / 445.9 MB, free: 9.984 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.958e-05/0.1712, allocations: 55.41 kB / 446 MB, free: 9.918 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.963e-05/0.1713, allocations: 105.8 kB / 446.1 MB, free: 9.805 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.247e-05/0.1713, allocations: 29.7 kB / 446.1 MB, free: 9.77 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.6e-05/0.1714, allocations: 80.14 kB / 446.2 MB, free: 9.688 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.714e-05/0.1714, allocations: 31.84 kB / 446.2 MB, free: 9.656 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.239e-05/0.1714, allocations: 17.72 kB / 446.3 MB, free: 9.633 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002029/0.1716, allocations: 318.8 kB / 446.6 MB, free: 9.312 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.743e-05/0.1717, allocations: 23.98 kB / 446.6 MB, free: 9.289 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.611e-05/0.1718, allocations: 78.8 kB / 446.7 MB, free: 9.188 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001988/0.172, allocations: 144.5 kB / 446.8 MB, free: 9.016 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.172, allocations: 0 / 446.8 MB, free: 9.016 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002749/0.1723, allocations: 155.1 kB / 447 MB, free: 8.852 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.158e-05/0.1723, allocations: 41.91 kB / 447 MB, free: 8.805 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/0.1723, allocations: 224 / 447 MB, free: 8.805 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.666e-05/0.1724, allocations: 8 kB / 447 MB, free: 8.797 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001115/0.1725, allocations: 23.88 kB / 447 MB, free: 8.773 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.26e-05/0.1725, allocations: 7.984 kB / 447 MB, free: 8.766 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.978e-05/0.1726, allocations: 7.938 kB / 447 MB, free: 8.758 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.321e-05/0.1726, allocations: 4.078 kB / 447 MB, free: 8.754 MB / 382.1 MB Warning: Assuming fixed start value for the following 1 variables: y:DISCRETE(fixed = true ) type: Integer Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 13 (id,cnt[3],$PRE.cnt[3],cnt[2],$PRE.cnt[2],cnt[1],$PRE.cnt[1],$PRE.y,y,$whenCondition2,$whenCondition1,samples,$PRE.samples) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * 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.0001976/0.1728, allocations: 141.6 kB / 447.2 MB, free: 8.605 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.671e-05/0.1728, allocations: 15.89 kB / 447.2 MB, free: 8.59 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.353e-05/0.1729, allocations: 15.97 kB / 447.2 MB, free: 8.578 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.542e-06/0.1729, allocations: 4 kB / 447.2 MB, free: 8.574 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.1729, allocations: 0 / 447.2 MB, free: 8.574 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.1729, allocations: 0 / 447.2 MB, free: 8.574 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001743/0.1731, allocations: 165.6 kB / 447.4 MB, free: 8.363 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.1731, allocations: 0 / 447.4 MB, free: 8.363 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.122e-05/0.1731, allocations: 4 kB / 447.4 MB, free: 8.359 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.634e-06/0.1731, allocations: 7.938 kB / 447.4 MB, free: 8.352 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.287e-06/0.1732, allocations: 0 / 447.4 MB, free: 8.352 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.1732, allocations: 0 / 447.4 MB, free: 8.352 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.1732, allocations: 7.984 kB / 447.4 MB, free: 8.344 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001978/0.1734, allocations: 133 kB / 447.5 MB, free: 8.195 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.81e-05/0.1734, allocations: 85.03 kB / 447.6 MB, free: 8.094 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.073e-05/0.1735, allocations: 4 kB / 447.6 MB, free: 8.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002157/0.1737, allocations: 23.97 kB / 447.6 MB, free: 8.066 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.167e-05/0.1737, allocations: 8 kB / 447.7 MB, free: 8.059 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.485e-05/0.1738, allocations: 11.92 kB / 447.7 MB, free: 8.047 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.655e-05/0.1738, allocations: 79.47 kB / 447.7 MB, free: 7.969 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1738, allocations: 0 / 447.7 MB, free: 7.969 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002795/0.1741, allocations: 43.98 kB / 447.8 MB, free: 7.926 MB / 382.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: 7 ($whenCondition2,$whenCondition1,y,cnt[1],cnt[2],cnt[3],samples) * Number of discrete states: 4 (cnt[1],cnt[2],cnt[3],samples) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0004656/0.1746, allocations: 182.4 kB / 448 MB, free: 7.754 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002111/0.1748, allocations: 131.2 kB / 448.1 MB, free: 7.613 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.1748, allocations: 4 kB / 448.1 MB, free: 7.609 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.445e-05/0.1749, allocations: 23.98 kB / 448.1 MB, free: 7.586 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001702/0.175, allocations: 15.92 kB / 448.1 MB, free: 7.57 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003823/0.1754, allocations: 155 kB / 448.3 MB, free: 7.395 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003563/0.1758, allocations: 0.6848 MB / 449 MB, free: 6.684 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.345e-05/0.1758, allocations: 16.64 kB / 449 MB, free: 6.664 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.66e-05/0.1759, allocations: 11.44 kB / 449 MB, free: 6.652 MB / 382.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1759, allocations: 0 / 449 MB, free: 6.652 MB / 382.1 MB Notification: Performance of Templates: time 0.005242/0.1811, allocations: 1.9 MB / 450.9 MB, free: 4.754 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.sim & ./ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches