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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001044/0.001044, allocations: 180.4 kB / 17.06 MB, free: 5.074 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.398/1.398, allocations: 223.2 MB / 241 MB, free: 10.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009275/0.0009273, allocations: 90.27 kB / 292.1 MB, free: 10.74 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3264/0.3264, allocations: 44.21 MB / 387.5 MB, free: 38.58 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003042/0.0003045, allocations: 12 kB / 460 MB, free: 1.477 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3172/0.3175, allocations: 61.91 MB / 0.5096 GB, free: 37.85 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1114/0.429, allocations: 85.9 MB / 0.5935 GB, free: 9.25 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001689/0.4292, allocations: 63.94 kB / 0.5936 GB, free: 9.191 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01004/0.4393, allocations: 3.338 MB / 0.5969 GB, free: 5.848 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.4393, allocations: 0 / 0.5969 GB, free: 5.848 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.025e-05/0.4393, allocations: 0 / 0.5969 GB, free: 5.848 MB / 410.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.000418/0.4397, allocations: 400.8 kB / 0.5972 GB, free: 5.402 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/0.4398, allocations: 8.031 kB / 0.5972 GB, free: 5.395 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.605e-05/0.4399, allocations: 42.55 kB / 0.5973 GB, free: 5.344 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.385e-05/0.4399, allocations: 7.906 kB / 0.5973 GB, free: 5.336 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002408/0.4402, allocations: 179 kB / 0.5975 GB, free: 5.121 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.092e-05/0.4402, allocations: 8 kB / 0.5975 GB, free: 5.113 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.565e-05/0.4402, allocations: 7.953 kB / 0.5975 GB, free: 5.105 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001833/0.4404, allocations: 89.61 kB / 0.5976 GB, free: 5.012 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.4404, allocations: 0 / 0.5976 GB, free: 5.012 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.086e-05/0.4404, allocations: 4 kB / 0.5976 GB, free: 5.008 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.633e-06/0.4404, allocations: 7.922 kB / 0.5976 GB, free: 5 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.899e-05/0.4405, allocations: 19.98 kB / 0.5976 GB, free: 4.98 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001895/0.4407, allocations: 173.6 kB / 0.5978 GB, free: 4.762 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001004/0.4408, allocations: 58.5 kB / 0.5978 GB, free: 4.695 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.053e-05/0.4408, allocations: 3.984 kB / 0.5978 GB, free: 4.691 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002073/0.4411, allocations: 135.2 kB / 0.5979 GB, free: 4.547 MB / 410.7 MB Notification: Performance of pre-optimization done (n=10): time 1.353e-06/0.4411, allocations: 4 kB / 0.598 GB, free: 4.543 MB / 410.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002831/0.4414, allocations: 125.5 kB / 0.5981 GB, free: 4.414 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.693e-05/0.4414, allocations: 55.41 kB / 0.5981 GB, free: 4.348 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.042e-05/0.4415, allocations: 92.98 kB / 0.5982 GB, free: 4.25 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.641e-05/0.4415, allocations: 33.7 kB / 0.5982 GB, free: 4.211 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.478e-05/0.4416, allocations: 80.33 kB / 0.5983 GB, free: 4.125 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.932e-05/0.4416, allocations: 23.7 kB / 0.5983 GB, free: 4.102 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.893e-06/0.4416, allocations: 4 kB / 0.5983 GB, free: 4.098 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.4417, allocations: 322.8 kB / 0.5987 GB, free: 3.773 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.164e-05/0.4418, allocations: 19.98 kB / 0.5987 GB, free: 3.754 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.385e-05/0.4419, allocations: 72.95 kB / 0.5987 GB, free: 3.66 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001119/0.442, allocations: 69.62 kB / 0.5988 GB, free: 3.586 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.442, allocations: 3.938 kB / 0.5988 GB, free: 3.582 MB / 410.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002145/0.4422, allocations: 155.1 kB / 0.599 GB, free: 3.418 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.036e-05/0.4423, allocations: 37.66 kB / 0.599 GB, free: 3.375 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.4423, allocations: 4 kB / 0.599 GB, free: 3.371 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.187e-05/0.4423, allocations: 224 / 0.599 GB, free: 3.371 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.505e-05/0.4424, allocations: 27.92 kB / 0.599 GB, free: 3.344 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/0.4424, allocations: 0 / 0.599 GB, free: 3.344 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.838e-05/0.4425, allocations: 4 kB / 0.599 GB, free: 3.34 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.206e-05/0.4425, allocations: 8 kB / 0.599 GB, free: 3.332 MB / 410.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.0001545/0.4426, allocations: 134.2 kB / 0.5992 GB, free: 3.191 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.074e-05/0.4427, allocations: 7.906 kB / 0.5992 GB, free: 3.184 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.346e-05/0.4427, allocations: 11.98 kB / 0.5992 GB, free: 3.172 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-06/0.4427, allocations: 8 kB / 0.5992 GB, free: 3.164 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.4427, allocations: 0 / 0.5992 GB, free: 3.164 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.4427, allocations: 3.984 kB / 0.5992 GB, free: 3.16 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001511/0.4429, allocations: 174.2 kB / 0.5994 GB, free: 2.941 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.4429, allocations: 0 / 0.5994 GB, free: 2.941 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.807e-05/0.4429, allocations: 8 kB / 0.5994 GB, free: 2.934 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.443, allocations: 3.938 kB / 0.5994 GB, free: 2.93 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.187e-05/0.443, allocations: 7.938 kB / 0.5994 GB, free: 2.922 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.443, allocations: 3.953 kB / 0.5994 GB, free: 2.918 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.347e-06/0.443, allocations: 3.984 kB / 0.5994 GB, free: 2.914 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002063/0.4432, allocations: 140.9 kB / 0.5995 GB, free: 2.758 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.448e-05/0.4432, allocations: 77.11 kB / 0.5996 GB, free: 2.664 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.092e-05/0.4433, allocations: 4 kB / 0.5996 GB, free: 2.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001597/0.4434, allocations: 19.97 kB / 0.5996 GB, free: 2.641 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.086e-05/0.4435, allocations: 11.95 kB / 0.5996 GB, free: 2.629 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.337e-05/0.4435, allocations: 15.92 kB / 0.5996 GB, free: 2.613 MB / 410.7 MB Notification: Performance of sorting global known variables: time 4.772e-05/0.4435, allocations: 79.28 kB / 0.5997 GB, free: 2.535 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4436, allocations: 0 / 0.5997 GB, free: 2.535 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003005/0.4439, allocations: 59.92 kB / 0.5998 GB, free: 2.477 MB / 410.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.0007821/0.4446, allocations: 0.7685 MB / 0.6005 GB, free: 1.703 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001931/0.4449, allocations: 123.2 kB / 0.6007 GB, free: 1.57 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.4449, allocations: 0 / 0.6007 GB, free: 1.57 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 5.977e-05/0.4449, allocations: 31.98 kB / 0.6007 GB, free: 1.539 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000108/0.445, allocations: 17.78 kB / 0.6007 GB, free: 1.523 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001019/0.4461, allocations: 1.454 MB / 0.6021 GB, free: 15.99 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002641/0.4464, allocations: 0.6887 MB / 0.6028 GB, free: 15.27 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 4.991e-05/0.4464, allocations: 12.66 kB / 0.6028 GB, free: 15.26 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.579e-05/0.4464, allocations: 19.42 kB / 0.6028 GB, free: 15.24 MB / 426.7 MB Notification: Performance of SimCode: time 4.41e-07/0.4465, allocations: 0 / 0.6028 GB, free: 15.24 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0133/0.4598, allocations: 2.863 MB / 0.6056 GB, free: 12.5 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001822/0.46, allocations: 212.9 kB / 0.6058 GB, free: 12.26 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.566/2.026, allocations: 0 / 0.6058 GB, free: 12.26 MB / 426.7 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