Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 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 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 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_3_2_3_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_3_2_3_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.0008518/0.0008515, allocations: 96.55 kB / 15.7 MB, free: 468 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001023/0.001023, allocations: 174.2 kB / 16.58 MB, free: 5.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.434/1.434, allocations: 205.4 MB / 222.7 MB, free: 5.582 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3348/0.3348, allocations: 43.54 MB / 314.6 MB, free: 9.059 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005215/0.0005216, allocations: 12 kB / 384 MB, free: 8.156 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1114, allocations: 58.86 MB / 442.9 MB, free: 13.2 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.0006578/0.1121, allocations: 268.3 kB / 443.1 MB, free: 12.93 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008143/0.1129, allocations: 427.2 kB / 443.6 MB, free: 12.52 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.356e-05/0.113, allocations: 0 / 443.6 MB, free: 12.52 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 7.099e-05/0.1131, allocations: 3.938 kB / 443.6 MB, free: 12.51 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001299/0.1132, allocations: 0 / 443.6 MB, free: 12.51 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005219/0.1137, allocations: 143.7 kB / 443.7 MB, free: 12.37 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001197/0.1139, allocations: 67.84 kB / 443.8 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.463e-05/0.1139, allocations: 8 kB / 443.8 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.884e-05/0.114, allocations: 35.97 kB / 443.8 MB, free: 12.26 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.969e-05/0.114, allocations: 23.89 kB / 443.8 MB, free: 12.24 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.086e-05/0.1141, allocations: 4 kB / 443.8 MB, free: 12.23 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001544/0.1142, allocations: 87.84 kB / 443.9 MB, free: 12.15 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.695e-05/0.1143, allocations: 19.97 kB / 443.9 MB, free: 12.13 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.515e-05/0.1143, allocations: 25.7 kB / 444 MB, free: 12.1 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001606/0.1145, allocations: 83.86 kB / 444 MB, free: 12.02 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.1145, allocations: 4 kB / 444.1 MB, free: 12.01 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.045e-06/0.1145, allocations: 0 / 444.1 MB, free: 12.01 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.707e-06/0.1145, allocations: 7.938 kB / 444.1 MB, free: 12 MB / 382.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.0004443/0.115, allocations: 381 kB / 444.4 MB, free: 11.58 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.873e-05/0.115, allocations: 8.031 kB / 444.4 MB, free: 11.57 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.387e-05/0.1151, allocations: 38.56 kB / 444.5 MB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.569e-05/0.1151, allocations: 11.84 kB / 444.5 MB, free: 11.51 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001786/0.1153, allocations: 179.3 kB / 444.7 MB, free: 11.3 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.258e-05/0.1153, allocations: 8 kB / 444.7 MB, free: 11.29 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.451e-05/0.1154, allocations: 0 / 444.7 MB, free: 11.29 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001855/0.1155, allocations: 93.56 kB / 444.8 MB, free: 11.19 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.1156, allocations: 4 kB / 444.8 MB, free: 11.19 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.764e-05/0.1156, allocations: 4 kB / 444.8 MB, free: 11.18 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-06/0.1156, allocations: 3.984 kB / 444.8 MB, free: 11.18 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.999e-05/0.1157, allocations: 23.92 kB / 444.8 MB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001873/0.1159, allocations: 169.6 kB / 445 MB, free: 10.94 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.938e-05/0.116, allocations: 42.56 kB / 445 MB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.365e-05/0.116, allocations: 24.91 kB / 445 MB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.502e-05/0.116, allocations: 0 / 445 MB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002522/0.1163, allocations: 135.2 kB / 445.2 MB, free: 10.72 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.212e-06/0.1163, allocations: 0 / 445.2 MB, free: 10.72 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003014/0.1166, allocations: 129.6 kB / 445.3 MB, free: 10.59 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.657e-05/0.1167, allocations: 55.41 kB / 445.3 MB, free: 10.52 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.295e-05/0.1167, allocations: 105.8 kB / 445.4 MB, free: 10.41 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.378e-05/0.1168, allocations: 25.7 kB / 445.5 MB, free: 10.38 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.872e-05/0.1168, allocations: 88.33 kB / 445.6 MB, free: 10.28 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.926e-05/0.1169, allocations: 23.7 kB / 445.6 MB, free: 10.26 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.811e-06/0.1169, allocations: 0 / 445.6 MB, free: 10.26 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.117, allocations: 318.8 kB / 445.9 MB, free: 9.938 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.374e-05/0.117, allocations: 19.98 kB / 445.9 MB, free: 9.918 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.708e-05/0.1171, allocations: 82.84 kB / 446 MB, free: 9.812 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.411e-05/0.1172, allocations: 65.62 kB / 446.1 MB, free: 9.742 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.1172, allocations: 3.938 kB / 446.1 MB, free: 9.738 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002113/0.1174, allocations: 159.1 kB / 446.2 MB, free: 9.57 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.232e-05/0.1175, allocations: 33.7 kB / 446.2 MB, free: 9.531 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.1175, allocations: 0 / 446.2 MB, free: 9.531 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.799e-05/0.1175, allocations: 7.938 kB / 446.3 MB, free: 9.523 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001016/0.1176, allocations: 15.98 kB / 446.3 MB, free: 9.508 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.686e-06/0.1176, allocations: 4 kB / 446.3 MB, free: 9.504 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.051e-05/0.1177, allocations: 11.94 kB / 446.3 MB, free: 9.492 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.192e-05/0.1177, allocations: 8.219 kB / 446.3 MB, free: 9.484 MB / 382.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.0001502/0.1179, allocations: 137.5 kB / 446.4 MB, free: 9.344 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.995e-05/0.1179, allocations: 7.906 kB / 446.4 MB, free: 9.336 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.305e-05/0.1179, allocations: 11.95 kB / 446.4 MB, free: 9.324 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.118, allocations: 4 kB / 446.5 MB, free: 9.32 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.118, allocations: 0 / 446.5 MB, free: 9.32 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.118, allocations: 0 / 446.5 MB, free: 9.32 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001516/0.1181, allocations: 177.6 kB / 446.6 MB, free: 9.098 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.1181, allocations: 0 / 446.6 MB, free: 9.098 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.368e-05/0.1182, allocations: 7.984 kB / 446.6 MB, free: 9.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.1182, allocations: 4 kB / 446.6 MB, free: 9.086 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.858e-06/0.1182, allocations: 288 / 446.6 MB, free: 9.086 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.1182, allocations: 0 / 446.6 MB, free: 9.086 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.1182, allocations: 0 / 446.6 MB, free: 9.086 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001887/0.1184, allocations: 144.8 kB / 446.8 MB, free: 8.926 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.39e-05/0.1185, allocations: 81.11 kB / 446.9 MB, free: 8.828 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.394e-05/0.1185, allocations: 15.98 kB / 446.9 MB, free: 8.812 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000185/0.1187, allocations: 15.98 kB / 446.9 MB, free: 8.797 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.166e-05/0.1187, allocations: 8.172 kB / 446.9 MB, free: 8.789 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.484e-05/0.1188, allocations: 8 kB / 446.9 MB, free: 8.781 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.652e-05/0.1188, allocations: 87.25 kB / 447 MB, free: 8.695 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1188, allocations: 0 / 447 MB, free: 8.695 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003564/0.1192, allocations: 44 kB / 447 MB, free: 8.652 MB / 382.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.0007488/0.1199, allocations: 0.7485 MB / 447.8 MB, free: 7.887 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001942/0.1201, allocations: 127.2 kB / 447.9 MB, free: 7.75 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.1202, allocations: 0 / 447.9 MB, free: 7.75 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.101e-05/0.1202, allocations: 27.92 kB / 447.9 MB, free: 7.723 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001523/0.1204, allocations: 8 kB / 447.9 MB, free: 7.715 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000755/0.1211, allocations: 0.5216 MB / 448.5 MB, free: 7.129 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000225/0.1214, allocations: 0.6848 MB / 449.1 MB, free: 6.418 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.711e-05/0.1214, allocations: 20.58 kB / 449.2 MB, free: 6.395 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.027e-05/0.1215, allocations: 11.44 kB / 449.2 MB, free: 6.383 MB / 382.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1215, allocations: 0 / 449.2 MB, free: 6.383 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04438/0.1658, allocations: 2.641 MB / 451.8 MB, free: 3.762 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002186/0.1661, allocations: 222.3 kB / 452 MB, free: 3.52 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.881/2.047, allocations: 0 / 452 MB, free: 3.52 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestRandomIntegers_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestRandomIntegers.fmu > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers_res.mat does not exist to compare? outputFormat=mat