Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_trunk_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_trunk_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001532/0.001532, allocations: 197.4 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.358/1.358, allocations: 227.2 MB / 245 MB, free: 5.781 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009946/0.0009945, allocations: 108.2 kB / 297.3 MB, free: 5.961 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002567/0.0002568, allocations: 8 kB / 358 MB, free: 9.223 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2351/0.2354, allocations: 51.48 MB / 409.5 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09276/0.3282, allocations: 77.12 MB / 486.6 MB, free: 13.49 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002363/0.3285, allocations: 67.97 kB / 486.7 MB, free: 13.43 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007914/0.3364, allocations: 2.992 MB / 489.7 MB, free: 10.44 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3364, allocations: 4 kB / 489.7 MB, free: 10.44 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.813e-06/0.3365, allocations: 0 / 489.7 MB, free: 10.44 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0005579/0.337, allocations: 0.5604 MB / 490.2 MB, free: 9.816 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.314e-05/0.3371, allocations: 12.02 kB / 490.2 MB, free: 9.805 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.61e-05/0.3372, allocations: 50.55 kB / 490.3 MB, free: 9.746 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001188/0.3373, allocations: 19.81 kB / 490.3 MB, free: 9.727 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001339/0.3374, allocations: 190.8 kB / 490.5 MB, free: 9.5 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.197e-05/0.3375, allocations: 4 kB / 490.5 MB, free: 9.496 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.218e-05/0.3375, allocations: 7.953 kB / 490.5 MB, free: 9.488 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003179/0.3378, allocations: 278.3 kB / 490.8 MB, free: 9.203 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.224e-06/0.3378, allocations: 0 / 490.8 MB, free: 9.203 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.902e-05/0.3378, allocations: 11.92 kB / 490.8 MB, free: 9.191 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.3379, allocations: 0 / 490.8 MB, free: 9.191 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001479/0.338, allocations: 152.2 kB / 490.9 MB, free: 9.039 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003394/0.3384, allocations: 397.5 kB / 491.3 MB, free: 8.598 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000389/0.3388, allocations: 0.5053 MB / 491.8 MB, free: 8.074 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.055e-05/0.3388, allocations: 0 / 491.8 MB, free: 8.074 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004224/0.3392, allocations: 482.8 kB / 492.3 MB, free: 7.562 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 1.042e-06/0.3392, allocations: 3.938 kB / 492.3 MB, free: 7.559 MB / 362.7 MB Notification: Performance of matching and sorting (n=49): time 0.0009613/0.3402, allocations: 0.9113 MB / 493.2 MB, free: 6.594 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.545e-05/0.3403, allocations: 164.4 kB / 493.4 MB, free: 6.402 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.159e-05/0.3404, allocations: 96.98 kB / 493.5 MB, free: 6.301 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.768e-05/0.3404, allocations: 29.7 kB / 493.5 MB, free: 6.266 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.739e-05/0.3404, allocations: 85.17 kB / 493.6 MB, free: 6.18 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.458e-05/0.3405, allocations: 90.72 kB / 493.7 MB, free: 6.09 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.499e-06/0.3405, allocations: 0 / 493.7 MB, free: 6.09 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.3406, allocations: 330.8 kB / 494 MB, free: 5.758 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.427e-05/0.3407, allocations: 80.41 kB / 494.1 MB, free: 5.676 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.55e-05/0.3408, allocations: 120.3 kB / 494.2 MB, free: 5.551 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001677/0.341, allocations: 204.2 kB / 494.4 MB, free: 5.34 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.341, allocations: 0 / 494.4 MB, free: 5.34 MB / 362.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0003407/0.3414, allocations: 376.1 kB / 494.8 MB, free: 4.953 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.072e-05/0.3415, allocations: 107.3 kB / 494.9 MB, free: 4.836 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.3415, allocations: 0 / 494.9 MB, free: 4.836 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.653e-05/0.3415, allocations: 7.984 kB / 494.9 MB, free: 4.828 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.38e-05/0.3415, allocations: 8.062 kB / 494.9 MB, free: 4.82 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.179e-06/0.3416, allocations: 0 / 494.9 MB, free: 4.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.014e-05/0.3416, allocations: 27.69 kB / 494.9 MB, free: 4.793 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.054e-05/0.3417, allocations: 8 kB / 494.9 MB, free: 4.785 MB / 362.7 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,$outputAlias_r64,$outputAlias_r128,$outputAlias_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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 3 * 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.000238/0.3419, allocations: 295.8 kB / 495.2 MB, free: 4.477 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.736e-05/0.3419, allocations: 35.75 kB / 495.2 MB, free: 4.441 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.298e-05/0.342, allocations: 5.562 kB / 495.2 MB, free: 4.43 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.023e-06/0.342, allocations: 3.938 kB / 495.3 MB, free: 4.426 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.342, allocations: 0 / 495.3 MB, free: 4.426 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.342, allocations: 8 kB / 495.3 MB, free: 4.418 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001363/0.3434, allocations: 1.448 MB / 496.7 MB, free: 2.906 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.479e-06/0.3434, allocations: 4 kB / 496.7 MB, free: 2.902 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.329e-05/0.3434, allocations: 4 kB / 496.7 MB, free: 2.898 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.646e-06/0.3434, allocations: 480 / 496.7 MB, free: 2.898 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.243e-05/0.3435, allocations: 23.97 kB / 496.7 MB, free: 2.875 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.498e-06/0.3435, allocations: 4 kB / 496.7 MB, free: 2.871 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.3435, allocations: 0 / 496.7 MB, free: 2.871 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001325/0.3448, allocations: 1.321 MB / 498.1 MB, free: 1.516 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.283e-05/0.3449, allocations: 108.8 kB / 498.2 MB, free: 1.391 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001291/0.3451, allocations: 67.92 kB / 498.2 MB, free: 1.324 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.928e-05/0.3451, allocations: 8 kB / 498.2 MB, free: 1.316 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.631e-05/0.3452, allocations: 15.98 kB / 498.3 MB, free: 1.301 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.833e-05/0.3453, allocations: 23.98 kB / 498.3 MB, free: 1.277 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.88e-05/0.3453, allocations: 91.27 kB / 498.4 MB, free: 1.188 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3453, allocations: 0 / 498.4 MB, free: 1.188 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004206/0.3457, allocations: 111.9 kB / 498.5 MB, free: 1.078 MB / 362.7 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 ($whenCondition1,rImpure,iImpure,$whenCondition2,$outputAlias_r64,$outputAlias_r128,$outputAlias_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]) * Number of discrete states: 46 ($outputAlias_r1024,$outputAlias_r128,$outputAlias_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,iImpure,rImpure,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 3 * 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.002427/0.3482, allocations: 2.416 MB / 0.4892 GB, free: 14.65 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001583/0.3498, allocations: 2.132 MB / 0.4912 GB, free: 12.5 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.3498, allocations: 3.938 kB / 0.4912 GB, free: 12.49 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001524/0.3513, allocations: 2.19 MB / 0.4934 GB, free: 10.28 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000179/0.3515, allocations: 14.23 kB / 0.4934 GB, free: 10.27 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001742/0.3533, allocations: 1.529 MB / 0.4949 GB, free: 8.664 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003178/0.3536, allocations: 0.7322 MB / 0.4956 GB, free: 7.906 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 1.778e-05/0.3536, allocations: 0 / 0.4956 GB, free: 7.906 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.431e-05/0.3537, allocations: 39.42 kB / 0.4956 GB, free: 7.867 MB / 378.7 MB Notification: Performance of SimCode: time 5.39e-06/0.3537, allocations: 0 / 0.4956 GB, free: 7.867 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01697/0.3707, allocations: 5.062 MB / 0.5006 GB, free: 2.926 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001989/0.3709, allocations: 209.8 kB / 0.5008 GB, free: 2.691 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.556/1.927, allocations: 0 / 0.5008 GB, free: 2.691 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat --tempDir=temp_Modelica_trunk_Modelica_Math_Random_Examples_GenerateRandomNumbers_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Math_Random_Examples_GenerateRandomNumbers.fmu > Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat does not exist to compare? outputFormat=mat