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/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/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_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") [: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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008873/0.0008873, allocations: 183.8 kB / 7.801 MB, free: 2.441 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.031/1.031, allocations: 205.2 MB / 213.4 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007923/0.0007923, allocations: 98.64 kB / 261.4 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1559/0.1559, allocations: 43.48 MB / 352.8 MB, free: 1.961 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.735e-06/7.885e-06, allocations: 0 / 417.7 MB, free: 40.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2239/0.2239, allocations: 58.84 MB / 476.6 MB, free: 5.215 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09899/0.3229, allocations: 83.98 MB / 0.5474 GB, free: 14.98 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001812/0.3232, allocations: 63.47 kB / 0.5475 GB, free: 14.92 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.009717/0.3329, allocations: 3.032 MB / 0.5504 GB, free: 11.89 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.17e-05/0.3329, allocations: 0 / 0.5504 GB, free: 11.89 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.0003395/0.3333, allocations: 388 kB / 0.5508 GB, free: 11.46 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.3333, allocations: 8.031 kB / 0.5508 GB, free: 11.45 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.783e-05/0.3334, allocations: 7.906 kB / 0.5508 GB, free: 11.45 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002043/0.3336, allocations: 187 kB / 0.551 GB, free: 11.22 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.49e-05/0.3336, allocations: 4 kB / 0.551 GB, free: 11.22 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.288e-05/0.3336, allocations: 8 kB / 0.551 GB, free: 11.21 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.353e-05/0.3337, allocations: 19.92 kB / 0.551 GB, free: 11.19 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000138/0.3339, allocations: 85.64 kB / 0.5511 GB, free: 11.1 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.936e-06/0.3339, allocations: 3.906 kB / 0.5511 GB, free: 11.1 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.049e-05/0.3339, allocations: 4 kB / 0.5511 GB, free: 11.09 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.56e-06/0.3339, allocations: 0 / 0.5511 GB, free: 11.09 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001503/0.3341, allocations: 142.2 kB / 0.5512 GB, free: 10.92 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.974e-05/0.3342, allocations: 52.94 kB / 0.5513 GB, free: 10.86 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.839e-05/0.3342, allocations: 25.09 kB / 0.5513 GB, free: 10.83 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.512e-05/0.3342, allocations: 3.984 kB / 0.5513 GB, free: 10.83 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002002/0.3344, allocations: 143.2 kB / 0.5514 GB, free: 10.68 MB / 394.7 MB Notification: Performance of pre-optimization done (n=10): time 1.413e-06/0.3345, allocations: 0 / 0.5514 GB, free: 10.68 MB / 394.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002475/0.3347, allocations: 73.67 kB / 0.5515 GB, free: 10.6 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.76e-05/0.3348, allocations: 59.39 kB / 0.5516 GB, free: 10.53 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.647e-05/0.3348, allocations: 100.8 kB / 0.5517 GB, free: 10.42 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.563e-05/0.3349, allocations: 29.7 kB / 0.5517 GB, free: 10.39 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.729e-05/0.3349, allocations: 80.33 kB / 0.5518 GB, free: 10.3 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.434e-05/0.3349, allocations: 27.7 kB / 0.5518 GB, free: 10.27 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.87e-06/0.3349, allocations: 0 / 0.5518 GB, free: 10.27 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.647e-05/0.335, allocations: 318.8 kB / 0.5521 GB, free: 9.953 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.532e-05/0.3351, allocations: 23.94 kB / 0.5521 GB, free: 9.93 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.416e-05/0.3352, allocations: 70.86 kB / 0.5522 GB, free: 9.836 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.775e-05/0.3352, allocations: 27.98 kB / 0.5522 GB, free: 9.809 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.3352, allocations: 0 / 0.5522 GB, free: 9.809 MB / 394.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001743/0.3354, allocations: 121.6 kB / 0.5523 GB, free: 9.684 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.01e-05/0.3354, allocations: 12.12 kB / 0.5524 GB, free: 9.672 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.3355, allocations: 7.922 kB / 0.5524 GB, free: 9.664 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.219e-05/0.3355, allocations: 4 kB / 0.5524 GB, free: 9.66 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.887e-05/0.3356, allocations: 12 kB / 0.5524 GB, free: 9.648 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.3356, allocations: 4 kB / 0.5524 GB, free: 9.645 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.793e-05/0.3356, allocations: 3.906 kB / 0.5524 GB, free: 9.641 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.124e-05/0.3357, allocations: 11.98 kB / 0.5524 GB, free: 9.629 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.0001187/0.3358, allocations: 129.8 kB / 0.5525 GB, free: 9.5 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.146e-05/0.3358, allocations: 7.906 kB / 0.5525 GB, free: 9.492 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.736e-05/0.3358, allocations: 12.05 kB / 0.5525 GB, free: 9.48 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.3359, allocations: 4 kB / 0.5525 GB, free: 9.477 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.3359, allocations: 0 / 0.5525 GB, free: 9.477 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.387e-06/0.3359, allocations: 0 / 0.5525 GB, free: 9.477 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001122/0.336, allocations: 146.1 kB / 0.5527 GB, free: 9.297 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.336, allocations: 3.938 kB / 0.5527 GB, free: 9.293 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.747e-05/0.336, allocations: 7.984 kB / 0.5527 GB, free: 9.285 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.336, allocations: 0 / 0.5527 GB, free: 9.285 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.097e-05/0.3361, allocations: 8 kB / 0.5527 GB, free: 9.277 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.3361, allocations: 3.938 kB / 0.5527 GB, free: 9.273 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.3361, allocations: 0 / 0.5527 GB, free: 9.273 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001704/0.3363, allocations: 117 kB / 0.5528 GB, free: 9.141 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.388e-05/0.3363, allocations: 81.02 kB / 0.5529 GB, free: 9.043 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.484e-05/0.3363, allocations: 4 kB / 0.5529 GB, free: 9.039 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001699/0.3365, allocations: 31.97 kB / 0.5529 GB, free: 9.008 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.106e-05/0.3365, allocations: 4.125 kB / 0.5529 GB, free: 9.004 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.321e-05/0.3366, allocations: 7.984 kB / 0.5529 GB, free: 8.996 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.862e-05/0.3366, allocations: 83.27 kB / 0.553 GB, free: 8.914 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002605/0.3368, allocations: 59.91 kB / 0.5531 GB, free: 8.855 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.0003668/0.3372, allocations: 190.8 kB / 0.5533 GB, free: 8.664 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001457/0.3374, allocations: 97.56 kB / 0.5533 GB, free: 8.562 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3374, allocations: 448 / 0.5533 GB, free: 8.562 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 4.199e-05/0.3374, allocations: 28 kB / 0.5534 GB, free: 8.535 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001001/0.3375, allocations: 3.906 kB / 0.5534 GB, free: 8.531 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000308/0.3379, allocations: 107.6 kB / 0.5535 GB, free: 8.402 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002148/0.3381, allocations: 0.7036 MB / 0.5542 GB, free: 7.672 MB / 394.7 MB Notification: Performance of SimCode: time 2e-07/0.3381, allocations: 0 / 0.5542 GB, free: 7.672 MB / 394.7 MB Notification: Performance of Templates: time 0.004107/0.3422, allocations: 2.202 MB / 0.5563 GB, free: 5.477 MB / 394.7 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