Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Math.Random.Examples.GenerateRandomNumbers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Math.Random.Examples.GenerateRandomNumbers,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Math.Random.Examples.GenerateRandomNumbers") translateModel(Modelica.Math.Random.Examples.GenerateRandomNumbers,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Math.Random.Examples.GenerateRandomNumbers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001119/0.001119, allocations: 87.81 kB / 16.32 MB, free: 6.457 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001406/0.001406, allocations: 187 kB / 17.21 MB, free: 6.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.702/1.702, allocations: 205.4 MB / 223.4 MB, free: 5.559 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005151/0.0005153, allocations: 12 kB / 280.1 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3312/0.3318, allocations: 47.58 MB / 327.7 MB, free: 1.426 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.001234/0.333, allocations: 0.9559 MB / 328.7 MB, free: 0.6523 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001002/0.3341, allocations: 427.5 kB / 329.1 MB, free: 348 kB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.97e-05/0.3341, allocations: 0 / 329.1 MB, free: 348 kB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 3.733e-05/0.3342, allocations: 0 / 329.1 MB, free: 348 kB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004989/0.3347, allocations: 55.28 kB / 329.2 MB, free: 312 kB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001409/0.3348, allocations: 55.92 kB / 329.2 MB, free: 272 kB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 7.841e-05/0.3349, allocations: 37.14 kB / 329.2 MB, free: 252 kB / 254.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.332e-05/0.335, allocations: 1.344 kB / 329.2 MB, free: 252 kB / 254.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.697e-05/0.3351, allocations: 16.64 kB / 329.3 MB, free: 244 kB / 254.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.708e-05/0.3351, allocations: 27.44 kB / 329.3 MB, free: 224 kB / 254.1 MB Notification: Performance of NFPackage.collectConstants: time 1.803e-05/0.3352, allocations: 1.625 kB / 329.3 MB, free: 224 kB / 254.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002789/0.3354, allocations: 107.9 kB / 329.4 MB, free: 168 kB / 254.1 MB Notification: Performance of NFScalarize.scalarize: time 7.208e-05/0.3355, allocations: 30.33 kB / 329.4 MB, free: 156 kB / 254.1 MB Notification: Performance of NFVerifyModel.verify: time 5.86e-05/0.3356, allocations: 45.14 kB / 329.5 MB, free: 116 kB / 254.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002192/0.3358, allocations: 121.8 kB / 329.6 MB, free: 48 kB / 254.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.3358, allocations: 0 / 329.6 MB, free: 48 kB / 254.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3358, allocations: 0 / 329.6 MB, free: 48 kB / 254.1 MB Notification: Performance of Transformations before backend: time 6.553e-06/0.3359, allocations: 0 / 329.6 MB, free: 48 kB / 254.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.0009287/0.3368, allocations: 0.5567 MB / 330.1 MB, free: 15.52 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.397e-05/0.3369, allocations: 10.22 kB / 330.2 MB, free: 15.52 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001808/0.337, allocations: 17.84 kB / 330.2 MB, free: 15.52 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002522/0.3373, allocations: 175.2 kB / 330.3 MB, free: 15.31 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.37e-05/0.3373, allocations: 2.656 kB / 330.3 MB, free: 15.31 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.131e-05/0.3374, allocations: 4.625 kB / 330.4 MB, free: 15.31 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004296/0.3378, allocations: 281.2 kB / 330.6 MB, free: 15.16 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.477e-05/0.3378, allocations: 3.938 kB / 330.6 MB, free: 15.16 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.796e-05/0.3379, allocations: 2.5 kB / 330.6 MB, free: 15.16 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.486e-06/0.3379, allocations: 5.469 kB / 330.6 MB, free: 15.16 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002468/0.3381, allocations: 145.7 kB / 330.8 MB, free: 15.1 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002869/0.3384, allocations: 194.5 kB / 331 MB, free: 14.88 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006334/0.3391, allocations: 492.2 kB / 331.5 MB, free: 14.52 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004877/0.3396, allocations: 473 kB / 331.9 MB, free: 14.19 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.292e-05/0.3396, allocations: 5.062 kB / 331.9 MB, free: 14.19 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006623/0.3403, allocations: 485 kB / 332.4 MB, free: 13.87 MB / 270.1 MB Notification: Performance of pre-optimization done (n=46): time 1.132e-06/0.3403, allocations: 3.938 kB / 332.4 MB, free: 13.86 MB / 270.1 MB Notification: Performance of matching and sorting (n=46): time 0.001086/0.3414, allocations: 0.7004 MB / 333.1 MB, free: 13.57 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001105/0.3415, allocations: 162.4 kB / 333.3 MB, free: 13.4 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.966e-05/0.3416, allocations: 111.1 kB / 333.4 MB, free: 13.29 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 1.575e-05/0.3416, allocations: 26.77 kB / 333.4 MB, free: 13.25 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.885e-05/0.3416, allocations: 82.14 kB / 333.5 MB, free: 13.17 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.364e-05/0.3417, allocations: 83.16 kB / 333.5 MB, free: 13.11 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.759e-06/0.3417, allocations: 1 kB / 333.6 MB, free: 13.11 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.3419, allocations: 332.1 kB / 333.9 MB, free: 12.78 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001644/0.3421, allocations: 80.75 kB / 334 MB, free: 12.75 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001134/0.3422, allocations: 108.4 kB / 334.1 MB, free: 12.69 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002085/0.3424, allocations: 207.1 kB / 334.3 MB, free: 12.56 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.3424, allocations: 1.156 kB / 334.3 MB, free: 12.56 MB / 270.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006251/0.3431, allocations: 346.6 kB / 334.6 MB, free: 12.3 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001148/0.3432, allocations: 111.3 kB / 334.7 MB, free: 12.18 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.3432, allocations: 0 / 334.7 MB, free: 12.18 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.373e-05/0.3432, allocations: 0 / 334.7 MB, free: 12.18 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.442e-06/0.3432, allocations: 4 kB / 334.7 MB, free: 12.17 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.3432, allocations: 0 / 334.7 MB, free: 12.17 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.706e-05/0.3433, allocations: 27.69 kB / 334.7 MB, free: 12.14 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.41e-05/0.3433, allocations: 15.98 kB / 334.8 MB, free: 12.13 MB / 270.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 () * Number of clocked 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.0002875/0.3436, allocations: 291.8 kB / 335 MB, free: 11.82 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.134e-05/0.3437, allocations: 23.81 kB / 335.1 MB, free: 11.8 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.858e-05/0.3437, allocations: 13.84 kB / 335.1 MB, free: 11.79 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.115e-06/0.3437, allocations: 4 kB / 335.1 MB, free: 11.79 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.69e-06/0.3437, allocations: 0 / 335.1 MB, free: 11.79 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/0.3437, allocations: 3.984 kB / 335.1 MB, free: 11.78 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002314/0.344, allocations: 237.3 kB / 335.3 MB, free: 11.5 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.344, allocations: 0 / 335.3 MB, free: 11.5 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.222e-06/0.344, allocations: 0 / 335.3 MB, free: 11.5 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.504e-06/0.344, allocations: 0 / 335.3 MB, free: 11.5 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.381e-05/0.344, allocations: 19.98 kB / 335.3 MB, free: 11.48 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.673e-06/0.3441, allocations: 11.83 kB / 335.3 MB, free: 11.47 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.3441, allocations: 0 / 335.3 MB, free: 11.47 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001417/0.3455, allocations: 1.225 MB / 336.6 MB, free: 10.21 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.407e-05/0.3456, allocations: 96.84 kB / 336.7 MB, free: 10.1 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001041/0.3457, allocations: 63.95 kB / 336.7 MB, free: 10.04 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.145e-05/0.3457, allocations: 8 kB / 336.7 MB, free: 10.03 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.898e-05/0.3458, allocations: 15.94 kB / 336.8 MB, free: 10.01 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.782e-05/0.3458, allocations: 23.97 kB / 336.8 MB, free: 9.988 MB / 270.1 MB Notification: Performance of sorting global known variables: time 4.789e-05/0.3459, allocations: 87.31 kB / 336.9 MB, free: 9.902 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3459, allocations: 0 / 336.9 MB, free: 9.902 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003558/0.3463, allocations: 87.98 kB / 336.9 MB, free: 9.816 MB / 270.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) * Number of clocked states: 0 () * 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.0005841/0.3469, allocations: 305.1 kB / 337.2 MB, free: 9.512 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.001724/0.3486, allocations: 2.123 MB / 339.4 MB, free: 7.363 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3486, allocations: 0 / 339.4 MB, free: 7.363 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001669/0.3503, allocations: 2.186 MB / 341.6 MB, free: 5.152 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002027/0.3505, allocations: 20.62 kB / 341.6 MB, free: 5.133 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006412/0.3511, allocations: 411.3 kB / 342 MB, free: 4.699 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003924/0.3516, allocations: 0.7208 MB / 342.7 MB, free: 3.945 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 1.106e-05/0.3516, allocations: 0 / 342.7 MB, free: 3.945 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.609e-05/0.3516, allocations: 11.42 kB / 342.7 MB, free: 3.934 MB / 270.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3516, allocations: 0 / 342.7 MB, free: 3.934 MB / 270.1 MB Notification: Performance of Templates: time 0.005814/0.3574, allocations: 2.765 MB / 345.5 MB, free: 1.164 MB / 270.1 MB make -j1 -f Modelica_3.2.2_Modelica.Math.Random.Examples.GenerateRandomNumbers.makefile (rm -f Modelica_3.2.2_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_3.2.2_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_3.2.2_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & ./Modelica_3.2.2_Modelica.Math.Random.Examples.GenerateRandomNumbers -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1)