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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009337/0.0009339, allocations: 183.7 kB / 13.19 MB, free: 2.129 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.297/1.297, allocations: 205.2 MB / 218.9 MB, free: 9.203 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.0007765/0.0007764, allocations: 83.22 kB / 267 MB, free: 9.27 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.3138/0.3138, allocations: 43.47 MB / 358.6 MB, free: 51.58 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.49e-05/2.494e-05, allocations: 4 kB / 425.3 MB, free: 8.195 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09551/0.09555, allocations: 58.84 MB / 484.2 MB, free: 13.25 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3253/0.4209, allocations: 84.71 MB / 0.5555 GB, free: 18.69 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001438/0.421, allocations: 63.61 kB / 0.5556 GB, free: 18.66 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00854/0.4296, allocations: 3.319 MB / 0.5588 GB, free: 16.71 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.4296, allocations: 4 kB / 0.5588 GB, free: 16.71 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.335e-06/0.4296, allocations: 0 / 0.5588 GB, free: 16.71 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.0002641/0.4299, allocations: 385.5 kB / 0.5592 GB, free: 16.3 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/0.43, allocations: 12.03 kB / 0.5592 GB, free: 16.29 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.147e-05/0.43, allocations: 9.156 kB / 0.5592 GB, free: 16.29 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001657/0.4302, allocations: 191.8 kB / 0.5594 GB, free: 16.07 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.291e-05/0.4302, allocations: 5.406 kB / 0.5594 GB, free: 16.06 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.596e-05/0.4302, allocations: 3.625 kB / 0.5594 GB, free: 16.06 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001555/0.4304, allocations: 86.91 kB / 0.5595 GB, free: 16 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.653e-06/0.4304, allocations: 0 / 0.5595 GB, free: 16 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.861e-05/0.4304, allocations: 5.688 kB / 0.5595 GB, free: 16 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.4304, allocations: 1.375 kB / 0.5595 GB, free: 16 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.677e-05/0.4305, allocations: 21.59 kB / 0.5595 GB, free: 15.98 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001288/0.4306, allocations: 173.4 kB / 0.5597 GB, free: 15.78 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.547e-05/0.4307, allocations: 58.67 kB / 0.5597 GB, free: 15.73 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.337e-05/0.4307, allocations: 21.33 kB / 0.5598 GB, free: 15.71 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.278e-05/0.4308, allocations: 3 kB / 0.5598 GB, free: 15.71 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001689/0.4309, allocations: 133.8 kB / 0.5599 GB, free: 15.61 MB / 394.7 MB Notification: Performance of pre-optimization done (n=10): time 1.262e-06/0.431, allocations: 0 / 0.5599 GB, free: 15.61 MB / 394.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001977/0.4312, allocations: 104 kB / 0.56 GB, free: 15.52 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.289e-05/0.4312, allocations: 60.56 kB / 0.56 GB, free: 15.45 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.277e-05/0.4312, allocations: 94.34 kB / 0.5601 GB, free: 15.36 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.994e-05/0.4313, allocations: 29.83 kB / 0.5602 GB, free: 15.32 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.59e-05/0.4313, allocations: 80.94 kB / 0.5602 GB, free: 15.24 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.556e-05/0.4313, allocations: 37.19 kB / 0.5603 GB, free: 15.21 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.639e-06/0.4313, allocations: 0 / 0.5603 GB, free: 15.21 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 4.432e-05/0.4314, allocations: 320 kB / 0.5606 GB, free: 14.89 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.703e-05/0.4314, allocations: 24.66 kB / 0.5606 GB, free: 14.88 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.141e-05/0.4315, allocations: 69.56 kB / 0.5607 GB, free: 14.8 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.632e-05/0.4315, allocations: 66.08 kB / 0.5607 GB, free: 14.74 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.4316, allocations: 4 kB / 0.5607 GB, free: 14.74 MB / 394.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001651/0.4317, allocations: 154.6 kB / 0.5609 GB, free: 14.61 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.4318, allocations: 34.64 kB / 0.5609 GB, free: 14.57 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/0.4318, allocations: 0 / 0.5609 GB, free: 14.57 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.094e-05/0.4318, allocations: 4.984 kB / 0.5609 GB, free: 14.56 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.01e-05/0.4319, allocations: 18.09 kB / 0.5609 GB, free: 14.55 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.4319, allocations: 4.703 kB / 0.5609 GB, free: 14.54 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.227e-05/0.4319, allocations: 7 kB / 0.561 GB, free: 14.54 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.035e-05/0.4319, allocations: 7.734 kB / 0.561 GB, free: 14.54 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 9.04e-05/0.432, allocations: 133.5 kB / 0.5611 GB, free: 14.41 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.895e-05/0.4321, allocations: 8.75 kB / 0.5611 GB, free: 14.4 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.3e-05/0.4321, allocations: 8.766 kB / 0.5611 GB, free: 14.4 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.933e-06/0.4321, allocations: 4 kB / 0.5611 GB, free: 14.39 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.4321, allocations: 0.5625 kB / 0.5611 GB, free: 14.39 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.4321, allocations: 1.875 kB / 0.5611 GB, free: 14.39 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001044/0.4322, allocations: 179.8 kB / 0.5613 GB, free: 14.19 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.4322, allocations: 3.031 kB / 0.5613 GB, free: 14.19 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.072e-05/0.4323, allocations: 5.594 kB / 0.5613 GB, free: 14.18 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.4323, allocations: 4 kB / 0.5613 GB, free: 14.18 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.122e-05/0.4323, allocations: 5.406 kB / 0.5613 GB, free: 14.18 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.4323, allocations: 0 / 0.5613 GB, free: 14.18 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.4323, allocations: 0.6562 kB / 0.5613 GB, free: 14.18 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000154/0.4325, allocations: 130.2 kB / 0.5614 GB, free: 14.06 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.964e-05/0.4325, allocations: 89.58 kB / 0.5615 GB, free: 13.95 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.06e-05/0.4325, allocations: 4.969 kB / 0.5615 GB, free: 13.95 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001396/0.4327, allocations: 26.09 kB / 0.5615 GB, free: 13.93 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.787e-05/0.4327, allocations: 9.891 kB / 0.5616 GB, free: 13.93 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.041e-05/0.4327, allocations: 5.453 kB / 0.5616 GB, free: 13.93 MB / 394.7 MB Notification: Performance of sorting global known variables: time 1.779e-05/0.4328, allocations: 80.83 kB / 0.5616 GB, free: 13.85 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4328, allocations: 0 / 0.5616 GB, free: 13.85 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002355/0.433, allocations: 57.59 kB / 0.5617 GB, free: 13.8 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.0003359/0.4333, allocations: 206.9 kB / 0.5619 GB, free: 13.63 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001434/0.4335, allocations: 127.8 kB / 0.562 GB, free: 13.52 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.4335, allocations: 0 / 0.562 GB, free: 13.52 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 4.332e-05/0.4336, allocations: 25.34 kB / 0.562 GB, free: 13.5 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.476e-05/0.4337, allocations: 9.594 kB / 0.562 GB, free: 13.49 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000288/0.4339, allocations: 110 kB / 0.5621 GB, free: 13.38 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.618e-05/0.4341, allocations: 0.684 MB / 0.5628 GB, free: 12.68 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 4.707e-05/0.4341, allocations: 12.7 kB / 0.5628 GB, free: 12.67 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.047e-05/0.4341, allocations: 16.33 kB / 0.5628 GB, free: 12.65 MB / 394.7 MB Notification: Performance of SimCode: time 3.2e-07/0.4341, allocations: 0 / 0.5628 GB, free: 12.65 MB / 394.7 MB Notification: Performance of Templates: time 0.004108/0.4383, allocations: 2.076 MB / 0.5649 GB, free: 11.48 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