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.00229/0.00229, allocations: 186.3 kB / 16.4 MB, free: 5.75 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.114/2.114, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001118/0.001118, allocations: 94.08 kB / 270.9 MB, free: 8.367 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.5264/0.5264, allocations: 43.55 MB / 362.7 MB, free: 52.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000456/0.0004561, allocations: 12 kB / 431.5 MB, free: 6.082 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/0.1309, allocations: 58.85 MB / 490.3 MB, free: 11.15 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5311/0.6621, allocations: 84.79 MB / 0.5616 GB, free: 1.762 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002088/0.6623, allocations: 59.97 kB / 0.5617 GB, free: 1.703 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01566/0.678, allocations: 3.325 MB / 0.5649 GB, free: 14.4 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.414e-06/0.6781, allocations: 4 kB / 0.5649 GB, free: 14.39 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.213e-05/0.6781, allocations: 0 / 0.5649 GB, free: 14.39 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.0005584/0.6787, allocations: 400.7 kB / 0.5653 GB, free: 13.95 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.92e-05/0.6787, allocations: 8.031 kB / 0.5653 GB, free: 13.95 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.872e-05/0.6788, allocations: 46.48 kB / 0.5654 GB, free: 13.89 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.759e-05/0.6789, allocations: 11.34 kB / 0.5654 GB, free: 13.88 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002717/0.6792, allocations: 175 kB / 0.5656 GB, free: 13.67 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.881e-05/0.6792, allocations: 7.984 kB / 0.5656 GB, free: 13.66 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.112e-05/0.6792, allocations: 4 kB / 0.5656 GB, free: 13.66 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002842/0.6795, allocations: 95.12 kB / 0.5657 GB, free: 13.56 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.6795, allocations: 0 / 0.5657 GB, free: 13.56 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.548e-05/0.6796, allocations: 0 / 0.5657 GB, free: 13.56 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.168e-06/0.6796, allocations: 1.031 kB / 0.5657 GB, free: 13.56 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001028/0.6797, allocations: 31.89 kB / 0.5657 GB, free: 13.53 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002604/0.68, allocations: 177.5 kB / 0.5659 GB, free: 13.31 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001615/0.6802, allocations: 55.64 kB / 0.5659 GB, free: 13.25 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.274e-05/0.6802, allocations: 0 / 0.5659 GB, free: 13.25 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003365/0.6805, allocations: 135.2 kB / 0.566 GB, free: 13.1 MB / 394.7 MB Notification: Performance of pre-optimization done (n=10): time 1.994e-06/0.6805, allocations: 0 / 0.566 GB, free: 13.1 MB / 394.7 MB Notification: Performance of matching and sorting (n=10): time 0.000435/0.681, allocations: 122.2 kB / 0.5662 GB, free: 12.98 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.729e-05/0.6811, allocations: 59.41 kB / 0.5662 GB, free: 12.91 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.886e-05/0.6812, allocations: 96.98 kB / 0.5663 GB, free: 12.8 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.828e-05/0.6812, allocations: 29.7 kB / 0.5663 GB, free: 12.77 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.73e-05/0.6813, allocations: 151.1 kB / 0.5665 GB, free: 12.62 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.397e-05/0.6813, allocations: 23.7 kB / 0.5665 GB, free: 12.59 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.106e-05/0.6814, allocations: 4 kB / 0.5665 GB, free: 12.59 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001389/0.6815, allocations: 322.8 kB / 0.5668 GB, free: 12.27 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.132e-05/0.6816, allocations: 23.92 kB / 0.5668 GB, free: 12.24 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001231/0.6817, allocations: 78.78 kB / 0.5669 GB, free: 12.14 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001367/0.6819, allocations: 61.69 kB / 0.567 GB, free: 12.07 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.317e-06/0.6819, allocations: 4 kB / 0.567 GB, free: 12.07 MB / 394.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003481/0.6822, allocations: 158.2 kB / 0.5671 GB, free: 11.91 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.704e-05/0.6823, allocations: 33.7 kB / 0.5672 GB, free: 11.87 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.675e-06/0.6823, allocations: 0 / 0.5672 GB, free: 11.87 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.735e-05/0.6824, allocations: 4 kB / 0.5672 GB, free: 11.86 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001686/0.6825, allocations: 19.98 kB / 0.5672 GB, free: 11.84 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.265e-05/0.6826, allocations: 4 kB / 0.5672 GB, free: 11.84 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.759e-05/0.6826, allocations: 12.09 kB / 0.5672 GB, free: 11.83 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.645e-05/0.6827, allocations: 8 kB / 0.5672 GB, free: 11.82 MB / 394.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.0002088/0.6829, allocations: 137.7 kB / 0.5673 GB, free: 11.68 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.831e-05/0.6829, allocations: 7.906 kB / 0.5673 GB, free: 11.67 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.158e-05/0.683, allocations: 15.95 kB / 0.5674 GB, free: 11.66 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.683, allocations: 0 / 0.5674 GB, free: 11.66 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.683, allocations: 0 / 0.5674 GB, free: 11.66 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.618e-06/0.6831, allocations: 0 / 0.5674 GB, free: 11.66 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002135/0.6833, allocations: 181.8 kB / 0.5675 GB, free: 11.43 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.6833, allocations: 0 / 0.5675 GB, free: 11.43 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.384e-05/0.6834, allocations: 7.938 kB / 0.5675 GB, free: 11.42 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.6834, allocations: 0 / 0.5675 GB, free: 11.42 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.905e-05/0.6834, allocations: 7.984 kB / 0.5675 GB, free: 11.41 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.579e-06/0.6834, allocations: 4 kB / 0.5675 GB, free: 11.41 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.6834, allocations: 0 / 0.5675 GB, free: 11.41 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003471/0.6838, allocations: 132.9 kB / 0.5677 GB, free: 11.26 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.634e-05/0.6839, allocations: 93 kB / 0.5678 GB, free: 11.15 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.316e-05/0.6839, allocations: 4 kB / 0.5678 GB, free: 11.15 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002762/0.6842, allocations: 22.03 kB / 0.5678 GB, free: 11.13 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.939e-05/0.6842, allocations: 4 kB / 0.5678 GB, free: 11.12 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.486e-05/0.6843, allocations: 11.98 kB / 0.5678 GB, free: 11.11 MB / 394.7 MB Notification: Performance of sorting global known variables: time 5.332e-05/0.6843, allocations: 79.28 kB / 0.5679 GB, free: 11.04 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.6843, allocations: 0 / 0.5679 GB, free: 11.04 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004521/0.6848, allocations: 59.98 kB / 0.5679 GB, free: 10.98 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) * 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.001094/0.6859, allocations: 0.7842 MB / 0.5687 GB, free: 10.2 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0003145/0.6862, allocations: 123.2 kB / 0.5688 GB, free: 10.07 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.157e-06/0.6863, allocations: 0 / 0.5688 GB, free: 10.07 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001148/0.6864, allocations: 35.97 kB / 0.5689 GB, free: 10.03 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001543/0.6866, allocations: 3.938 kB / 0.5689 GB, free: 10.03 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001411/0.688, allocations: 1.488 MB / 0.5703 GB, free: 8.461 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002983/0.6883, allocations: 0.6848 MB / 0.571 GB, free: 7.75 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.255e-05/0.6884, allocations: 19.42 kB / 0.571 GB, free: 7.73 MB / 394.7 MB Notification: Performance of SimCode: time 1.182e-06/0.6884, allocations: 4 kB / 0.571 GB, free: 7.727 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.803/3.492, allocations: 2.254 MB / 0.5732 GB, free: 5.48 MB / 394.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