Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomIntegers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002322/0.002321, allocations: 181.6 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.228/2.228, allocations: 205.2 MB / 219.4 MB, free: 14.28 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001163/0.001163, allocations: 94.62 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2884/0.2884, allocations: 43.48 MB / 359.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.727e-05/3.744e-05, allocations: 4 kB / 425.4 MB, free: 23.29 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1218/0.1219, allocations: 58.86 MB / 484.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4806/0.6025, allocations: 84.71 MB / 0.5556 GB, free: 2.422 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002134/0.6028, allocations: 58.84 kB / 0.5557 GB, free: 2.391 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01545/0.6183, allocations: 3.318 MB / 0.5589 GB, free: 15.58 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.6183, allocations: 0 / 0.5589 GB, free: 15.58 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.126e-05/0.6183, allocations: 0 / 0.5589 GB, free: 15.58 MB / 378.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.0005377/0.6189, allocations: 395.9 kB / 0.5593 GB, free: 15.15 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.04e-05/0.619, allocations: 12.03 kB / 0.5593 GB, free: 15.14 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.987e-05/0.619, allocations: 34.06 kB / 0.5593 GB, free: 15.1 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.77e-05/0.6191, allocations: 8.531 kB / 0.5593 GB, free: 15.09 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003066/0.6194, allocations: 186.9 kB / 0.5595 GB, free: 14.87 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.636e-05/0.6194, allocations: 7.375 kB / 0.5595 GB, free: 14.86 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.569e-05/0.6195, allocations: 4 kB / 0.5595 GB, free: 14.86 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002667/0.6198, allocations: 87.14 kB / 0.5596 GB, free: 14.78 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.6198, allocations: 8 kB / 0.5596 GB, free: 14.77 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.559e-05/0.6198, allocations: 0 / 0.5596 GB, free: 14.77 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.6198, allocations: 0 / 0.5596 GB, free: 14.77 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.061e-05/0.6199, allocations: 22.05 kB / 0.5596 GB, free: 14.76 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002521/0.6202, allocations: 172.2 kB / 0.5598 GB, free: 14.55 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001467/0.6204, allocations: 54.38 kB / 0.5599 GB, free: 14.49 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.801e-05/0.6204, allocations: 18.86 kB / 0.5599 GB, free: 14.48 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.052e-05/0.6205, allocations: 4.234 kB / 0.5599 GB, free: 14.47 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003433/0.6208, allocations: 135.8 kB / 0.56 GB, free: 14.35 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 2.374e-06/0.6208, allocations: 0 / 0.56 GB, free: 14.35 MB / 378.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003531/0.6212, allocations: 100.7 kB / 0.5601 GB, free: 14.25 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.986e-05/0.6213, allocations: 63.39 kB / 0.5602 GB, free: 14.18 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.789e-05/0.6214, allocations: 92.5 kB / 0.5603 GB, free: 14.09 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.993e-05/0.6214, allocations: 27.77 kB / 0.5603 GB, free: 14.05 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.835e-05/0.6215, allocations: 154.8 kB / 0.5604 GB, free: 13.9 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.178e-05/0.6216, allocations: 29.7 kB / 0.5605 GB, free: 13.88 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.456e-06/0.6216, allocations: 0 / 0.5605 GB, free: 13.88 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001372/0.6217, allocations: 317.9 kB / 0.5608 GB, free: 13.56 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.622e-05/0.6218, allocations: 26.11 kB / 0.5608 GB, free: 13.54 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001216/0.622, allocations: 80.8 kB / 0.5609 GB, free: 13.45 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001363/0.6221, allocations: 59.78 kB / 0.5609 GB, free: 13.39 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.6221, allocations: 3.938 kB / 0.5609 GB, free: 13.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003511/0.6225, allocations: 156.8 kB / 0.5611 GB, free: 13.23 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.695e-05/0.6226, allocations: 33.69 kB / 0.5611 GB, free: 13.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.039e-05/0.6226, allocations: 4 kB / 0.5611 GB, free: 13.19 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.878e-05/0.6226, allocations: 0 / 0.5611 GB, free: 13.19 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001692/0.6228, allocations: 14.81 kB / 0.5611 GB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.277e-05/0.6228, allocations: 8.156 kB / 0.5611 GB, free: 13.17 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.93e-05/0.6229, allocations: 15.36 kB / 0.5611 GB, free: 13.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.772e-05/0.6229, allocations: 4 kB / 0.5612 GB, free: 13.16 MB / 378.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.0002008/0.6232, allocations: 123.4 kB / 0.5613 GB, free: 13.04 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.009e-05/0.6232, allocations: 8.094 kB / 0.5613 GB, free: 13.03 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.733e-05/0.6233, allocations: 15.75 kB / 0.5613 GB, free: 13.01 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.527e-06/0.6233, allocations: 4 kB / 0.5613 GB, free: 13.01 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.503e-06/0.6233, allocations: 0 / 0.5613 GB, free: 13.01 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.6234, allocations: 4 kB / 0.5613 GB, free: 13 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002224/0.6236, allocations: 180.6 kB / 0.5615 GB, free: 12.79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.6236, allocations: 0 / 0.5615 GB, free: 12.79 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.186e-05/0.6237, allocations: 16 kB / 0.5615 GB, free: 12.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.409e-06/0.6237, allocations: 0 / 0.5615 GB, free: 12.77 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.72e-05/0.6237, allocations: 3.984 kB / 0.5615 GB, free: 12.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.6237, allocations: 0 / 0.5615 GB, free: 12.77 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.6238, allocations: 0 / 0.5615 GB, free: 12.77 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003323/0.6241, allocations: 135 kB / 0.5616 GB, free: 12.63 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.69e-05/0.6242, allocations: 88.97 kB / 0.5617 GB, free: 12.53 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.296e-05/0.6242, allocations: 4 kB / 0.5617 GB, free: 12.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002892/0.6245, allocations: 23.16 kB / 0.5617 GB, free: 12.5 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.682e-05/0.6246, allocations: 4 kB / 0.5617 GB, free: 12.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.271e-05/0.6246, allocations: 11.36 kB / 0.5617 GB, free: 12.49 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.281e-05/0.6247, allocations: 79.28 kB / 0.5618 GB, free: 12.41 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.6247, allocations: 4 kB / 0.5618 GB, free: 12.41 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004456/0.6251, allocations: 59.11 kB / 0.5619 GB, free: 12.36 MB / 378.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.001101/0.6262, allocations: 0.7671 MB / 0.5626 GB, free: 11.6 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003133/0.6266, allocations: 123.9 kB / 0.5627 GB, free: 11.48 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.6266, allocations: 3.938 kB / 0.5628 GB, free: 11.48 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 9.631e-05/0.6267, allocations: 33.17 kB / 0.5628 GB, free: 11.45 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001546/0.6269, allocations: 7.5 kB / 0.5628 GB, free: 11.45 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007832/0.6277, allocations: 182.2 kB / 0.563 GB, free: 11.24 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003045/0.628, allocations: 0.6887 MB / 0.5636 GB, free: 10.52 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.89e-05/0.6281, allocations: 18.88 kB / 0.5637 GB, free: 10.51 MB / 378.7 MB Notification: Performance of SimCode: time 1.032e-06/0.6281, allocations: 0 / 0.5637 GB, free: 10.51 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.841/3.469, allocations: 2.269 MB / 0.5659 GB, free: 8.242 MB / 378.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomIntegers.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomIntegers_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestRandomIntegers_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestRandomIntegers.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomIntegers_res.mat does not exist to compare? outputFormat=mat