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.002142/0.002141, allocations: 178 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.124/2.124, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001198/0.001198, allocations: 89.7 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2929/0.2929, allocations: 43.49 MB / 353.6 MB, free: 2.266 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.129e-05/2.127e-05, allocations: 4.219 kB / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4085/0.4085, allocations: 58.85 MB / 477.2 MB, free: 5.281 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1608/0.5694, allocations: 84.06 MB / 0.5481 GB, free: 15.24 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002291/0.5697, allocations: 55.97 kB / 0.5481 GB, free: 15.18 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01663/0.5863, allocations: 3.318 MB / 0.5514 GB, free: 11.87 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.5864, allocations: 0 / 0.5514 GB, free: 11.87 MB / 395.1 MB Notification: Performance of Transformations before backend: time 1.238e-05/0.5864, allocations: 0 / 0.5514 GB, free: 11.87 MB / 395.1 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.0005839/0.587, allocations: 392.1 kB / 0.5518 GB, free: 11.43 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.181e-05/0.5871, allocations: 8.031 kB / 0.5518 GB, free: 11.43 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.855e-05/0.5871, allocations: 8.531 kB / 0.5518 GB, free: 11.42 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002928/0.5874, allocations: 186.9 kB / 0.5519 GB, free: 11.2 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.577e-05/0.5875, allocations: 0 / 0.5519 GB, free: 11.2 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.643e-05/0.5875, allocations: 7.984 kB / 0.552 GB, free: 11.19 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001171/0.5876, allocations: 23.98 kB / 0.552 GB, free: 11.16 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002176/0.5879, allocations: 85.58 kB / 0.5521 GB, free: 11.07 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.297e-05/0.5879, allocations: 3.938 kB / 0.5521 GB, free: 11.07 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.734e-05/0.5879, allocations: 0 / 0.5521 GB, free: 11.07 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.847e-06/0.5879, allocations: 0 / 0.5521 GB, free: 11.07 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000224/0.5882, allocations: 154.2 kB / 0.5522 GB, free: 10.88 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001283/0.5883, allocations: 46.56 kB / 0.5523 GB, free: 10.83 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.498e-05/0.5884, allocations: 16.86 kB / 0.5523 GB, free: 10.81 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.854e-05/0.5884, allocations: 4 kB / 0.5523 GB, free: 10.8 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003053/0.5887, allocations: 127.3 kB / 0.5524 GB, free: 10.67 MB / 395.1 MB Notification: Performance of pre-optimization done (n=10): time 2.194e-06/0.5888, allocations: 0 / 0.5524 GB, free: 10.67 MB / 395.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004268/0.5892, allocations: 105.5 kB / 0.5525 GB, free: 10.56 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.217e-05/0.5893, allocations: 59.41 kB / 0.5526 GB, free: 10.49 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.12e-05/0.5894, allocations: 92.98 kB / 0.5526 GB, free: 10.39 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 3.683e-05/0.5894, allocations: 29.7 kB / 0.5527 GB, free: 10.36 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.943e-05/0.5895, allocations: 154.8 kB / 0.5528 GB, free: 10.2 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.949e-05/0.5896, allocations: 27.64 kB / 0.5528 GB, free: 10.17 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.116e-06/0.5896, allocations: 0 / 0.5528 GB, free: 10.17 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.5897, allocations: 314.8 kB / 0.5531 GB, free: 9.855 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.151e-05/0.5898, allocations: 20 kB / 0.5532 GB, free: 9.836 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001049/0.5899, allocations: 70.86 kB / 0.5532 GB, free: 9.742 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001415/0.5901, allocations: 43.91 kB / 0.5533 GB, free: 9.699 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.397e-06/0.5901, allocations: 0 / 0.5533 GB, free: 9.699 MB / 395.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003204/0.5904, allocations: 117.4 kB / 0.5534 GB, free: 9.578 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.674e-05/0.5905, allocations: 29.7 kB / 0.5534 GB, free: 9.543 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.5905, allocations: 4 kB / 0.5534 GB, free: 9.539 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.055e-05/0.5905, allocations: 4 kB / 0.5534 GB, free: 9.535 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001629/0.5907, allocations: 15.98 kB / 0.5534 GB, free: 9.52 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.136e-05/0.5907, allocations: 8.156 kB / 0.5534 GB, free: 9.512 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.355e-05/0.5908, allocations: 4 kB / 0.5534 GB, free: 9.508 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.131e-05/0.5908, allocations: 12 kB / 0.5535 GB, free: 9.496 MB / 395.1 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.0001823/0.591, allocations: 108.9 kB / 0.5536 GB, free: 9.383 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003244/0.5914, allocations: 117.5 kB / 0.5537 GB, free: 9.262 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.222e-05/0.5914, allocations: 7.984 kB / 0.5537 GB, free: 9.254 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.256e-05/0.5915, allocations: 4.406 kB / 0.5537 GB, free: 9.25 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.5915, allocations: 8 kB / 0.5537 GB, free: 9.242 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.5915, allocations: 0 / 0.5537 GB, free: 9.242 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.658e-06/0.5915, allocations: 64 / 0.5537 GB, free: 9.242 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001903/0.5917, allocations: 162.3 kB / 0.5538 GB, free: 9.047 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.5917, allocations: 0 / 0.5538 GB, free: 9.047 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.371e-05/0.5918, allocations: 4 kB / 0.5539 GB, free: 9.043 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.468e-06/0.5918, allocations: 0 / 0.5539 GB, free: 9.043 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.876e-05/0.5919, allocations: 11.98 kB / 0.5539 GB, free: 9.031 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.5919, allocations: 0 / 0.5539 GB, free: 9.031 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.5919, allocations: 0 / 0.5539 GB, free: 9.031 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003361/0.5922, allocations: 136.9 kB / 0.554 GB, free: 8.879 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.287e-05/0.5923, allocations: 84.97 kB / 0.5541 GB, free: 8.777 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.637e-05/0.5923, allocations: 7.984 kB / 0.5541 GB, free: 8.77 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002748/0.5926, allocations: 19.98 kB / 0.5541 GB, free: 8.75 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.291e-05/0.5927, allocations: 3.984 kB / 0.5541 GB, free: 8.746 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.074e-05/0.5927, allocations: 11.94 kB / 0.5541 GB, free: 8.734 MB / 395.1 MB Notification: Performance of sorting global known variables: time 5.597e-05/0.5928, allocations: 83.28 kB / 0.5542 GB, free: 8.652 MB / 395.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.5928, allocations: 0 / 0.5542 GB, free: 8.652 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0004964/0.5933, allocations: 55.92 kB / 0.5542 GB, free: 8.598 MB / 395.1 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.001151/0.5945, allocations: 0.7569 MB / 0.555 GB, free: 7.816 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0002968/0.5948, allocations: 119.2 kB / 0.5551 GB, free: 7.688 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 7.414e-06/0.5948, allocations: 4 kB / 0.5551 GB, free: 7.684 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 8.336e-05/0.5949, allocations: 24 kB / 0.5551 GB, free: 7.66 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001863/0.5951, allocations: 4.562 kB / 0.5551 GB, free: 7.656 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008157/0.5959, allocations: 195.1 kB / 0.5553 GB, free: 7.422 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002987/0.5963, allocations: 0.6807 MB / 0.556 GB, free: 6.715 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.81e-05/0.5963, allocations: 23.42 kB / 0.556 GB, free: 6.691 MB / 395.1 MB Notification: Performance of SimCode: time 1.283e-06/0.5963, allocations: 0 / 0.556 GB, free: 6.691 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.81/3.407, allocations: 2.268 MB / 0.5582 GB, free: 4.43 MB / 395.1 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