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.002149/0.002149, allocations: 188.4 kB / 16.41 MB, free: 5.723 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.985/1.985, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.00112/0.00112, allocations: 91.55 kB / 270.9 MB, free: 8.363 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.4968/0.4968, allocations: 43.55 MB / 362.7 MB, free: 51.95 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004695/0.0004697, allocations: 12 kB / 431.4 MB, free: 5.941 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1346/0.1351, allocations: 58.85 MB / 490.2 MB, free: 11.01 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4435/0.5787, allocations: 84.8 MB / 0.5615 GB, free: 1.746 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002119/0.5789, allocations: 59.97 kB / 0.5616 GB, free: 1.688 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01575/0.5947, allocations: 3.32 MB / 0.5648 GB, free: 14.39 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.5948, allocations: 4 kB / 0.5648 GB, free: 14.38 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.414e-05/0.5948, allocations: 4.938 kB / 0.5648 GB, free: 14.38 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.000575/0.5954, allocations: 392.5 kB / 0.5652 GB, free: 13.95 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.5954, allocations: 8.031 kB / 0.5652 GB, free: 13.94 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.747e-05/0.5955, allocations: 17.22 kB / 0.5652 GB, free: 13.93 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002995/0.5958, allocations: 183 kB / 0.5654 GB, free: 13.71 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.892e-05/0.5959, allocations: 4 kB / 0.5654 GB, free: 13.7 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.562e-05/0.5959, allocations: 4 kB / 0.5654 GB, free: 13.7 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000286/0.5962, allocations: 91.11 kB / 0.5655 GB, free: 13.61 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.807e-06/0.5962, allocations: 0 / 0.5655 GB, free: 13.61 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.824e-05/0.5962, allocations: 4 kB / 0.5655 GB, free: 13.6 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.5963, allocations: 3.094 kB / 0.5655 GB, free: 13.6 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001013/0.5964, allocations: 25 kB / 0.5655 GB, free: 13.58 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002339/0.5966, allocations: 169.6 kB / 0.5657 GB, free: 13.36 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001669/0.5968, allocations: 62.48 kB / 0.5658 GB, free: 13.29 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.764e-05/0.5968, allocations: 0 / 0.5658 GB, free: 13.29 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003504/0.5972, allocations: 135.5 kB / 0.5659 GB, free: 13.15 MB / 394.7 MB Notification: Performance of pre-optimization done (n=10): time 2.024e-06/0.5972, allocations: 0 / 0.5659 GB, free: 13.15 MB / 394.7 MB Notification: Performance of matching and sorting (n=10): time 0.0004583/0.5977, allocations: 125.5 kB / 0.566 GB, free: 13.02 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.483e-05/0.5977, allocations: 63.33 kB / 0.5661 GB, free: 12.95 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.084e-05/0.5978, allocations: 93 kB / 0.5662 GB, free: 12.85 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.191e-05/0.5979, allocations: 33.7 kB / 0.5662 GB, free: 12.81 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.444e-05/0.598, allocations: 150.8 kB / 0.5663 GB, free: 12.66 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.841e-05/0.598, allocations: 23.7 kB / 0.5664 GB, free: 12.63 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.142e-05/0.598, allocations: 4 kB / 0.5664 GB, free: 12.63 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000129/0.5982, allocations: 314.8 kB / 0.5667 GB, free: 12.31 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.507e-05/0.5983, allocations: 27.97 kB / 0.5667 GB, free: 12.29 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001158/0.5984, allocations: 70.86 kB / 0.5668 GB, free: 12.19 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001432/0.5986, allocations: 69.58 kB / 0.5668 GB, free: 12.12 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.5986, allocations: 0 / 0.5668 GB, free: 12.12 MB / 394.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003542/0.599, allocations: 158.9 kB / 0.567 GB, free: 11.95 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.162e-05/0.599, allocations: 33.7 kB / 0.567 GB, free: 11.91 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.213e-06/0.599, allocations: 0 / 0.567 GB, free: 11.91 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.797e-05/0.5991, allocations: 7.984 kB / 0.567 GB, free: 11.91 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001658/0.5992, allocations: 19.94 kB / 0.567 GB, free: 11.89 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.09e-05/0.5993, allocations: 4 kB / 0.567 GB, free: 11.88 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.872e-05/0.5993, allocations: 7.938 kB / 0.5671 GB, free: 11.88 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.881e-05/0.5994, allocations: 13.42 kB / 0.5671 GB, free: 11.86 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.000219/0.5996, allocations: 137.7 kB / 0.5672 GB, free: 11.72 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.743e-05/0.5997, allocations: 7.906 kB / 0.5672 GB, free: 11.71 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.982e-05/0.5998, allocations: 15.95 kB / 0.5672 GB, free: 11.7 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.5998, allocations: 0 / 0.5672 GB, free: 11.7 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.5998, allocations: 0 / 0.5672 GB, free: 11.7 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.409e-06/0.5998, allocations: 0 / 0.5672 GB, free: 11.7 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002117/0.6, allocations: 177.6 kB / 0.5674 GB, free: 11.48 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.6, allocations: 3.953 kB / 0.5674 GB, free: 11.47 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.824e-05/0.6001, allocations: 4 kB / 0.5674 GB, free: 11.47 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.688e-06/0.6001, allocations: 0 / 0.5674 GB, free: 11.47 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.903e-05/0.6002, allocations: 7.984 kB / 0.5674 GB, free: 11.46 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.25e-06/0.6002, allocations: 4 kB / 0.5674 GB, free: 11.46 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.6002, allocations: 384 / 0.5674 GB, free: 11.46 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003437/0.6005, allocations: 132.9 kB / 0.5675 GB, free: 11.31 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.44e-05/0.6006, allocations: 89.06 kB / 0.5676 GB, free: 11.2 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.432e-05/0.6007, allocations: 11.98 kB / 0.5676 GB, free: 11.19 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002807/0.6009, allocations: 19.73 kB / 0.5676 GB, free: 11.18 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.192e-05/0.601, allocations: 7.984 kB / 0.5677 GB, free: 11.17 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.148e-05/0.601, allocations: 15.88 kB / 0.5677 GB, free: 11.15 MB / 394.7 MB Notification: Performance of sorting global known variables: time 5.116e-05/0.6011, allocations: 79.28 kB / 0.5677 GB, free: 11.07 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.5e-07/0.6011, allocations: 0 / 0.5677 GB, free: 11.07 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000453/0.6016, allocations: 63.98 kB / 0.5678 GB, free: 11.01 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.0005663/0.6021, allocations: 204 kB / 0.568 GB, free: 10.84 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0003133/0.6025, allocations: 123.6 kB / 0.5681 GB, free: 10.71 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.6025, allocations: 4.062 kB / 0.5681 GB, free: 10.7 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001087/0.6026, allocations: 35.97 kB / 0.5682 GB, free: 10.67 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001509/0.6028, allocations: 4 kB / 0.5682 GB, free: 10.66 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005607/0.6034, allocations: 180 kB / 0.5683 GB, free: 10.46 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003194/0.6037, allocations: 0.6848 MB / 0.569 GB, free: 9.75 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.056e-05/0.6038, allocations: 15.42 kB / 0.569 GB, free: 9.738 MB / 394.7 MB Notification: Performance of SimCode: time 1.322e-06/0.6038, allocations: 4 kB / 0.569 GB, free: 9.734 MB / 394.7 MB Notification: Performance of Templates: time 0.006076/0.6098, allocations: 2.019 MB / 0.571 GB, free: 7.727 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