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.001893/0.001893, allocations: 170.4 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.547/1.547, allocations: 221.5 MB / 230.7 MB, free: 7.578 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009848/0.0009849, allocations: 93.97 kB / 281.6 MB, free: 5.324 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.215/0.215, allocations: 44.16 MB / 376.5 MB, free: 3.039 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.629e-05/2.632e-05, allocations: 8.156 kB / 444.7 MB, free: 15.13 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1444/0.1445, allocations: 61.91 MB / 0.4948 GB, free: 1.152 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3849/0.5294, allocations: 85.17 MB / 0.5779 GB, free: 11.18 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001899/0.5296, allocations: 59.97 kB / 0.578 GB, free: 11.12 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01024/0.5399, allocations: 3.324 MB / 0.5812 GB, free: 7.816 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.54, allocations: 0 / 0.5812 GB, free: 7.816 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.269e-05/0.54, allocations: 0 / 0.5812 GB, free: 7.816 MB / 394.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.0004375/0.5404, allocations: 394.7 kB / 0.5816 GB, free: 7.383 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.979e-05/0.5405, allocations: 11.98 kB / 0.5816 GB, free: 7.371 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.471e-05/0.5405, allocations: 15.78 kB / 0.5816 GB, free: 7.355 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000276/0.5408, allocations: 183 kB / 0.5818 GB, free: 7.137 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.584e-05/0.5409, allocations: 3.984 kB / 0.5818 GB, free: 7.133 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.013e-05/0.5409, allocations: 7.953 kB / 0.5818 GB, free: 7.125 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.744e-05/0.541, allocations: 19.98 kB / 0.5819 GB, free: 7.105 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001505/0.5411, allocations: 81.64 kB / 0.5819 GB, free: 7.02 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.5411, allocations: 0 / 0.5819 GB, free: 7.02 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.934e-05/0.5412, allocations: 4 kB / 0.5819 GB, free: 7.016 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.049e-06/0.5412, allocations: 0 / 0.5819 GB, free: 7.016 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001579/0.5413, allocations: 142.2 kB / 0.5821 GB, free: 6.84 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.387e-05/0.5414, allocations: 55.44 kB / 0.5821 GB, free: 6.777 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.904e-05/0.5415, allocations: 20.86 kB / 0.5821 GB, free: 6.754 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.401e-05/0.5415, allocations: 0 / 0.5821 GB, free: 6.754 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001927/0.5417, allocations: 132 kB / 0.5823 GB, free: 6.613 MB / 394.7 MB Notification: Performance of pre-optimization done (n=10): time 1.533e-06/0.5417, allocations: 0 / 0.5823 GB, free: 6.613 MB / 394.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002755/0.542, allocations: 105.5 kB / 0.5824 GB, free: 6.504 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.102e-05/0.542, allocations: 55.41 kB / 0.5824 GB, free: 6.438 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.588e-05/0.5421, allocations: 96.94 kB / 0.5825 GB, free: 6.336 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.644e-05/0.5421, allocations: 33.69 kB / 0.5825 GB, free: 6.297 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.761e-05/0.5422, allocations: 80.33 kB / 0.5826 GB, free: 6.211 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.27e-05/0.5422, allocations: 27.66 kB / 0.5826 GB, free: 6.184 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.671e-06/0.5422, allocations: 0 / 0.5826 GB, free: 6.184 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001084/0.5423, allocations: 318.8 kB / 0.583 GB, free: 5.863 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.719e-05/0.5424, allocations: 16 kB / 0.583 GB, free: 5.848 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.235e-05/0.5425, allocations: 74.86 kB / 0.583 GB, free: 5.75 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.245e-05/0.5426, allocations: 27.97 kB / 0.5831 GB, free: 5.723 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.5426, allocations: 4 kB / 0.5831 GB, free: 5.719 MB / 394.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001933/0.5428, allocations: 129.4 kB / 0.5832 GB, free: 5.586 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.679e-05/0.5428, allocations: 29.7 kB / 0.5832 GB, free: 5.551 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/0.5429, allocations: 4 kB / 0.5832 GB, free: 5.547 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.559e-05/0.5429, allocations: 7.953 kB / 0.5832 GB, free: 5.539 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.482e-05/0.543, allocations: 16.17 kB / 0.5832 GB, free: 5.523 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.899e-06/0.543, allocations: 0 / 0.5832 GB, free: 5.523 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.456e-05/0.543, allocations: 4 kB / 0.5833 GB, free: 5.52 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.601e-05/0.5431, allocations: 12 kB / 0.5833 GB, free: 5.508 MB / 394.7 MB Warning: Assuming fixed start value for the following 1 variables: y:DISCRETE(fixed = false ) 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 () * 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.0001231/0.5432, allocations: 131.5 kB / 0.5834 GB, free: 5.375 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001782/0.5434, allocations: 109.5 kB / 0.5835 GB, free: 5.262 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.108e-05/0.5434, allocations: 7.953 kB / 0.5835 GB, free: 5.254 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.657e-05/0.5434, allocations: 8.406 kB / 0.5835 GB, free: 5.246 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.5435, allocations: 4 kB / 0.5835 GB, free: 5.242 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.5435, allocations: 0 / 0.5835 GB, free: 5.242 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.768e-06/0.5435, allocations: 0 / 0.5835 GB, free: 5.242 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001219/0.5436, allocations: 154.2 kB / 0.5837 GB, free: 5.055 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.5436, allocations: 4 kB / 0.5837 GB, free: 5.051 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.486e-05/0.5437, allocations: 4 kB / 0.5837 GB, free: 5.047 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.5437, allocations: 0 / 0.5837 GB, free: 5.047 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.225e-05/0.5437, allocations: 7.984 kB / 0.5837 GB, free: 5.039 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.5437, allocations: 3.953 kB / 0.5837 GB, free: 5.035 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.5437, allocations: 0 / 0.5837 GB, free: 5.035 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001963/0.5439, allocations: 133.2 kB / 0.5838 GB, free: 4.887 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.242e-05/0.5439, allocations: 81.02 kB / 0.5839 GB, free: 4.789 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.648e-05/0.544, allocations: 7.984 kB / 0.5839 GB, free: 4.781 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001616/0.5441, allocations: 23.98 kB / 0.5839 GB, free: 4.758 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.503e-05/0.5442, allocations: 11.94 kB / 0.5839 GB, free: 4.746 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.209e-05/0.5442, allocations: 4 kB / 0.5839 GB, free: 4.742 MB / 394.7 MB Notification: Performance of sorting global known variables: time 3.524e-05/0.5442, allocations: 87.27 kB / 0.584 GB, free: 4.656 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5442, allocations: 0 / 0.584 GB, free: 4.656 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003021/0.5445, allocations: 51.94 kB / 0.5841 GB, free: 4.605 MB / 394.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) * 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.000771/0.5453, allocations: 0.7634 MB / 0.5848 GB, free: 3.828 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001716/0.5455, allocations: 111.3 kB / 0.5849 GB, free: 3.707 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.5455, allocations: 0 / 0.5849 GB, free: 3.707 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 4.964e-05/0.5456, allocations: 35.88 kB / 0.5849 GB, free: 3.672 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001095/0.5457, allocations: 11.94 kB / 0.585 GB, free: 3.66 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004536/0.5462, allocations: 145.3 kB / 0.5851 GB, free: 3.48 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002077/0.5464, allocations: 0.685 MB / 0.5858 GB, free: 2.77 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 5.173e-05/0.5464, allocations: 24.58 kB / 0.5858 GB, free: 2.746 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.371e-05/0.5465, allocations: 19.44 kB / 0.5858 GB, free: 2.727 MB / 394.7 MB Notification: Performance of SimCode: time 2.71e-07/0.5465, allocations: 0 / 0.5858 GB, free: 2.727 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01963/0.5661, allocations: 2.568 MB / 0.5883 GB, free: 168 kB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001744/0.5663, allocations: 160 kB / 0.5885 GB, free: 15.98 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.569/2.135, allocations: 0 / 0.5885 GB, free: 15.98 MB / 410.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