Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.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) 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(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Math_Random_Examples_GenerateRandomNumbers",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.002134/0.002134, allocations: 178.4 kB / 8.362 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 1.993/1.993, allocations: 205.3 MB / 214.1 MB, free: 14.15 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.001126/0.001125, allocations: 94.44 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.539e-05/2.536e-05, allocations: 4 kB / 314.9 MB, free: 9.074 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3387/0.3387, allocations: 47.56 MB / 362.4 MB, free: 45.88 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1178/0.4566, allocations: 74.63 MB / 437 MB, free: 11.69 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002432/0.4569, allocations: 65 kB / 437.1 MB, free: 11.63 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01238/0.4693, allocations: 2.944 MB / 440.1 MB, free: 8.707 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.4693, allocations: 0 / 440.1 MB, free: 8.707 MB / 331.1 MB Notification: Performance of Transformations before backend: time 1.208e-05/0.4694, allocations: 4 kB / 440.1 MB, free: 8.703 MB / 331.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0006646/0.47, allocations: 0.5645 MB / 440.6 MB, free: 8.086 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.858e-05/0.4701, allocations: 8.031 kB / 440.6 MB, free: 8.078 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001602/0.4703, allocations: 23.8 kB / 440.7 MB, free: 8.055 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001672/0.4704, allocations: 178.9 kB / 440.8 MB, free: 7.84 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.478e-05/0.4705, allocations: 2.25 kB / 440.8 MB, free: 7.84 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.713e-05/0.4706, allocations: 13.83 kB / 440.8 MB, free: 7.828 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003572/0.4709, allocations: 140.8 kB / 441 MB, free: 7.695 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006337/0.4716, allocations: 267.2 kB / 441.2 MB, free: 7.422 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.4716, allocations: 0.9375 kB / 441.2 MB, free: 7.422 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.502e-05/0.4717, allocations: 4 kB / 441.2 MB, free: 7.418 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.4717, allocations: 2.656 kB / 441.3 MB, free: 7.418 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003041/0.472, allocations: 178.6 kB / 441.4 MB, free: 7.203 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007655/0.4728, allocations: 489.2 kB / 441.9 MB, free: 6.707 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007147/0.4735, allocations: 467.1 kB / 442.4 MB, free: 6.246 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.905e-06/0.4736, allocations: 0 / 442.4 MB, free: 6.246 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008531/0.4745, allocations: 478.4 kB / 442.8 MB, free: 5.738 MB / 331.1 MB Notification: Performance of pre-optimization done (n=46): time 2.585e-06/0.4745, allocations: 0 / 442.8 MB, free: 5.738 MB / 331.1 MB Notification: Performance of matching and sorting (n=46): time 0.001336/0.4758, allocations: 410.3 kB / 443.2 MB, free: 5.332 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001447/0.476, allocations: 160.5 kB / 443.4 MB, free: 5.145 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000118/0.4761, allocations: 100.9 kB / 443.5 MB, free: 5.039 MB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 2.704e-05/0.4762, allocations: 28.17 kB / 443.5 MB, free: 5.008 MB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.427e-05/0.4763, allocations: 151.3 kB / 443.7 MB, free: 4.859 MB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001219/0.4764, allocations: 86.77 kB / 443.7 MB, free: 4.773 MB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.396e-05/0.4764, allocations: 4 kB / 443.7 MB, free: 4.77 MB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.000167/0.4766, allocations: 330.8 kB / 444.1 MB, free: 4.438 MB / 331.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001711/0.4768, allocations: 80.41 kB / 444.1 MB, free: 4.359 MB / 331.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000203/0.477, allocations: 106.4 kB / 444.3 MB, free: 4.25 MB / 331.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003374/0.4774, allocations: 101 kB / 444.4 MB, free: 4.152 MB / 331.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.4774, allocations: 0 / 444.4 MB, free: 4.152 MB / 331.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007318/0.4782, allocations: 253.3 kB / 444.6 MB, free: 3.898 MB / 331.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001852/0.4784, allocations: 107.3 kB / 444.7 MB, free: 3.781 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.676e-06/0.4784, allocations: 0 / 444.7 MB, free: 3.781 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.41e-05/0.4784, allocations: 3.953 kB / 444.7 MB, free: 3.777 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.321e-06/0.4784, allocations: 4 kB / 444.7 MB, free: 3.773 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.203e-05/0.4785, allocations: 4.078 kB / 444.7 MB, free: 3.77 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001508/0.4786, allocations: 23.75 kB / 444.7 MB, free: 3.746 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.097e-05/0.4787, allocations: 8 kB / 444.7 MB, free: 3.738 MB / 331.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 46 ($whenCondition2,r64,r128,r1024,state64[1],state64[2],state128[1],state128[2],state128[3],state128[4],state1024[1],state1024[2],state1024[3],state1024[4],state1024[5],state1024[6],state1024[7],state1024[8],state1024[9],state1024[10],state1024[11],state1024[12],state1024[13],state1024[14],state1024[15],state1024[16],state1024[17],state1024[18],state1024[19],state1024[20],state1024[21],state1024[22],state1024[23],state1024[24],state1024[25],state1024[26],state1024[27],state1024[28],state1024[29],state1024[30],state1024[31],state1024[32],state1024[33],$whenCondition1,rImpure,iImpure) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 2 * 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.0004849/0.4792, allocations: 275.4 kB / 445 MB, free: 3.449 MB / 331.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001724/0.4809, allocations: 0.536 MB / 445.6 MB, free: 2.91 MB / 331.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001047/0.4811, allocations: 27.77 kB / 445.6 MB, free: 2.883 MB / 331.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.543e-05/0.4811, allocations: 5.969 kB / 445.6 MB, free: 2.879 MB / 331.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.638e-06/0.4812, allocations: 0 / 445.6 MB, free: 2.879 MB / 331.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.168e-06/0.4812, allocations: 7.984 kB / 445.6 MB, free: 2.871 MB / 331.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.4812, allocations: 0 / 445.6 MB, free: 2.871 MB / 331.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003661/0.4816, allocations: 201.9 kB / 445.8 MB, free: 2.637 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.128e-05/0.4816, allocations: 7.984 kB / 445.8 MB, free: 2.629 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.635e-06/0.4816, allocations: 0 / 445.8 MB, free: 2.629 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.264e-06/0.4817, allocations: 4.062 kB / 445.8 MB, free: 2.625 MB / 331.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.726e-05/0.4817, allocations: 21.77 kB / 445.8 MB, free: 2.605 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.288e-06/0.4818, allocations: 7.953 kB / 445.8 MB, free: 2.598 MB / 331.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-06/0.4818, allocations: 0 / 445.8 MB, free: 2.598 MB / 331.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00178/0.4836, allocations: 0.5826 MB / 446.4 MB, free: 1.988 MB / 331.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001078/0.4837, allocations: 104.8 kB / 446.5 MB, free: 1.867 MB / 331.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003247/0.4841, allocations: 71.91 kB / 446.6 MB, free: 1.797 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001664/0.4843, allocations: 15.5 kB / 446.6 MB, free: 1.785 MB / 331.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.667e-05/0.4844, allocations: 11.98 kB / 446.6 MB, free: 1.773 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000108/0.4845, allocations: 27.98 kB / 446.6 MB, free: 1.746 MB / 331.1 MB Notification: Performance of sorting global known variables: time 6.845e-05/0.4846, allocations: 79.28 kB / 446.7 MB, free: 1.668 MB / 331.1 MB Notification: Performance of sort global known variables: time 6.41e-07/0.4846, allocations: 0 / 446.7 MB, free: 1.668 MB / 331.1 MB Notification: Performance of remove unused functions: time 0.0008584/0.4855, allocations: 107.9 kB / 446.8 MB, free: 1.562 MB / 331.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 46 ($whenCondition2,r64,r128,r1024,state64[1],state64[2],state128[1],state128[2],state128[3],state128[4],state1024[1],state1024[2],state1024[3],state1024[4],state1024[5],state1024[6],state1024[7],state1024[8],state1024[9],state1024[10],state1024[11],state1024[12],state1024[13],state1024[14],state1024[15],state1024[16],state1024[17],state1024[18],state1024[19],state1024[20],state1024[21],state1024[22],state1024[23],state1024[24],state1024[25],state1024[26],state1024[27],state1024[28],state1024[29],state1024[30],state1024[31],state1024[32],state1024[33],$whenCondition1,rImpure,iImpure) * Number of discrete states: 46 (iImpure,rImpure,$whenCondition1,r1024,r128,r64,state1024[33],state1024[32],state1024[31],state1024[30],state1024[29],state1024[28],state1024[27],state1024[26],state1024[25],state1024[24],state1024[23],state1024[22],state1024[21],state1024[20],state1024[19],state1024[18],state1024[17],state1024[16],state1024[15],state1024[14],state1024[13],state1024[12],state1024[11],state1024[10],state1024[9],state1024[8],state1024[7],state1024[6],state1024[5],state1024[4],state1024[3],state1024[2],state1024[1],state128[4],state128[3],state128[2],state128[1],state64[2],state64[1],$whenCondition2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 2 * 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 Backend phase and start with SimCode phase: time 0.003942/0.4894, allocations: 1.647 MB / 448.5 MB, free: 15.91 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.003541/0.493, allocations: 2.088 MB / 450.6 MB, free: 13.8 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 8.205e-06/0.4931, allocations: 4.125 kB / 450.6 MB, free: 13.8 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00356/0.4967, allocations: 2.174 MB / 452.7 MB, free: 11.6 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003173/0.4971, allocations: 13.66 kB / 452.7 MB, free: 11.59 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001547/0.4986, allocations: 406.2 kB / 453.1 MB, free: 11.14 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004393/0.4991, allocations: 0.7285 MB / 453.9 MB, free: 10.38 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.863e-05/0.4992, allocations: 39.42 kB / 453.9 MB, free: 10.34 MB / 347.1 MB Notification: Performance of SimCode: time 1.212e-06/0.4992, allocations: 0 / 453.9 MB, free: 10.34 MB / 347.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.88/3.379, allocations: 4.03 MB / 457.9 MB, free: 6.328 MB / 347.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Math_Random_Examples_GenerateRandomNumbers_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Math_Random_Examples_GenerateRandomNumbers.fmu > Modelica_3.2.3_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat does not exist to compare? outputFormat=mat