Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.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.TestRandomIntegers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|cnt.1.|cnt.2.|cnt.3.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.0009936/0.0009937, allocations: 179.6 kB / 8.519 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.241/1.241, allocations: 221.4 MB / 230.3 MB, free: 7.633 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009119/0.0009118, allocations: 89.69 kB / 281.2 MB, free: 5.43 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.1853/0.1853, allocations: 44.15 MB / 376.1 MB, free: 3.195 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.474e-06/7.504e-06, allocations: 3.938 kB / 444 MB, free: 15.57 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.1164, allocations: 61.9 MB / 0.4941 GB, free: 1.598 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3452/0.4617, allocations: 85.1 MB / 0.5772 GB, free: 11.59 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002593/0.462, allocations: 57.64 kB / 0.5772 GB, free: 11.57 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.01435/0.4764, allocations: 3.04 MB / 0.5802 GB, free: 8.578 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.372e-05/0.4764, allocations: 4 kB / 0.5802 GB, free: 8.574 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.000498/0.4769, allocations: 388 kB / 0.5806 GB, free: 8.145 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.234e-05/0.477, allocations: 11.97 kB / 0.5806 GB, free: 8.133 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.018e-05/0.4771, allocations: 11.91 kB / 0.5806 GB, free: 8.121 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002906/0.4774, allocations: 182.9 kB / 0.5808 GB, free: 7.902 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.461e-05/0.4774, allocations: 4 kB / 0.5808 GB, free: 7.898 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.945e-05/0.4774, allocations: 4 kB / 0.5808 GB, free: 7.895 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001106/0.4776, allocations: 19.98 kB / 0.5808 GB, free: 7.875 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002048/0.4778, allocations: 85.64 kB / 0.5809 GB, free: 7.785 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.4778, allocations: 3.984 kB / 0.5809 GB, free: 7.781 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.749e-05/0.4778, allocations: 3.906 kB / 0.5809 GB, free: 7.777 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-06/0.4779, allocations: 0 / 0.5809 GB, free: 7.777 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002208/0.4781, allocations: 142.2 kB / 0.581 GB, free: 7.602 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001078/0.4782, allocations: 50.56 kB / 0.5811 GB, free: 7.543 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.813e-05/0.4783, allocations: 20.8 kB / 0.5811 GB, free: 7.52 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.518e-05/0.4783, allocations: 4 kB / 0.5811 GB, free: 7.516 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003099/0.4786, allocations: 143.3 kB / 0.5812 GB, free: 7.367 MB / 394.7 MB Notification: Performance of pre-optimization done (n=10): time 1.704e-06/0.4786, allocations: 0 / 0.5812 GB, free: 7.367 MB / 394.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003785/0.479, allocations: 85.66 kB / 0.5813 GB, free: 7.277 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.315e-05/0.4791, allocations: 55.39 kB / 0.5814 GB, free: 7.211 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.848e-05/0.4792, allocations: 96.97 kB / 0.5815 GB, free: 7.109 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.019e-05/0.4792, allocations: 30.45 kB / 0.5815 GB, free: 7.074 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.146e-05/0.4793, allocations: 92.17 kB / 0.5816 GB, free: 6.977 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.878e-05/0.4793, allocations: 27.64 kB / 0.5816 GB, free: 6.949 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.013e-06/0.4794, allocations: 0 / 0.5816 GB, free: 6.949 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.4795, allocations: 322.8 kB / 0.5819 GB, free: 6.625 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.494e-05/0.4796, allocations: 19.98 kB / 0.5819 GB, free: 6.605 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.112e-05/0.4797, allocations: 66.86 kB / 0.582 GB, free: 6.516 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001179/0.4798, allocations: 31.98 kB / 0.582 GB, free: 6.484 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.4798, allocations: 4.094 kB / 0.582 GB, free: 6.48 MB / 394.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000283/0.4801, allocations: 117.4 kB / 0.5822 GB, free: 6.359 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.734e-05/0.4801, allocations: 4 kB / 0.5822 GB, free: 6.355 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.4801, allocations: 4.156 kB / 0.5822 GB, free: 6.352 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/0.4802, allocations: 8 kB / 0.5822 GB, free: 6.344 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001253/0.4803, allocations: 15.98 kB / 0.5822 GB, free: 6.328 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/0.4803, allocations: 4 kB / 0.5822 GB, free: 6.324 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.172e-05/0.4804, allocations: 7.906 kB / 0.5822 GB, free: 6.316 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.694e-05/0.4804, allocations: 8 kB / 0.5822 GB, free: 6.309 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.0001573/0.4806, allocations: 119.8 kB / 0.5823 GB, free: 6.188 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.737e-05/0.4807, allocations: 11.84 kB / 0.5823 GB, free: 6.176 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.164e-05/0.4807, allocations: 16.06 kB / 0.5823 GB, free: 6.16 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.4807, allocations: 0 / 0.5823 GB, free: 6.16 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.4807, allocations: 0 / 0.5823 GB, free: 6.16 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.4808, allocations: 0 / 0.5823 GB, free: 6.16 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001629/0.4809, allocations: 150.1 kB / 0.5825 GB, free: 5.977 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.4809, allocations: 0 / 0.5825 GB, free: 5.977 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.785e-05/0.481, allocations: 4 kB / 0.5825 GB, free: 5.973 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.481, allocations: 7.984 kB / 0.5825 GB, free: 5.965 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.407e-05/0.481, allocations: 0 / 0.5825 GB, free: 5.965 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.481, allocations: 0 / 0.5825 GB, free: 5.965 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.469e-06/0.4811, allocations: 7.938 kB / 0.5825 GB, free: 5.957 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002659/0.4813, allocations: 117 kB / 0.5826 GB, free: 5.824 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.538e-05/0.4814, allocations: 81.02 kB / 0.5827 GB, free: 5.727 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.503e-05/0.4814, allocations: 7.984 kB / 0.5827 GB, free: 5.719 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002375/0.4817, allocations: 28.05 kB / 0.5827 GB, free: 5.691 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.216e-05/0.4817, allocations: 3.984 kB / 0.5827 GB, free: 5.688 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.972e-05/0.4817, allocations: 8 kB / 0.5827 GB, free: 5.68 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.158e-05/0.4818, allocations: 87.2 kB / 0.5828 GB, free: 5.594 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005011/0.4823, allocations: 51.94 kB / 0.5829 GB, free: 5.543 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.0005875/0.4829, allocations: 191.6 kB / 0.5831 GB, free: 5.359 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0002234/0.4831, allocations: 93.56 kB / 0.5831 GB, free: 5.262 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.4831, allocations: 0 / 0.5831 GB, free: 5.262 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 6.89e-05/0.4832, allocations: 31.98 kB / 0.5832 GB, free: 5.23 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001663/0.4834, allocations: 4.422 kB / 0.5832 GB, free: 5.227 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004503/0.4839, allocations: 107.6 kB / 0.5833 GB, free: 5.098 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003135/0.4842, allocations: 0.6997 MB / 0.584 GB, free: 4.371 MB / 394.7 MB Notification: Performance of SimCode: time 3.3e-07/0.4842, allocations: 0 / 0.584 GB, free: 4.371 MB / 394.7 MB Notification: Performance of Templates: time 0.006691/0.4909, allocations: 2.188 MB / 0.5861 GB, free: 2.188 MB / 394.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches