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/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_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/Complex 3.2.3+maint.om/package.mo): time 0.001464/0.001464, allocations: 183.7 kB / 13.19 MB, free: 2.129 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.646/1.646, allocations: 205.2 MB / 218.9 MB, free: 9.211 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.0008438/0.0008437, allocations: 91.66 kB / 267 MB, free: 9.289 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.394/0.394, allocations: 43.47 MB / 358.6 MB, free: 51.59 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.219e-05/4.23e-05, allocations: 4 kB / 425.4 MB, free: 8.094 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1563/0.1563, allocations: 58.84 MB / 484.3 MB, free: 13.14 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4702/0.6266, allocations: 84.71 MB / 0.5556 GB, free: 18.57 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001997/0.6269, allocations: 63.11 kB / 0.5557 GB, free: 18.55 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009524/0.6364, allocations: 3.317 MB / 0.5589 GB, free: 16.6 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.362e-06/0.6364, allocations: 0 / 0.5589 GB, free: 16.6 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.062e-05/0.6365, allocations: 4 kB / 0.5589 GB, free: 16.6 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.0003461/0.6368, allocations: 388.2 kB / 0.5593 GB, free: 16.19 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.692e-05/0.6369, allocations: 12.03 kB / 0.5593 GB, free: 16.18 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.731e-05/0.6369, allocations: 32.06 kB / 0.5593 GB, free: 16.14 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.175e-05/0.637, allocations: 15.34 kB / 0.5594 GB, free: 16.12 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001922/0.6372, allocations: 187 kB / 0.5595 GB, free: 15.91 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.169e-05/0.6372, allocations: 4.547 kB / 0.5595 GB, free: 15.91 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.61e-05/0.6372, allocations: 4 kB / 0.5595 GB, free: 15.91 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001978/0.6374, allocations: 94.39 kB / 0.5596 GB, free: 15.84 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.6374, allocations: 0 / 0.5596 GB, free: 15.84 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.027e-05/0.6375, allocations: 1.375 kB / 0.5596 GB, free: 15.84 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.501e-06/0.6375, allocations: 0 / 0.5596 GB, free: 15.84 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.411e-05/0.6375, allocations: 24.64 kB / 0.5597 GB, free: 15.83 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001761/0.6377, allocations: 177.2 kB / 0.5598 GB, free: 15.62 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.935e-05/0.6378, allocations: 51.97 kB / 0.5599 GB, free: 15.57 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.24e-05/0.6379, allocations: 22.02 kB / 0.5599 GB, free: 15.55 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.56e-05/0.6379, allocations: 4 kB / 0.5599 GB, free: 15.55 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002052/0.6381, allocations: 125.3 kB / 0.56 GB, free: 15.46 MB / 394.7 MB Notification: Performance of pre-optimization done (n=10): time 1.323e-06/0.6381, allocations: 0 / 0.56 GB, free: 15.46 MB / 394.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002661/0.6384, allocations: 105.9 kB / 0.5601 GB, free: 15.37 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.547e-05/0.6384, allocations: 56.77 kB / 0.5602 GB, free: 15.3 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.62e-05/0.6385, allocations: 93.94 kB / 0.5603 GB, free: 15.21 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.294e-05/0.6385, allocations: 31.2 kB / 0.5603 GB, free: 15.18 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.258e-05/0.6386, allocations: 88.2 kB / 0.5604 GB, free: 15.09 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.992e-05/0.6386, allocations: 25.97 kB / 0.5604 GB, free: 15.07 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.1e-06/0.6386, allocations: 0 / 0.5604 GB, free: 15.07 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.031e-05/0.6387, allocations: 324.7 kB / 0.5607 GB, free: 14.75 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.956e-05/0.6387, allocations: 23.66 kB / 0.5607 GB, free: 14.73 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.16e-05/0.6388, allocations: 77.22 kB / 0.5608 GB, free: 14.64 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.094e-05/0.6389, allocations: 63.81 kB / 0.5609 GB, free: 14.59 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.6389, allocations: 0 / 0.5609 GB, free: 14.59 MB / 394.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.00018/0.6391, allocations: 165.4 kB / 0.561 GB, free: 14.45 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.276e-05/0.6391, allocations: 29.7 kB / 0.5611 GB, free: 14.41 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.6391, allocations: 7.125 kB / 0.5611 GB, free: 14.41 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.6391, allocations: 4 kB / 0.5611 GB, free: 14.41 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.478e-05/0.6392, allocations: 18.7 kB / 0.5611 GB, free: 14.39 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.044e-05/0.6392, allocations: 2.75 kB / 0.5611 GB, free: 14.39 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.523e-05/0.6393, allocations: 7.438 kB / 0.5611 GB, free: 14.39 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.273e-05/0.6393, allocations: 9.781 kB / 0.5611 GB, free: 14.38 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.0001199/0.6394, allocations: 123 kB / 0.5612 GB, free: 14.26 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.211e-05/0.6395, allocations: 15.52 kB / 0.5612 GB, free: 14.25 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.718e-05/0.6395, allocations: 13.39 kB / 0.5612 GB, free: 14.24 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.6395, allocations: 3.938 kB / 0.5612 GB, free: 14.23 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.107e-06/0.6395, allocations: 1.219 kB / 0.5612 GB, free: 14.23 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.6396, allocations: 3.938 kB / 0.5613 GB, free: 14.23 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001186/0.6397, allocations: 178.1 kB / 0.5614 GB, free: 14.03 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.6397, allocations: 0 / 0.5614 GB, free: 14.03 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.172e-05/0.6397, allocations: 5.734 kB / 0.5614 GB, free: 14.02 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.6397, allocations: 4 kB / 0.5614 GB, free: 14.02 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.189e-05/0.6397, allocations: 1.641 kB / 0.5614 GB, free: 14.02 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.6398, allocations: 5.547 kB / 0.5614 GB, free: 14.02 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.6398, allocations: 0 / 0.5614 GB, free: 14.02 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001662/0.6399, allocations: 132.8 kB / 0.5616 GB, free: 13.89 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.337e-05/0.64, allocations: 81.62 kB / 0.5616 GB, free: 13.8 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.48e-05/0.64, allocations: 5.312 kB / 0.5616 GB, free: 13.79 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001553/0.6402, allocations: 24.64 kB / 0.5617 GB, free: 13.78 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.008e-05/0.6402, allocations: 6.578 kB / 0.5617 GB, free: 13.77 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.576e-05/0.6402, allocations: 10.38 kB / 0.5617 GB, free: 13.77 MB / 394.7 MB Notification: Performance of sorting global known variables: time 2.703e-05/0.6403, allocations: 79.28 kB / 0.5618 GB, free: 13.69 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6403, allocations: 0 / 0.5618 GB, free: 13.69 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002802/0.6405, allocations: 61.95 kB / 0.5618 GB, free: 13.64 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.0006417/0.6412, allocations: 0.7766 MB / 0.5626 GB, free: 12.91 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001698/0.6414, allocations: 127.3 kB / 0.5627 GB, free: 12.79 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.6414, allocations: 0 / 0.5627 GB, free: 12.79 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 4.938e-05/0.6414, allocations: 37.2 kB / 0.5627 GB, free: 12.77 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000108/0.6416, allocations: 0.7031 kB / 0.5627 GB, free: 12.77 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004468/0.642, allocations: 161.4 kB / 0.5629 GB, free: 12.6 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001142/0.6421, allocations: 0.6867 MB / 0.5636 GB, free: 11.89 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 5.098e-05/0.6422, allocations: 18 kB / 0.5636 GB, free: 11.88 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.334e-05/0.6422, allocations: 20.75 kB / 0.5636 GB, free: 11.86 MB / 394.7 MB Notification: Performance of SimCode: time 2.4e-07/0.6422, allocations: 0 / 0.5636 GB, free: 11.86 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01526/0.6575, allocations: 2.877 MB / 0.5664 GB, free: 10.18 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001948/0.6578, allocations: 192.4 kB / 0.5666 GB, free: 9.953 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.622/2.28, allocations: 4 kB / 0.5666 GB, free: 9.949 MB / 394.7 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) 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