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.001435/0.001435, allocations: 179.4 kB / 8.364 MB, free: 0.7148 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.977/1.977, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001114/0.001113, allocations: 88.91 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2941/0.2941, allocations: 43.49 MB / 353.6 MB, free: 2.273 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.537e-05/2.543e-05, allocations: 224 / 418.2 MB, free: 41.04 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4066/0.4067, allocations: 58.86 MB / 477.1 MB, free: 5.25 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1601/0.5668, allocations: 84.05 MB / 0.548 GB, free: 15.26 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002409/0.5672, allocations: 59.97 kB / 0.548 GB, free: 15.2 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01641/0.5836, allocations: 3.313 MB / 0.5513 GB, free: 11.89 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.5836, allocations: 0 / 0.5513 GB, free: 11.89 MB / 395.1 MB Notification: Performance of Transformations before backend: time 1.544e-05/0.5837, allocations: 4 kB / 0.5513 GB, free: 11.89 MB / 395.1 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.0005579/0.5842, allocations: 376.1 kB / 0.5516 GB, free: 11.47 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.972e-05/0.5843, allocations: 12.03 kB / 0.5516 GB, free: 11.46 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.68e-05/0.5844, allocations: 11.89 kB / 0.5517 GB, free: 11.45 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002963/0.5847, allocations: 186.9 kB / 0.5518 GB, free: 11.23 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.492e-05/0.5847, allocations: 4 kB / 0.5518 GB, free: 11.22 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.302e-05/0.5848, allocations: 4 kB / 0.5518 GB, free: 11.22 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001107/0.5849, allocations: 19.98 kB / 0.5519 GB, free: 11.2 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000214/0.5851, allocations: 88.05 kB / 0.5519 GB, free: 11.11 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.5851, allocations: 0 / 0.5519 GB, free: 11.11 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.66e-05/0.5852, allocations: 3.938 kB / 0.552 GB, free: 11.11 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.078e-06/0.5852, allocations: 4 kB / 0.552 GB, free: 11.1 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002261/0.5854, allocations: 146.2 kB / 0.5521 GB, free: 10.92 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001282/0.5856, allocations: 54.64 kB / 0.5521 GB, free: 10.86 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.409e-05/0.5856, allocations: 20.84 kB / 0.5522 GB, free: 10.84 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.078e-05/0.5857, allocations: 3.984 kB / 0.5522 GB, free: 10.83 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003161/0.586, allocations: 131.3 kB / 0.5523 GB, free: 10.69 MB / 395.1 MB Notification: Performance of pre-optimization done (n=10): time 2.134e-06/0.586, allocations: 0 / 0.5523 GB, free: 10.69 MB / 395.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004288/0.5865, allocations: 101.6 kB / 0.5524 GB, free: 10.59 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.577e-05/0.5865, allocations: 59.33 kB / 0.5524 GB, free: 10.52 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.823e-05/0.5866, allocations: 93 kB / 0.5525 GB, free: 10.42 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 4.439e-05/0.5867, allocations: 29.7 kB / 0.5526 GB, free: 10.38 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.246e-05/0.5868, allocations: 150.8 kB / 0.5527 GB, free: 10.23 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.72e-05/0.5868, allocations: 27.64 kB / 0.5527 GB, free: 10.2 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.254e-06/0.5868, allocations: 0 / 0.5527 GB, free: 10.2 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.587, allocations: 318.8 kB / 0.553 GB, free: 9.883 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.786e-05/0.5871, allocations: 19.98 kB / 0.5531 GB, free: 9.863 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001141/0.5872, allocations: 74.86 kB / 0.5531 GB, free: 9.766 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001342/0.5874, allocations: 27.98 kB / 0.5532 GB, free: 9.738 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.5874, allocations: 3.938 kB / 0.5532 GB, free: 9.734 MB / 395.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003244/0.5877, allocations: 121.4 kB / 0.5533 GB, free: 9.609 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.122e-05/0.5878, allocations: 33.7 kB / 0.5533 GB, free: 9.57 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/0.5878, allocations: 0 / 0.5533 GB, free: 9.57 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.041e-05/0.5878, allocations: 8.219 kB / 0.5533 GB, free: 9.562 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001623/0.588, allocations: 15.98 kB / 0.5533 GB, free: 9.547 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.108e-05/0.588, allocations: 4 kB / 0.5533 GB, free: 9.543 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.5e-05/0.5881, allocations: 3.938 kB / 0.5533 GB, free: 9.539 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.158e-05/0.5882, allocations: 11.98 kB / 0.5534 GB, free: 9.527 MB / 395.1 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.0001886/0.5884, allocations: 116.9 kB / 0.5535 GB, free: 9.406 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.119e-05/0.5884, allocations: 11.86 kB / 0.5535 GB, free: 9.395 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.224e-05/0.5885, allocations: 12.5 kB / 0.5535 GB, free: 9.383 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.5885, allocations: 7.938 kB / 0.5535 GB, free: 9.375 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.5885, allocations: 3.984 kB / 0.5535 GB, free: 9.371 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.5885, allocations: 0 / 0.5535 GB, free: 9.371 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001964/0.5887, allocations: 150.3 kB / 0.5536 GB, free: 9.188 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.5887, allocations: 0 / 0.5536 GB, free: 9.188 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.221e-05/0.5888, allocations: 11.92 kB / 0.5537 GB, free: 9.176 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.5888, allocations: 0 / 0.5537 GB, free: 9.176 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.538e-05/0.5889, allocations: 7.953 kB / 0.5537 GB, free: 9.168 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.5889, allocations: 0 / 0.5537 GB, free: 9.168 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.5889, allocations: 0 / 0.5537 GB, free: 9.168 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003459/0.5892, allocations: 140.9 kB / 0.5538 GB, free: 9.012 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.066e-05/0.5893, allocations: 77.11 kB / 0.5539 GB, free: 8.918 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.225e-05/0.5893, allocations: 4 kB / 0.5539 GB, free: 8.914 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002873/0.5896, allocations: 27.98 kB / 0.5539 GB, free: 8.887 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.005e-05/0.5897, allocations: 8 kB / 0.5539 GB, free: 8.879 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.124e-05/0.5897, allocations: 11.98 kB / 0.5539 GB, free: 8.867 MB / 395.1 MB Notification: Performance of sorting global known variables: time 4.642e-05/0.5898, allocations: 79.28 kB / 0.554 GB, free: 8.789 MB / 395.1 MB Notification: Performance of sort global known variables: time 3.9e-07/0.5898, allocations: 0 / 0.554 GB, free: 8.789 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0004613/0.5903, allocations: 59.92 kB / 0.554 GB, free: 8.73 MB / 395.1 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.000605/0.5909, allocations: 195.4 kB / 0.5542 GB, free: 8.535 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0002767/0.5912, allocations: 119.3 kB / 0.5543 GB, free: 8.406 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/0.5912, allocations: 4 kB / 0.5544 GB, free: 8.402 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 7.942e-05/0.5913, allocations: 20 kB / 0.5544 GB, free: 8.383 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001533/0.5915, allocations: 4 kB / 0.5544 GB, free: 8.379 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004958/0.592, allocations: 130 kB / 0.5545 GB, free: 8.223 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003153/0.5923, allocations: 0.6885 MB / 0.5552 GB, free: 7.508 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.267e-05/0.5924, allocations: 15.42 kB / 0.5552 GB, free: 7.492 MB / 395.1 MB Notification: Performance of SimCode: time 7.72e-07/0.5924, allocations: 4 kB / 0.5552 GB, free: 7.488 MB / 395.1 MB Notification: Performance of Templates: time 0.006055/0.5984, allocations: 2.025 MB / 0.5572 GB, free: 5.469 MB / 395.1 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