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.0009929/0.000993, allocations: 176.7 kB / 8.008 MB, free: 1.066 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.463/1.463, allocations: 205.3 MB / 213.7 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007815/0.0007815, allocations: 90.34 kB / 261.8 MB, free: 1.68 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.2078/0.2078, allocations: 43.5 MB / 353.2 MB, free: 280 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.778e-05/2.781e-05, allocations: 4 kB / 418.3 MB, free: 28.55 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1225/0.1226, allocations: 58.86 MB / 477.1 MB, free: 1.648 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3916/0.5142, allocations: 84.04 MB / 0.548 GB, free: 9.051 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000165/0.5144, allocations: 63.22 kB / 0.5481 GB, free: 9.051 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008628/0.5231, allocations: 3.314 MB / 0.5513 GB, free: 7.621 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.5231, allocations: 0 / 0.5513 GB, free: 7.621 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.016e-05/0.5231, allocations: 0 / 0.5513 GB, free: 7.621 MB / 362.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.0003424/0.5235, allocations: 385.4 kB / 0.5517 GB, free: 7.203 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.5235, allocations: 12.03 kB / 0.5517 GB, free: 7.191 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.979e-05/0.5236, allocations: 11.89 kB / 0.5517 GB, free: 7.18 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001728/0.5238, allocations: 182.9 kB / 0.5519 GB, free: 6.961 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.772e-05/0.5238, allocations: 4 kB / 0.5519 GB, free: 6.957 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.961e-05/0.5238, allocations: 4 kB / 0.5519 GB, free: 6.953 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.107e-05/0.5239, allocations: 19.23 kB / 0.5519 GB, free: 6.938 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001511/0.5241, allocations: 89.88 kB / 0.552 GB, free: 6.859 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.838e-06/0.5241, allocations: 0 / 0.552 GB, free: 6.859 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.27e-05/0.5241, allocations: 10.94 kB / 0.552 GB, free: 6.852 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.088e-06/0.5241, allocations: 0 / 0.552 GB, free: 6.852 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001406/0.5243, allocations: 148.8 kB / 0.5521 GB, free: 6.676 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.958e-05/0.5243, allocations: 48.33 kB / 0.5522 GB, free: 6.629 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.144e-05/0.5244, allocations: 23.72 kB / 0.5522 GB, free: 6.605 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.693e-05/0.5244, allocations: 0 / 0.5522 GB, free: 6.605 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000168/0.5246, allocations: 125.5 kB / 0.5523 GB, free: 6.488 MB / 362.7 MB Notification: Performance of pre-optimization done (n=10): time 2.564e-06/0.5246, allocations: 4 kB / 0.5523 GB, free: 6.484 MB / 362.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002693/0.5249, allocations: 102.1 kB / 0.5524 GB, free: 6.391 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.371e-05/0.5249, allocations: 62.28 kB / 0.5525 GB, free: 6.32 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.898e-05/0.5249, allocations: 88.98 kB / 0.5526 GB, free: 6.227 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.048e-05/0.525, allocations: 32.39 kB / 0.5526 GB, free: 6.191 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.891e-05/0.525, allocations: 80.33 kB / 0.5527 GB, free: 6.105 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.612e-05/0.525, allocations: 27.14 kB / 0.5527 GB, free: 6.082 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.739e-06/0.525, allocations: 0 / 0.5527 GB, free: 6.082 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.656e-05/0.5251, allocations: 318.3 kB / 0.553 GB, free: 5.766 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.306e-05/0.5251, allocations: 26.8 kB / 0.553 GB, free: 5.746 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.784e-05/0.5252, allocations: 66.05 kB / 0.5531 GB, free: 5.664 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.11e-05/0.5253, allocations: 30.98 kB / 0.5531 GB, free: 5.641 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.5253, allocations: 3.938 kB / 0.5531 GB, free: 5.637 MB / 362.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001589/0.5254, allocations: 119.7 kB / 0.5532 GB, free: 5.527 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.083e-05/0.5255, allocations: 33.7 kB / 0.5533 GB, free: 5.488 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.5255, allocations: 0 / 0.5533 GB, free: 5.488 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.523e-05/0.5255, allocations: 4 kB / 0.5533 GB, free: 5.484 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.578e-05/0.5256, allocations: 20.2 kB / 0.5533 GB, free: 5.465 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.5256, allocations: 4 kB / 0.5533 GB, free: 5.461 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.254e-05/0.5257, allocations: 7.938 kB / 0.5533 GB, free: 5.453 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.085e-05/0.5257, allocations: 7.875 kB / 0.5533 GB, free: 5.449 MB / 362.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.0001051/0.5258, allocations: 118.6 kB / 0.5534 GB, free: 5.328 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.998e-05/0.5258, allocations: 15.17 kB / 0.5534 GB, free: 5.316 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.031e-05/0.5258, allocations: 4.406 kB / 0.5534 GB, free: 5.312 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.5259, allocations: 4.188 kB / 0.5534 GB, free: 5.309 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.179e-06/0.5259, allocations: 3.984 kB / 0.5535 GB, free: 5.305 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.666e-06/0.5259, allocations: 3.984 kB / 0.5535 GB, free: 5.301 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.891e-05/0.526, allocations: 153.7 kB / 0.5536 GB, free: 5.125 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.526, allocations: 4 kB / 0.5536 GB, free: 5.121 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.279e-05/0.526, allocations: 11.92 kB / 0.5536 GB, free: 5.109 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.526, allocations: 0 / 0.5536 GB, free: 5.109 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.066e-05/0.526, allocations: 3.953 kB / 0.5536 GB, free: 5.105 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.526, allocations: 64 / 0.5536 GB, free: 5.105 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.5261, allocations: 4 kB / 0.5536 GB, free: 5.102 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001696/0.5262, allocations: 145.9 kB / 0.5538 GB, free: 4.957 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.667e-05/0.5263, allocations: 81.11 kB / 0.5538 GB, free: 4.859 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.006e-05/0.5263, allocations: 0 / 0.5538 GB, free: 4.859 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000141/0.5264, allocations: 27.92 kB / 0.5539 GB, free: 4.832 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.162e-05/0.5265, allocations: 4 kB / 0.5539 GB, free: 4.828 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.039e-05/0.5265, allocations: 11.92 kB / 0.5539 GB, free: 4.82 MB / 362.7 MB Notification: Performance of sorting global known variables: time 1.557e-05/0.5265, allocations: 79.28 kB / 0.554 GB, free: 4.742 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5265, allocations: 0 / 0.554 GB, free: 4.742 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002546/0.5268, allocations: 63.61 kB / 0.554 GB, free: 4.684 MB / 362.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.000362/0.5271, allocations: 186.1 kB / 0.5542 GB, free: 4.508 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001384/0.5273, allocations: 120.8 kB / 0.5543 GB, free: 4.391 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.5273, allocations: 0 / 0.5543 GB, free: 4.391 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.889e-05/0.5273, allocations: 26.69 kB / 0.5543 GB, free: 4.371 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001078/0.5274, allocations: 0 / 0.5543 GB, free: 4.371 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003042/0.5278, allocations: 107.7 kB / 0.5544 GB, free: 4.25 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001467/0.5279, allocations: 0.6888 MB / 0.5551 GB, free: 3.535 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.312e-05/0.528, allocations: 12.66 kB / 0.5551 GB, free: 3.523 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.084e-05/0.528, allocations: 19.42 kB / 0.5551 GB, free: 3.504 MB / 362.7 MB Notification: Performance of SimCode: time 2.5e-07/0.528, allocations: 0 / 0.5551 GB, free: 3.504 MB / 362.7 MB Notification: Performance of Templates: time 0.003898/0.5319, allocations: 2.045 MB / 0.5571 GB, free: 1.48 MB / 362.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