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.001626/0.001626, allocations: 177.6 kB / 8.003 MB, free: 1.07 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.916/1.916, allocations: 205.3 MB / 213.7 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009433/0.0009433, allocations: 78.64 kB / 261.7 MB, free: 1.688 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.267/0.267, allocations: 43.5 MB / 353.2 MB, free: 292 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.877e-05/1.879e-05, allocations: 4 kB / 418.4 MB, free: 28.46 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1144, allocations: 58.85 MB / 477.2 MB, free: 1.555 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3908/0.5052, allocations: 84.05 MB / 0.5481 GB, free: 9.09 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001883/0.5054, allocations: 61.98 kB / 0.5482 GB, free: 9.09 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009503/0.5149, allocations: 3.314 MB / 0.5514 GB, free: 7.551 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.515, allocations: 4 kB / 0.5514 GB, free: 7.547 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.524e-05/0.515, allocations: 0 / 0.5514 GB, free: 7.547 MB / 362.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.0003378/0.5154, allocations: 394.7 kB / 0.5518 GB, free: 7.121 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/0.5154, allocations: 8.031 kB / 0.5518 GB, free: 7.113 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.842e-05/0.5155, allocations: 8.531 kB / 0.5518 GB, free: 7.105 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000169/0.5156, allocations: 186.9 kB / 0.552 GB, free: 6.883 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.759e-05/0.5157, allocations: 11.98 kB / 0.552 GB, free: 6.871 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.743e-05/0.5157, allocations: 7.312 kB / 0.552 GB, free: 6.867 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.93e-05/0.5158, allocations: 14.36 kB / 0.552 GB, free: 6.855 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00013/0.5159, allocations: 82.52 kB / 0.5521 GB, free: 6.781 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.18e-05/0.5159, allocations: 7.938 kB / 0.5521 GB, free: 6.773 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.062e-05/0.516, allocations: 0 / 0.5521 GB, free: 6.773 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.516, allocations: 0 / 0.5521 GB, free: 6.773 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001439/0.5161, allocations: 148 kB / 0.5522 GB, free: 6.598 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.587e-05/0.5162, allocations: 49.81 kB / 0.5523 GB, free: 6.547 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.185e-05/0.5162, allocations: 16.05 kB / 0.5523 GB, free: 6.531 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.957e-05/0.5163, allocations: 4 kB / 0.5523 GB, free: 6.527 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001841/0.5165, allocations: 129.5 kB / 0.5524 GB, free: 6.414 MB / 362.7 MB Notification: Performance of pre-optimization done (n=10): time 1.283e-06/0.5165, allocations: 4 kB / 0.5524 GB, free: 6.41 MB / 362.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002739/0.5167, allocations: 106.8 kB / 0.5525 GB, free: 6.312 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.516e-05/0.5168, allocations: 55.41 kB / 0.5526 GB, free: 6.246 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.562e-05/0.5168, allocations: 92.31 kB / 0.5527 GB, free: 6.152 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.339e-05/0.5169, allocations: 29.69 kB / 0.5527 GB, free: 6.117 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.293e-05/0.5169, allocations: 80.33 kB / 0.5528 GB, free: 6.031 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.89e-05/0.5169, allocations: 26.34 kB / 0.5528 GB, free: 6.012 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.661e-06/0.517, allocations: 0 / 0.5528 GB, free: 6.012 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.49e-05/0.517, allocations: 322.8 kB / 0.5531 GB, free: 5.688 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.429e-05/0.5171, allocations: 18.62 kB / 0.5531 GB, free: 5.676 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.718e-05/0.5171, allocations: 70.23 kB / 0.5532 GB, free: 5.594 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.208e-05/0.5172, allocations: 37.72 kB / 0.5532 GB, free: 5.562 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.5172, allocations: 0 / 0.5532 GB, free: 5.562 MB / 362.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001743/0.5174, allocations: 124.5 kB / 0.5533 GB, free: 5.449 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.342e-05/0.5174, allocations: 29.7 kB / 0.5534 GB, free: 5.414 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.5175, allocations: 4 kB / 0.5534 GB, free: 5.41 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/0.5175, allocations: 224 / 0.5534 GB, free: 5.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.242e-05/0.5176, allocations: 23.98 kB / 0.5534 GB, free: 5.387 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.763e-06/0.5176, allocations: 3.938 kB / 0.5534 GB, free: 5.383 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.608e-05/0.5176, allocations: 4.094 kB / 0.5534 GB, free: 5.379 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.171e-05/0.5177, allocations: 11.31 kB / 0.5534 GB, free: 5.371 MB / 362.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.0001156/0.5178, allocations: 116.9 kB / 0.5535 GB, free: 5.25 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001664/0.518, allocations: 114.5 kB / 0.5536 GB, free: 5.145 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.612e-05/0.518, allocations: 4 kB / 0.5536 GB, free: 5.141 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.347e-05/0.518, allocations: 11.47 kB / 0.5537 GB, free: 5.133 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.518, allocations: 4 kB / 0.5537 GB, free: 5.129 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.518, allocations: 0 / 0.5537 GB, free: 5.129 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.5181, allocations: 0 / 0.5537 GB, free: 5.129 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001034/0.5182, allocations: 157.6 kB / 0.5538 GB, free: 4.941 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.5182, allocations: 0.875 kB / 0.5538 GB, free: 4.941 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.412e-05/0.5182, allocations: 7.75 kB / 0.5538 GB, free: 4.938 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.5182, allocations: 0 / 0.5538 GB, free: 4.938 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.277e-05/0.5182, allocations: 7.984 kB / 0.5538 GB, free: 4.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.5182, allocations: 0 / 0.5538 GB, free: 4.93 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.5183, allocations: 4 kB / 0.5538 GB, free: 4.926 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001776/0.5184, allocations: 123.1 kB / 0.5539 GB, free: 4.801 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.125e-05/0.5185, allocations: 93.02 kB / 0.554 GB, free: 4.691 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.611e-05/0.5185, allocations: 11.98 kB / 0.554 GB, free: 4.68 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001469/0.5187, allocations: 19.36 kB / 0.5541 GB, free: 4.664 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.367e-05/0.5187, allocations: 11.98 kB / 0.5541 GB, free: 4.652 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.059e-05/0.5187, allocations: 7.938 kB / 0.5541 GB, free: 4.645 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.61e-05/0.5187, allocations: 86.52 kB / 0.5542 GB, free: 4.562 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5187, allocations: 0 / 0.5542 GB, free: 4.562 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000305/0.5191, allocations: 54.42 kB / 0.5542 GB, free: 4.516 MB / 362.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.0006464/0.5197, allocations: 0.7631 MB / 0.555 GB, free: 3.758 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001529/0.5199, allocations: 117.3 kB / 0.5551 GB, free: 3.645 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.5199, allocations: 448 / 0.5551 GB, free: 3.645 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.145e-05/0.5199, allocations: 27.94 kB / 0.5551 GB, free: 3.621 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001159/0.5201, allocations: 10.98 kB / 0.5551 GB, free: 3.613 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004316/0.5205, allocations: 156.7 kB / 0.5553 GB, free: 3.43 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001226/0.5206, allocations: 0.6846 MB / 0.5559 GB, free: 2.719 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.407e-05/0.5207, allocations: 16.64 kB / 0.5559 GB, free: 2.703 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.327e-05/0.5207, allocations: 14.44 kB / 0.556 GB, free: 2.691 MB / 362.7 MB Notification: Performance of SimCode: time 2.3e-07/0.5207, allocations: 8 kB / 0.556 GB, free: 2.684 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02167/0.5424, allocations: 2.561 MB / 0.5585 GB, free: 128 kB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002047/0.5427, allocations: 159.9 kB / 0.5586 GB, free: 15.94 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.564/2.106, allocations: 3.938 kB / 0.5586 GB, free: 15.93 MB / 378.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