Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001388/0.001388, allocations: 177.3 kB / 17.41 MB, free: 4.414 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.261/1.261, allocations: 205.4 MB / 223.6 MB, free: 9.043 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.000797/0.000797, allocations: 89.42 kB / 271.9 MB, free: 8.285 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.2958/0.2958, allocations: 43.55 MB / 363.7 MB, free: 51.86 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003533/0.0003533, allocations: 16 kB / 432.6 MB, free: 5.68 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09607/0.09643, allocations: 58.85 MB / 491.4 MB, free: 10.74 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.249/0.3455, allocations: 84.82 MB / 0.5628 GB, free: 1.484 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001646/0.3457, allocations: 63.97 kB / 0.5628 GB, free: 1.422 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008963/0.3547, allocations: 3.327 MB / 0.5661 GB, free: 14.12 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.3547, allocations: 0 / 0.5661 GB, free: 14.12 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.097e-06/0.3547, allocations: 4 kB / 0.5661 GB, free: 14.11 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.0004076/0.3551, allocations: 397.8 kB / 0.5665 GB, free: 13.67 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.3552, allocations: 8.031 kB / 0.5665 GB, free: 13.66 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.46e-05/0.3552, allocations: 8.844 kB / 0.5665 GB, free: 13.66 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001936/0.3554, allocations: 184.2 kB / 0.5667 GB, free: 13.44 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.758e-05/0.3555, allocations: 12.36 kB / 0.5667 GB, free: 13.43 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.683e-05/0.3555, allocations: 4.375 kB / 0.5667 GB, free: 13.42 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001775/0.3557, allocations: 86.19 kB / 0.5667 GB, free: 13.33 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.3557, allocations: 192 / 0.5667 GB, free: 13.33 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.832e-05/0.3557, allocations: 7.938 kB / 0.5668 GB, free: 13.32 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-06/0.3557, allocations: 0 / 0.5668 GB, free: 13.32 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.96e-05/0.3558, allocations: 23.97 kB / 0.5668 GB, free: 13.3 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001743/0.356, allocations: 172.5 kB / 0.5669 GB, free: 13.09 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.451e-05/0.3561, allocations: 59.81 kB / 0.567 GB, free: 13.02 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.605e-05/0.3561, allocations: 20.84 kB / 0.567 GB, free: 13 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.431e-05/0.3561, allocations: 4 kB / 0.567 GB, free: 12.99 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000229/0.3564, allocations: 131.2 kB / 0.5671 GB, free: 12.85 MB / 394.7 MB Notification: Performance of pre-optimization done (n=10): time 1.382e-06/0.3564, allocations: 0 / 0.5671 GB, free: 12.85 MB / 394.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002761/0.3567, allocations: 129.4 kB / 0.5673 GB, free: 12.72 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.584e-05/0.3567, allocations: 55.41 kB / 0.5673 GB, free: 12.65 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.825e-05/0.3568, allocations: 109.8 kB / 0.5674 GB, free: 12.54 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.304e-05/0.3568, allocations: 33.7 kB / 0.5675 GB, free: 12.5 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.946e-05/0.3569, allocations: 80.14 kB / 0.5675 GB, free: 12.41 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.242e-05/0.3569, allocations: 27.64 kB / 0.5676 GB, free: 12.39 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.611e-06/0.3569, allocations: 0 / 0.5676 GB, free: 12.39 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001171/0.357, allocations: 318.8 kB / 0.5679 GB, free: 12.07 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.811e-05/0.3571, allocations: 23.98 kB / 0.5679 GB, free: 12.04 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.103e-05/0.3572, allocations: 75.69 kB / 0.568 GB, free: 11.95 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001903/0.3574, allocations: 144.4 kB / 0.5681 GB, free: 11.77 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.3574, allocations: 1.031 kB / 0.5681 GB, free: 11.77 MB / 394.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000209/0.3576, allocations: 159.8 kB / 0.5683 GB, free: 11.61 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.032e-05/0.3576, allocations: 37.64 kB / 0.5683 GB, free: 11.56 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.3577, allocations: 224 / 0.5683 GB, free: 11.56 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.535e-05/0.3577, allocations: 8 kB / 0.5683 GB, free: 11.55 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.103e-05/0.3578, allocations: 19.92 kB / 0.5683 GB, free: 11.54 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.694e-06/0.3578, allocations: 4 kB / 0.5683 GB, free: 11.53 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.471e-05/0.3578, allocations: 8 kB / 0.5683 GB, free: 11.52 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.335e-05/0.3579, allocations: 5.062 kB / 0.5683 GB, free: 11.52 MB / 394.7 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.0001279/0.358, allocations: 136.4 kB / 0.5685 GB, free: 11.38 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.104e-05/0.358, allocations: 11.84 kB / 0.5685 GB, free: 11.37 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.44e-05/0.3581, allocations: 12.34 kB / 0.5685 GB, free: 11.36 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.3581, allocations: 3.938 kB / 0.5685 GB, free: 11.36 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.3581, allocations: 3.984 kB / 0.5685 GB, free: 11.35 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.3581, allocations: 0 / 0.5685 GB, free: 11.35 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001433/0.3582, allocations: 181.8 kB / 0.5687 GB, free: 11.12 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.993e-06/0.3582, allocations: 1.688 kB / 0.5687 GB, free: 11.12 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.281e-05/0.3583, allocations: 4 kB / 0.5687 GB, free: 11.12 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.958e-06/0.3583, allocations: 3.938 kB / 0.5687 GB, free: 11.12 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.017e-05/0.3583, allocations: 0 / 0.5687 GB, free: 11.12 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-05/0.3583, allocations: 7.984 kB / 0.5687 GB, free: 11.11 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.3583, allocations: 4 kB / 0.5687 GB, free: 11.11 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001911/0.3585, allocations: 132.9 kB / 0.5688 GB, free: 10.96 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.633e-05/0.3586, allocations: 85.05 kB / 0.5689 GB, free: 10.86 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.15e-05/0.3586, allocations: 4 kB / 0.5689 GB, free: 10.85 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001388/0.3588, allocations: 23.97 kB / 0.5689 GB, free: 10.83 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.242e-05/0.3588, allocations: 8 kB / 0.5689 GB, free: 10.82 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.524e-05/0.3588, allocations: 11.98 kB / 0.5689 GB, free: 10.81 MB / 394.7 MB Notification: Performance of sorting global known variables: time 3.067e-05/0.3589, allocations: 75.28 kB / 0.569 GB, free: 10.73 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3589, allocations: 0 / 0.569 GB, free: 10.73 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002766/0.3591, allocations: 59.92 kB / 0.5691 GB, free: 10.68 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) * Number of clocked states: 0 () * 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.0003785/0.3595, allocations: 209.5 kB / 0.5693 GB, free: 10.49 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.000191/0.3597, allocations: 123.2 kB / 0.5694 GB, free: 10.36 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.3597, allocations: 0 / 0.5694 GB, free: 10.36 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 6.143e-05/0.3598, allocations: 35.92 kB / 0.5694 GB, free: 10.32 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001432/0.36, allocations: 11.98 kB / 0.5694 GB, free: 10.31 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003653/0.3603, allocations: 188.4 kB / 0.5696 GB, free: 10.1 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002346/0.3606, allocations: 0.6809 MB / 0.5703 GB, free: 9.395 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.308e-05/0.3606, allocations: 15.38 kB / 0.5703 GB, free: 9.383 MB / 394.7 MB Notification: Performance of SimCode: time 2.2e-07/0.3606, allocations: 0 / 0.5703 GB, free: 9.383 MB / 394.7 MB Notification: Performance of Templates: time 0.003321/0.3639, allocations: 1.95 MB / 0.5722 GB, free: 7.441 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/jenkins1/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) Reference file matches