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.0009124/0.0009124, allocations: 173.7 kB / 16.72 MB, free: 5.086 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.184/1.184, allocations: 205.4 MB / 222.9 MB, free: 8.949 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.000703/0.000703, allocations: 101.4 kB / 271.2 MB, free: 8.238 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.3238/0.3238, allocations: 43.56 MB / 363.1 MB, free: 52.18 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004174/0.0004176, allocations: 16 kB / 432 MB, free: 5.84 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1124, allocations: 58.86 MB / 490.8 MB, free: 10.9 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.0007138/0.1132, allocations: 272.2 kB / 491.1 MB, free: 10.63 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008459/0.114, allocations: 418.5 kB / 491.5 MB, free: 10.22 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.872e-05/0.1141, allocations: 0 / 491.5 MB, free: 10.22 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 8.854e-05/0.1142, allocations: 0 / 491.5 MB, free: 10.22 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001331/0.1143, allocations: 7.984 kB / 491.5 MB, free: 10.21 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006179/0.115, allocations: 143.7 kB / 491.6 MB, free: 10.07 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001406/0.1151, allocations: 63.86 kB / 491.7 MB, free: 10.01 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.787e-05/0.1152, allocations: 3.938 kB / 491.7 MB, free: 10.01 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.811e-05/0.1153, allocations: 43.89 kB / 491.8 MB, free: 9.965 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.419e-05/0.1153, allocations: 19.97 kB / 491.8 MB, free: 9.945 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.044e-05/0.1154, allocations: 4 kB / 491.8 MB, free: 9.941 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002179/0.1156, allocations: 87.84 kB / 491.9 MB, free: 9.855 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 5.516e-05/0.1157, allocations: 19.95 kB / 491.9 MB, free: 9.836 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 7.559e-05/0.1158, allocations: 49.62 kB / 491.9 MB, free: 9.781 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002043/0.116, allocations: 87.84 kB / 492 MB, free: 9.695 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.544e-06/0.116, allocations: 4 kB / 492 MB, free: 9.691 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.116, allocations: 3.938 kB / 492 MB, free: 9.688 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.698e-06/0.116, allocations: 0 / 492 MB, free: 9.688 MB / 378.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.0004573/0.1165, allocations: 384.8 kB / 492.4 MB, free: 9.258 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.577e-05/0.1165, allocations: 12.03 kB / 492.4 MB, free: 9.246 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.416e-05/0.1166, allocations: 4.844 kB / 492.4 MB, free: 9.242 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002019/0.1168, allocations: 180.4 kB / 492.6 MB, free: 9.027 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.366e-05/0.1168, allocations: 8.359 kB / 492.6 MB, free: 9.02 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.194e-05/0.1168, allocations: 384 / 492.6 MB, free: 9.02 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001791/0.117, allocations: 90.2 kB / 492.7 MB, free: 8.926 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.767e-06/0.117, allocations: 192 / 492.7 MB, free: 8.926 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.441e-05/0.117, allocations: 11.94 kB / 492.7 MB, free: 8.914 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.1171, allocations: 0 / 492.7 MB, free: 8.914 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.888e-05/0.1171, allocations: 27.91 kB / 492.7 MB, free: 8.887 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001935/0.1173, allocations: 169.9 kB / 492.9 MB, free: 8.672 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.503e-05/0.1174, allocations: 42.56 kB / 492.9 MB, free: 8.621 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.9e-05/0.1175, allocations: 24.91 kB / 493 MB, free: 8.594 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.691e-05/0.1175, allocations: 7.938 kB / 493 MB, free: 8.586 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002573/0.1178, allocations: 131.2 kB / 493.1 MB, free: 8.445 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 1.473e-06/0.1178, allocations: 0 / 493.1 MB, free: 8.445 MB / 378.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002849/0.1181, allocations: 129.4 kB / 493.2 MB, free: 8.312 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.066e-05/0.1181, allocations: 63.56 kB / 493.3 MB, free: 8.238 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.555e-05/0.1182, allocations: 97.84 kB / 493.4 MB, free: 8.133 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.453e-05/0.1182, allocations: 29.7 kB / 493.4 MB, free: 8.098 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.209e-05/0.1183, allocations: 88.12 kB / 493.5 MB, free: 8.008 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.671e-05/0.1183, allocations: 23.7 kB / 493.5 MB, free: 7.984 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.436e-06/0.1184, allocations: 4 kB / 493.5 MB, free: 7.98 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.1185, allocations: 310.8 kB / 493.8 MB, free: 7.668 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.324e-05/0.1185, allocations: 23.98 kB / 493.9 MB, free: 7.645 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.73e-05/0.1186, allocations: 82.64 kB / 493.9 MB, free: 7.543 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001906/0.1188, allocations: 144.4 kB / 494.1 MB, free: 7.371 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.1188, allocations: 0 / 494.1 MB, free: 7.371 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002177/0.1191, allocations: 163.1 kB / 494.2 MB, free: 7.199 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.738e-05/0.1191, allocations: 41.86 kB / 494.3 MB, free: 7.152 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.072e-06/0.1191, allocations: 0 / 494.3 MB, free: 7.152 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.525e-05/0.1191, allocations: 4 kB / 494.3 MB, free: 7.148 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001083/0.1193, allocations: 19.98 kB / 494.3 MB, free: 7.129 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.476e-06/0.1193, allocations: 7.938 kB / 494.3 MB, free: 7.121 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.065e-05/0.1193, allocations: 7.938 kB / 494.3 MB, free: 7.113 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.274e-05/0.1193, allocations: 4 kB / 494.3 MB, free: 7.109 MB / 378.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.0001471/0.1195, allocations: 129.8 kB / 494.4 MB, free: 6.973 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.421e-05/0.1195, allocations: 15.84 kB / 494.5 MB, free: 6.957 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.234e-05/0.1196, allocations: 7.969 kB / 494.5 MB, free: 6.949 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.1196, allocations: 4 kB / 494.5 MB, free: 6.945 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.1196, allocations: 0 / 494.5 MB, free: 6.945 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.1196, allocations: 192 / 494.5 MB, free: 6.945 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001483/0.1197, allocations: 169.6 kB / 494.6 MB, free: 6.73 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.1198, allocations: 0 / 494.6 MB, free: 6.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.661e-05/0.1198, allocations: 7.984 kB / 494.6 MB, free: 6.723 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.628e-06/0.1198, allocations: 3.938 kB / 494.6 MB, free: 6.719 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.41e-05/0.1198, allocations: 7.984 kB / 494.7 MB, free: 6.711 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.1198, allocations: 4 kB / 494.7 MB, free: 6.707 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.1198, allocations: 4.062 kB / 494.7 MB, free: 6.703 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002072/0.1201, allocations: 141.1 kB / 494.8 MB, free: 6.547 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.366e-05/0.1201, allocations: 85.05 kB / 494.9 MB, free: 6.445 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.222e-05/0.1201, allocations: 4 kB / 494.9 MB, free: 6.441 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001989/0.1204, allocations: 23.97 kB / 494.9 MB, free: 6.418 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.183e-05/0.1204, allocations: 11.98 kB / 494.9 MB, free: 6.406 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.687e-05/0.1204, allocations: 4 kB / 494.9 MB, free: 6.402 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.54e-05/0.1205, allocations: 75.28 kB / 495 MB, free: 6.328 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1205, allocations: 4 kB / 495 MB, free: 6.324 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003092/0.1208, allocations: 43.92 kB / 495 MB, free: 6.281 MB / 378.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 (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0004201/0.1212, allocations: 193.6 kB / 495.2 MB, free: 6.094 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001905/0.1214, allocations: 131.2 kB / 495.4 MB, free: 5.953 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1214, allocations: 0 / 495.4 MB, free: 5.953 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 5.781e-05/0.1215, allocations: 27.98 kB / 495.4 MB, free: 5.926 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00015/0.1216, allocations: 8 kB / 495.4 MB, free: 5.918 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003476/0.122, allocations: 180.7 kB / 495.6 MB, free: 5.711 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002206/0.1222, allocations: 0.6809 MB / 496.3 MB, free: 5.004 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.524e-05/0.1223, allocations: 15.38 kB / 496.3 MB, free: 4.992 MB / 378.7 MB Notification: Performance of SimCode: time 2.8e-07/0.1223, allocations: 0 / 496.3 MB, free: 4.992 MB / 378.7 MB Notification: Performance of Templates: time 0.003417/0.1257, allocations: 1.794 MB / 498.1 MB, free: 3.203 MB / 378.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/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_cpp_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,y,cnt[1],cnt[2],cnt[3],avg,lowBound,highBound,samples Variables in the result:avg,cnt[1],cnt[2],cnt[3],highBound,lowBound,samples,time,y