Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Math.Random.TestRandomIntegers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001532/0.001532, allocations: 115.9 kB / 18.41 MB, free: 4.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001816/0.001816, allocations: 203.5 kB / 19.36 MB, free: 3.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 227.4 MB / 247.5 MB, free: 10.33 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2265/0.2265, allocations: 46.09 MB / 344.9 MB, free: 11.45 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001378/0.001378, allocations: 72.58 kB / 419 MB, free: 18.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.11, allocations: 62.45 MB / 481.5 MB, free: 4.492 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001801/0.1118, allocations: 0.5247 MB / 482 MB, free: 3.969 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008101/0.1126, allocations: 441.3 kB / 482.4 MB, free: 3.539 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.09e-05/0.1127, allocations: 0 / 482.4 MB, free: 3.539 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.297e-05/0.1128, allocations: 3.938 kB / 482.4 MB, free: 3.535 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001063/0.1129, allocations: 11.94 kB / 482.4 MB, free: 3.523 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function 'Modelica.Math.Random.Utilities.initializeImpureRandom' contains a call to impure function 'Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState'. Notification: Performance of NFTyping.typeClassSections: time 0.0005545/0.1134, allocations: 175.1 kB / 482.6 MB, free: 3.355 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001558/0.1136, allocations: 83.84 kB / 482.7 MB, free: 3.273 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.341e-05/0.1136, allocations: 0 / 482.7 MB, free: 3.273 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.456e-05/0.1137, allocations: 39.95 kB / 482.7 MB, free: 3.234 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.338e-05/0.1138, allocations: 19.86 kB / 482.7 MB, free: 3.215 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.169e-05/0.1138, allocations: 4 kB / 482.7 MB, free: 3.211 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001745/0.114, allocations: 95.91 kB / 482.8 MB, free: 3.117 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.186e-05/0.114, allocations: 23.95 kB / 482.9 MB, free: 3.094 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.013e-05/0.1141, allocations: 31.84 kB / 482.9 MB, free: 3.062 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002105/0.1143, allocations: 119.8 kB / 483 MB, free: 2.945 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.1143, allocations: 0 / 483 MB, free: 2.945 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.055e-06/0.1143, allocations: 0 / 483 MB, free: 2.945 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.91e-06/0.1143, allocations: 3.938 kB / 483 MB, free: 2.941 MB / 350.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.0005306/0.1149, allocations: 413.1 kB / 483.4 MB, free: 2.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.267e-05/0.1149, allocations: 8.031 kB / 483.4 MB, free: 2.473 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.446e-05/0.115, allocations: 4.938 kB / 483.4 MB, free: 2.469 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001628/0.1151, allocations: 180.4 kB / 483.6 MB, free: 2.254 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.942e-05/0.1152, allocations: 12.31 kB / 483.6 MB, free: 2.242 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.376e-05/0.1152, allocations: 384 / 483.6 MB, free: 2.242 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001798/0.1154, allocations: 90.19 kB / 483.7 MB, free: 2.148 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.192e-06/0.1154, allocations: 192 / 483.7 MB, free: 2.148 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.291e-05/0.1154, allocations: 11.94 kB / 483.7 MB, free: 2.137 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.1154, allocations: 0 / 483.7 MB, free: 2.137 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.294e-05/0.1155, allocations: 31.89 kB / 483.8 MB, free: 2.105 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001791/0.1157, allocations: 173.5 kB / 483.9 MB, free: 1.887 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.225e-05/0.1158, allocations: 46.56 kB / 484 MB, free: 1.832 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.632e-05/0.1158, allocations: 24.91 kB / 484 MB, free: 1.805 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.517e-05/0.1158, allocations: 0 / 484 MB, free: 1.805 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002354/0.1161, allocations: 139.2 kB / 484.1 MB, free: 1.656 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.342e-06/0.1161, allocations: 0 / 484.1 MB, free: 1.656 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002789/0.1164, allocations: 121.5 kB / 484.2 MB, free: 1.531 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.675e-05/0.1164, allocations: 59.39 kB / 484.3 MB, free: 1.461 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.415e-05/0.1165, allocations: 97.8 kB / 484.4 MB, free: 1.355 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.558e-05/0.1165, allocations: 33.7 kB / 484.4 MB, free: 1.316 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.12e-05/0.1166, allocations: 84.12 kB / 484.5 MB, free: 1.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.82e-05/0.1166, allocations: 23.86 kB / 484.5 MB, free: 1.207 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.657e-05/0.1166, allocations: 33.7 kB / 484.6 MB, free: 1.168 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001021/0.1168, allocations: 322.8 kB / 484.9 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.998e-05/0.1168, allocations: 19.98 kB / 484.9 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.065e-05/0.1169, allocations: 74.86 kB / 485 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001746/0.1171, allocations: 144.4 kB / 485.1 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.1171, allocations: 0 / 485.1 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002058/0.1173, allocations: 167.1 kB / 485.3 MB, free: 388 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.637e-05/0.1173, allocations: 33.64 kB / 485.3 MB, free: 348 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.1174, allocations: 4 kB / 485.3 MB, free: 344 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.255e-05/0.1174, allocations: 4 kB / 485.3 MB, free: 340 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001136/0.1175, allocations: 15.98 kB / 485.3 MB, free: 324 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.815e-06/0.1175, allocations: 3.938 kB / 485.3 MB, free: 320 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.005e-05/0.1176, allocations: 12.19 kB / 485.4 MB, free: 308 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.51e-05/0.1176, allocations: 8.219 kB / 485.4 MB, free: 300 kB / 350.1 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,cnt[3],$PRE.cnt[3],cnt[2],$PRE.cnt[2],cnt[1],$PRE.cnt[1],$PRE.y,y,$whenCondition2,$whenCondition1,samples,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001275/0.1177, allocations: 133.7 kB / 485.5 MB, free: 156 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.644e-05/0.1178, allocations: 11.88 kB / 485.5 MB, free: 144 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.014e-05/0.1178, allocations: 7.969 kB / 485.5 MB, free: 136 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.1178, allocations: 3.984 kB / 485.5 MB, free: 132 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.1179, allocations: 4.062 kB / 485.5 MB, free: 128 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.756e-06/0.1179, allocations: 0 / 485.5 MB, free: 128 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000147/0.118, allocations: 177.5 kB / 485.7 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.118, allocations: 4 kB / 485.7 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.676e-05/0.1181, allocations: 7.984 kB / 485.7 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.1181, allocations: 3.938 kB / 485.7 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.087e-06/0.1181, allocations: 0 / 485.7 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.1181, allocations: 4 kB / 485.7 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.1181, allocations: 0 / 485.7 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001831/0.1183, allocations: 125 kB / 485.8 MB, free: 15.74 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.229e-05/0.1183, allocations: 92.95 kB / 485.9 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.862e-05/0.1184, allocations: 7.984 kB / 485.9 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001928/0.1186, allocations: 15.98 kB / 486 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.525e-05/0.1186, allocations: 4.172 kB / 486 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.584e-05/0.1186, allocations: 8 kB / 486 MB, free: 15.6 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.648e-05/0.1187, allocations: 87.25 kB / 486 MB, free: 15.51 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1187, allocations: 0 / 486 MB, free: 15.51 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002705/0.1189, allocations: 40 kB / 486.1 MB, free: 15.47 MB / 366.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) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003499/0.1193, allocations: 176 kB / 486.3 MB, free: 15.31 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001999/0.1195, allocations: 127.2 kB / 486.4 MB, free: 15.17 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.1195, allocations: 4 kB / 486.4 MB, free: 15.17 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.615e-05/0.1196, allocations: 28.41 kB / 486.4 MB, free: 15.14 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001558/0.1197, allocations: 15.98 kB / 486.4 MB, free: 15.12 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003482/0.1201, allocations: 136.9 kB / 486.6 MB, free: 14.96 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002324/0.1203, allocations: 0.6807 MB / 487.2 MB, free: 14.26 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.041e-05/0.1204, allocations: 16.59 kB / 487.3 MB, free: 14.24 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.38e-05/0.1204, allocations: 15.42 kB / 487.3 MB, free: 14.22 MB / 366.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1204, allocations: 7.938 kB / 487.3 MB, free: 14.21 MB / 366.1 MB Notification: Performance of Templates: time 0.004588/0.125, allocations: 1.986 MB / 489.3 MB, free: 12.23 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches