Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008043/0.0008043, allocations: 97.69 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007443/0.0007442, allocations: 188.3 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.371/1.371, allocations: 223.3 MB / 241.9 MB, free: 14.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2642/0.2642, allocations: 44.21 MB / 337.2 MB, free: 2.559 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003612/0.0003612, allocations: 8 kB / 409.7 MB, free: 27.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1192, allocations: 61.92 MB / 471.6 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.0006114/0.1198, allocations: 262.8 kB / 471.9 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007839/0.1206, allocations: 408.8 kB / 472.3 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.903e-05/0.1207, allocations: 0 / 472.3 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.116e-05/0.1207, allocations: 0 / 472.3 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001185/0.1209, allocations: 11.98 kB / 472.3 MB, free: 12.94 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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.0004838/0.1214, allocations: 151.4 kB / 472.5 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001191/0.1215, allocations: 63.84 kB / 472.5 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.513e-05/0.1215, allocations: 4 kB / 472.5 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.909e-05/0.1216, allocations: 43.89 kB / 472.6 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.282e-05/0.1217, allocations: 7.984 kB / 472.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.257e-05/0.1217, allocations: 7.938 kB / 472.6 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001617/0.1219, allocations: 91.84 kB / 472.7 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.997e-05/0.1219, allocations: 23.95 kB / 472.7 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.143e-05/0.122, allocations: 37.64 kB / 472.7 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001363/0.1221, allocations: 87.8 kB / 472.8 MB, free: 12.43 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1221, allocations: 0 / 472.8 MB, free: 12.43 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.1221, allocations: 0 / 472.8 MB, free: 12.43 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.138e-06/0.1221, allocations: 0 / 472.8 MB, free: 12.43 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.0004929/0.1226, allocations: 377 kB / 473.2 MB, free: 12.01 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.555e-05/0.1227, allocations: 8.031 kB / 473.2 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.211e-05/0.1227, allocations: 42.55 kB / 473.2 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.916e-05/0.1228, allocations: 7.938 kB / 473.2 MB, free: 11.94 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002134/0.123, allocations: 175.3 kB / 473.4 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.007e-05/0.123, allocations: 4 kB / 473.4 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.71e-05/0.1231, allocations: 11.95 kB / 473.4 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002029/0.1233, allocations: 89.56 kB / 473.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.125e-06/0.1233, allocations: 4 kB / 473.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.818e-05/0.1233, allocations: 0 / 473.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.1233, allocations: 0 / 473.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.843e-05/0.1234, allocations: 23.97 kB / 473.5 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002068/0.1236, allocations: 177.5 kB / 473.7 MB, free: 11.37 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.738e-05/0.1237, allocations: 46.55 kB / 473.8 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.71e-05/0.1238, allocations: 28.91 kB / 473.8 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.717e-05/0.1238, allocations: 0 / 473.8 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002803/0.1241, allocations: 127.2 kB / 473.9 MB, free: 11.15 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.332e-06/0.1241, allocations: 4 kB / 473.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003092/0.1244, allocations: 125.6 kB / 474 MB, free: 11.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.298e-05/0.1245, allocations: 55.41 kB / 474.1 MB, free: 10.95 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.037e-05/0.1245, allocations: 97.86 kB / 474.2 MB, free: 10.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.959e-05/0.1246, allocations: 33.69 kB / 474.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.629e-05/0.1246, allocations: 84.33 kB / 474.3 MB, free: 10.71 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.688e-05/0.1247, allocations: 28.08 kB / 474.3 MB, free: 10.69 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.36e-06/0.1247, allocations: 0 / 474.3 MB, free: 10.69 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.1248, allocations: 326.8 kB / 474.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.395e-05/0.1249, allocations: 23.92 kB / 474.7 MB, free: 10.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.728e-05/0.125, allocations: 77.73 kB / 474.8 MB, free: 10.24 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.199e-05/0.1251, allocations: 61.7 kB / 474.8 MB, free: 10.17 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.1251, allocations: 0 / 474.8 MB, free: 10.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002264/0.1253, allocations: 167.1 kB / 475 MB, free: 9.996 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.565e-05/0.1254, allocations: 33.66 kB / 475 MB, free: 9.957 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.1254, allocations: 4 kB / 475 MB, free: 9.953 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.512e-05/0.1254, allocations: 224 / 475 MB, free: 9.953 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001245/0.1255, allocations: 23.98 kB / 475 MB, free: 9.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.063e-05/0.1255, allocations: 3.938 kB / 475 MB, free: 9.926 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.356e-05/0.1256, allocations: 11.97 kB / 475.1 MB, free: 9.914 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.581e-05/0.1256, allocations: 8 kB / 475.1 MB, free: 9.906 MB / 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,$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.0001621/0.1258, allocations: 126.3 kB / 475.2 MB, free: 9.773 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.055e-05/0.1258, allocations: 4 kB / 475.2 MB, free: 9.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.614e-05/0.1259, allocations: 15.92 kB / 475.2 MB, free: 9.754 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.1259, allocations: 4 kB / 475.2 MB, free: 9.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.1259, allocations: 0 / 475.2 MB, free: 9.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.1259, allocations: 0 / 475.2 MB, free: 9.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001717/0.1261, allocations: 177.5 kB / 475.4 MB, free: 9.527 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.1261, allocations: 4 kB / 475.4 MB, free: 9.523 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.682e-05/0.1261, allocations: 7.938 kB / 475.4 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.1261, allocations: 0 / 475.4 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.413e-05/0.1262, allocations: 3.984 kB / 475.4 MB, free: 9.512 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.1262, allocations: 3.953 kB / 475.4 MB, free: 9.508 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.1262, allocations: 0 / 475.4 MB, free: 9.508 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002043/0.1264, allocations: 129.1 kB / 475.5 MB, free: 9.363 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.662e-05/0.1264, allocations: 81.02 kB / 475.6 MB, free: 9.266 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.456e-05/0.1265, allocations: 4 kB / 475.6 MB, free: 9.262 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002153/0.1267, allocations: 31.91 kB / 475.6 MB, free: 9.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.465e-05/0.1267, allocations: 3.953 kB / 475.6 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.772e-05/0.1268, allocations: 11.98 kB / 475.7 MB, free: 9.215 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.402e-05/0.1268, allocations: 83.28 kB / 475.7 MB, free: 9.133 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1268, allocations: 0 / 475.7 MB, free: 9.133 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003141/0.1271, allocations: 43.98 kB / 475.8 MB, free: 9.09 MB / 350.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 (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.0007212/0.1279, allocations: 0.7451 MB / 476.5 MB, free: 8.332 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001872/0.1281, allocations: 127.3 kB / 476.7 MB, free: 8.195 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.1281, allocations: 0 / 476.7 MB, free: 8.195 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.411e-05/0.1281, allocations: 31.92 kB / 476.7 MB, free: 8.164 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000159/0.1283, allocations: 12.33 kB / 476.7 MB, free: 8.152 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008154/0.1291, allocations: 0.5195 MB / 477.2 MB, free: 7.562 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003067/0.1295, allocations: 0.6887 MB / 477.9 MB, free: 6.848 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.995e-05/0.1295, allocations: 12.66 kB / 477.9 MB, free: 6.832 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.243e-05/0.1296, allocations: 23.42 kB / 477.9 MB, free: 6.809 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1296, allocations: 0 / 477.9 MB, free: 6.809 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01428/0.1439, allocations: 2.636 MB / 480.6 MB, free: 4.297 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001832/0.1441, allocations: 222.8 kB / 480.8 MB, free: 4.055 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.99/2.134, allocations: 0 / 480.8 MB, free: 4.055 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestRandomIntegers_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestRandomIntegers.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers_res.mat does not exist to compare? outputFormat=mat