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.00103/0.001029, allocations: 96.7 kB / 15.7 MB, free: 468 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.001316/0.001316, allocations: 172.7 kB / 16.58 MB, free: 6.844 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.749/1.749, allocations: 205.4 MB / 222.8 MB, free: 5.887 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.4244/0.4244, allocations: 43.57 MB / 314.6 MB, free: 8.707 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.0006494/0.0006498, allocations: 22.97 kB / 384 MB, free: 8.012 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1732/0.1739, allocations: 58.86 MB / 442.8 MB, free: 13.04 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.0007462/0.1747, allocations: 272.3 kB / 443.1 MB, free: 12.77 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009179/0.1756, allocations: 415.2 kB / 443.5 MB, free: 12.37 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.429e-05/0.1757, allocations: 0 / 443.5 MB, free: 12.37 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 9.146e-05/0.1758, allocations: 0 / 443.5 MB, free: 12.37 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000149/0.1759, allocations: 11.92 kB / 443.5 MB, free: 12.36 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005752/0.1765, allocations: 155.7 kB / 443.7 MB, free: 12.2 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001358/0.1767, allocations: 59.86 kB / 443.7 MB, free: 12.14 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.235e-05/0.1767, allocations: 0 / 443.7 MB, free: 12.14 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.032e-05/0.1768, allocations: 43.89 kB / 443.8 MB, free: 12.1 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.89e-05/0.1769, allocations: 19.92 kB / 443.8 MB, free: 12.08 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.389e-05/0.1769, allocations: 3.984 kB / 443.8 MB, free: 12.08 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001962/0.1771, allocations: 87.91 kB / 443.9 MB, free: 11.99 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.249e-05/0.1772, allocations: 15.98 kB / 443.9 MB, free: 11.98 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.905e-05/0.1772, allocations: 33.64 kB / 443.9 MB, free: 11.94 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001672/0.1774, allocations: 91.84 kB / 444 MB, free: 11.85 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.1774, allocations: 0 / 444 MB, free: 11.85 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.457e-06/0.1774, allocations: 0 / 444 MB, free: 11.85 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.511e-06/0.1774, allocations: 3.938 kB / 444 MB, free: 11.84 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.0005593/0.178, allocations: 377 kB / 444.4 MB, free: 11.42 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.102e-05/0.1781, allocations: 8.031 kB / 444.4 MB, free: 11.41 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.118e-05/0.1781, allocations: 7.906 kB / 444.4 MB, free: 11.41 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001874/0.1783, allocations: 187.2 kB / 444.6 MB, free: 11.18 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.53e-05/0.1783, allocations: 4 kB / 444.6 MB, free: 11.18 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.375e-05/0.1783, allocations: 8 kB / 444.6 MB, free: 11.17 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002054/0.1786, allocations: 89.58 kB / 444.7 MB, free: 11.08 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.056e-06/0.1786, allocations: 3.938 kB / 444.7 MB, free: 11.07 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.004e-05/0.1786, allocations: 11.92 kB / 444.7 MB, free: 11.06 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.1786, allocations: 0 / 444.7 MB, free: 11.06 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.755e-05/0.1787, allocations: 19.98 kB / 444.7 MB, free: 11.04 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001955/0.1789, allocations: 169.6 kB / 444.9 MB, free: 10.83 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.866e-05/0.179, allocations: 42.56 kB / 444.9 MB, free: 10.78 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.059e-05/0.179, allocations: 28.91 kB / 444.9 MB, free: 10.75 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.338e-05/0.1791, allocations: 0 / 444.9 MB, free: 10.75 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002771/0.1793, allocations: 127.2 kB / 445.1 MB, free: 10.61 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.654e-06/0.1794, allocations: 0 / 445.1 MB, free: 10.61 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003235/0.1797, allocations: 129.5 kB / 445.2 MB, free: 10.48 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.436e-05/0.1798, allocations: 55.56 kB / 445.3 MB, free: 10.41 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.867e-05/0.1799, allocations: 101.8 kB / 445.4 MB, free: 10.3 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.591e-05/0.1799, allocations: 25.7 kB / 445.4 MB, free: 10.27 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.679e-05/0.18, allocations: 88.31 kB / 445.5 MB, free: 10.18 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.85e-05/0.18, allocations: 27.7 kB / 445.5 MB, free: 10.15 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.37e-06/0.18, allocations: 0 / 445.5 MB, free: 10.15 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.1802, allocations: 318.8 kB / 445.8 MB, free: 9.828 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.222e-05/0.1802, allocations: 19.98 kB / 445.8 MB, free: 9.809 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.861e-05/0.1803, allocations: 82.78 kB / 445.9 MB, free: 9.703 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.068e-05/0.1804, allocations: 69.69 kB / 446 MB, free: 9.629 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.1804, allocations: 0 / 446 MB, free: 9.629 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002318/0.1807, allocations: 163 kB / 446.1 MB, free: 9.457 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.873e-05/0.1807, allocations: 33.7 kB / 446.2 MB, free: 9.418 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.1807, allocations: 0 / 446.2 MB, free: 9.418 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.664e-05/0.1807, allocations: 4 kB / 446.2 MB, free: 9.414 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001113/0.1809, allocations: 15.98 kB / 446.2 MB, free: 9.398 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.034e-05/0.1809, allocations: 8.156 kB / 446.2 MB, free: 9.391 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.904e-05/0.1809, allocations: 12 kB / 446.2 MB, free: 9.379 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.247e-05/0.181, allocations: 4 kB / 446.2 MB, free: 9.375 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,$PRE.cnt[3],cnt[3],$PRE.cnt[2],cnt[2],$PRE.cnt[1],cnt[1],$PRE.y,y,$whenCondition2,$whenCondition1,$PRE.samples,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001607/0.1811, allocations: 133.7 kB / 446.3 MB, free: 9.234 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.912e-05/0.1811, allocations: 7.906 kB / 446.3 MB, free: 9.227 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.307e-05/0.1812, allocations: 8.25 kB / 446.3 MB, free: 9.223 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.596e-06/0.1812, allocations: 4 kB / 446.4 MB, free: 9.219 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.1812, allocations: 7.984 kB / 446.4 MB, free: 9.211 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.1812, allocations: 4.125 kB / 446.4 MB, free: 9.207 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001501/0.1814, allocations: 169.6 kB / 446.5 MB, free: 8.992 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.1814, allocations: 0 / 446.5 MB, free: 8.992 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.636e-05/0.1814, allocations: 11.92 kB / 446.5 MB, free: 8.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.023e-06/0.1814, allocations: 7.984 kB / 446.6 MB, free: 8.973 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.227e-06/0.1814, allocations: 0 / 446.6 MB, free: 8.973 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.1815, allocations: 0 / 446.6 MB, free: 8.973 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.1815, allocations: 0 / 446.6 MB, free: 8.973 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002012/0.1817, allocations: 140.9 kB / 446.7 MB, free: 8.816 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.251e-05/0.1817, allocations: 88.98 kB / 446.8 MB, free: 8.711 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.446e-05/0.1818, allocations: 11.98 kB / 446.8 MB, free: 8.699 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001986/0.182, allocations: 15.98 kB / 446.8 MB, free: 8.684 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.011e-05/0.182, allocations: 7.984 kB / 446.8 MB, free: 8.676 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.605e-05/0.182, allocations: 4 kB / 446.8 MB, free: 8.672 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.691e-05/0.1821, allocations: 91.27 kB / 446.9 MB, free: 8.582 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1821, allocations: 0 / 446.9 MB, free: 8.582 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002764/0.1824, allocations: 36 kB / 446.9 MB, free: 8.547 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 (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.0004219/0.1828, allocations: 190.1 kB / 447.1 MB, free: 8.367 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002113/0.183, allocations: 127.2 kB / 447.2 MB, free: 8.23 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.183, allocations: 0 / 447.2 MB, free: 8.23 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.999e-05/0.1831, allocations: 31.98 kB / 447.3 MB, free: 8.199 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001647/0.1833, allocations: 11.95 kB / 447.3 MB, free: 8.188 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004093/0.1837, allocations: 142.7 kB / 447.4 MB, free: 8.023 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003292/0.184, allocations: 0.6891 MB / 448.1 MB, free: 7.309 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.319e-05/0.1841, allocations: 16.59 kB / 448.1 MB, free: 7.289 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.867e-05/0.1841, allocations: 19.42 kB / 448.2 MB, free: 7.27 MB / 382.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1841, allocations: 0 / 448.2 MB, free: 7.27 MB / 382.1 MB Notification: Performance of Templates: time 0.005024/0.1891, allocations: 1.826 MB / 450 MB, free: 5.445 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