Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomIntegers.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_ModelicaTest.Math.Random.TestRandomIntegers") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001636/0.001636, allocations: 172.2 kB / 8.147 MB, free: 2.207 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.768/1.768, allocations: 205.2 MB / 213.8 MB, free: 13.94 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001272/0.001272, allocations: 90.27 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2585/0.2585, allocations: 43.49 MB / 353.2 MB, free: 2.043 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 9.518e-06/9.618e-06, allocations: 0 / 417.7 MB, free: 40.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2735/0.2735, allocations: 58.84 MB / 476.5 MB, free: 5.09 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1603/0.4339, allocations: 83.98 MB / 0.5474 GB, free: 15.14 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002774/0.4342, allocations: 63.97 kB / 0.5474 GB, free: 15.07 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.02031/0.4545, allocations: 3.023 MB / 0.5504 GB, free: 12.05 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.179e-05/0.4546, allocations: 0 / 0.5504 GB, free: 12.05 MB / 394.7 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.0004809/0.4551, allocations: 391.9 kB / 0.5508 GB, free: 11.62 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.015e-05/0.4552, allocations: 12.03 kB / 0.5508 GB, free: 11.61 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.032e-05/0.4552, allocations: 7.906 kB / 0.5508 GB, free: 11.6 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002671/0.4555, allocations: 175 kB / 0.551 GB, free: 11.39 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.81e-05/0.4555, allocations: 4 kB / 0.551 GB, free: 11.39 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.154e-05/0.4556, allocations: 7.938 kB / 0.551 GB, free: 11.38 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001118/0.4557, allocations: 19.98 kB / 0.551 GB, free: 11.36 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002187/0.4559, allocations: 85.64 kB / 0.5511 GB, free: 11.27 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/0.456, allocations: 7.906 kB / 0.5511 GB, free: 11.26 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.076e-05/0.456, allocations: 3.984 kB / 0.5511 GB, free: 11.26 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.591e-06/0.456, allocations: 0 / 0.5511 GB, free: 11.26 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002033/0.4562, allocations: 146.2 kB / 0.5512 GB, free: 11.08 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001277/0.4564, allocations: 48.97 kB / 0.5513 GB, free: 11.02 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.191e-05/0.4564, allocations: 24.86 kB / 0.5513 GB, free: 11 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.847e-05/0.4565, allocations: 3.984 kB / 0.5513 GB, free: 10.99 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003279/0.4568, allocations: 139.2 kB / 0.5514 GB, free: 10.84 MB / 394.7 MB Notification: Performance of pre-optimization done (n=10): time 2.155e-06/0.4568, allocations: 0 / 0.5514 GB, free: 10.84 MB / 394.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003604/0.4572, allocations: 85.59 kB / 0.5515 GB, free: 10.75 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.355e-05/0.4573, allocations: 55.41 kB / 0.5516 GB, free: 10.69 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.644e-05/0.4573, allocations: 96.89 kB / 0.5516 GB, free: 10.59 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.643e-05/0.4574, allocations: 29.7 kB / 0.5517 GB, free: 10.55 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.795e-05/0.4575, allocations: 154.8 kB / 0.5518 GB, free: 10.39 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.23e-05/0.4575, allocations: 27.94 kB / 0.5519 GB, free: 10.37 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.868e-06/0.4575, allocations: 0 / 0.5519 GB, free: 10.37 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.4577, allocations: 314.8 kB / 0.5522 GB, free: 10.05 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.532e-05/0.4577, allocations: 20 kB / 0.5522 GB, free: 10.03 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001079/0.4579, allocations: 74.84 kB / 0.5522 GB, free: 9.934 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001311/0.458, allocations: 40 kB / 0.5523 GB, free: 9.895 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.458, allocations: 3.938 kB / 0.5523 GB, free: 9.891 MB / 394.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003012/0.4583, allocations: 113.6 kB / 0.5524 GB, free: 9.773 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.4584, allocations: 10.69 kB / 0.5524 GB, free: 9.766 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.4584, allocations: 4 kB / 0.5524 GB, free: 9.762 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.778e-05/0.4584, allocations: 4 kB / 0.5524 GB, free: 9.758 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001592/0.4586, allocations: 15.98 kB / 0.5524 GB, free: 9.742 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.788e-06/0.4586, allocations: 3.938 kB / 0.5524 GB, free: 9.738 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.575e-05/0.4587, allocations: 7.906 kB / 0.5524 GB, free: 9.73 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.759e-05/0.4587, allocations: 8 kB / 0.5524 GB, free: 9.723 MB / 394.7 MB Warning: Assuming fixed start value for the following 1 variables: y:DISCRETE(fixed = false ) 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 () * 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.0001299/0.4589, allocations: 43.05 kB / 0.5525 GB, free: 9.676 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.824e-05/0.4589, allocations: 11.89 kB / 0.5525 GB, free: 9.664 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.685e-05/0.459, allocations: 8.062 kB / 0.5525 GB, free: 9.656 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.459, allocations: 4 kB / 0.5525 GB, free: 9.652 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.459, allocations: 0 / 0.5525 GB, free: 9.652 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.459, allocations: 0 / 0.5525 GB, free: 9.652 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001735/0.4592, allocations: 154 kB / 0.5527 GB, free: 9.465 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.4592, allocations: 0 / 0.5527 GB, free: 9.465 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.011e-05/0.4593, allocations: 7.938 kB / 0.5527 GB, free: 9.457 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.4593, allocations: 0 / 0.5527 GB, free: 9.457 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.854e-05/0.4593, allocations: 11.98 kB / 0.5527 GB, free: 9.445 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.4593, allocations: 0 / 0.5527 GB, free: 9.445 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.4593, allocations: 4.062 kB / 0.5527 GB, free: 9.441 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003245/0.4597, allocations: 116.9 kB / 0.5528 GB, free: 9.309 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.545e-05/0.4597, allocations: 85.02 kB / 0.5529 GB, free: 9.207 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.06e-05/0.4598, allocations: 7.984 kB / 0.5529 GB, free: 9.199 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003114/0.4601, allocations: 19.98 kB / 0.5529 GB, free: 9.18 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.405e-05/0.4602, allocations: 7.984 kB / 0.5529 GB, free: 9.172 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.339e-05/0.4602, allocations: 8 kB / 0.5529 GB, free: 9.164 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.1e-05/0.4602, allocations: 79.28 kB / 0.553 GB, free: 9.086 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004166/0.4607, allocations: 59.92 kB / 0.553 GB, free: 9.027 MB / 394.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: 7 ($whenCondition2,$whenCondition1,y,cnt[1],cnt[2],cnt[3],samples) * Number of discrete states: 4 (cnt[1],cnt[2],cnt[3],samples) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0005228/0.4612, allocations: 197.6 kB / 0.5532 GB, free: 8.832 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0002414/0.4615, allocations: 89.56 kB / 0.5533 GB, free: 8.738 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.712e-06/0.4615, allocations: 4.438 kB / 0.5533 GB, free: 8.734 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 8.329e-05/0.4616, allocations: 35.92 kB / 0.5534 GB, free: 8.699 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001461/0.4617, allocations: 7.984 kB / 0.5534 GB, free: 8.691 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005217/0.4623, allocations: 125.4 kB / 0.5535 GB, free: 8.539 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003119/0.4626, allocations: 0.7075 MB / 0.5542 GB, free: 7.805 MB / 394.7 MB Notification: Performance of SimCode: time 8.92e-07/0.4626, allocations: 0 / 0.5542 GB, free: 7.805 MB / 394.7 MB Notification: Performance of Templates: time 0.005466/0.4681, allocations: 1.994 MB / 0.5561 GB, free: 5.812 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomIntegers.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomIntegers.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomIntegers --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,y,cnt[1],cnt[2],cnt[3],avg,lowBound,highBound,samples Variables in the result:_D_whenCondition1,_D_whenCondition2,avg,cnt[1],cnt[2],cnt[3],highBound,id,lowBound,n,nrSigma,samples,time,y