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: translateModel(Modelica.Math.Random.Examples.GenerateRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|r1024|r128|r64",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers") translateModel(Modelica.Math.Random.Examples.GenerateRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|r1024|r128|r64",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001456/0.001456, allocations: 175.1 kB / 16.72 MB, free: 5.055 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.579/1.579, allocations: 205.4 MB / 222.9 MB, free: 8.941 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007418/0.0007418, allocations: 86.36 kB / 271.2 MB, free: 8.234 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003496/0.0003497, allocations: 12 kB / 327.5 MB, free: 15.88 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2472/0.2476, allocations: 47.56 MB / 375.1 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.001319/0.2489, allocations: 0.9579 MB / 376 MB, free: 44.64 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008458/0.2498, allocations: 423.3 kB / 376.5 MB, free: 44.33 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.207e-05/0.2499, allocations: 0 / 376.5 MB, free: 44.33 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.893e-05/0.2499, allocations: 0 / 376.5 MB, free: 44.33 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000477/0.2504, allocations: 57.62 kB / 376.5 MB, free: 44.29 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001756/0.2506, allocations: 49.08 kB / 376.6 MB, free: 44.26 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.847e-05/0.2507, allocations: 36.95 kB / 376.6 MB, free: 44.24 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.274e-05/0.2508, allocations: 2.188 kB / 376.6 MB, free: 44.24 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.275e-05/0.2508, allocations: 20.36 kB / 376.6 MB, free: 44.23 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.533e-05/0.2509, allocations: 15.55 kB / 376.6 MB, free: 44.22 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.533e-05/0.2509, allocations: 2 kB / 376.6 MB, free: 44.22 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002595/0.2512, allocations: 112.3 kB / 376.7 MB, free: 44.16 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.785e-05/0.2512, allocations: 41.86 kB / 376.8 MB, free: 44.14 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.968e-05/0.2513, allocations: 68.45 kB / 376.8 MB, free: 44.08 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002266/0.2515, allocations: 116.9 kB / 377 MB, free: 44.02 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.2515, allocations: 9 kB / 377 MB, free: 44.01 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2516, allocations: 3.938 kB / 377 MB, free: 44.01 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.49e-06/0.2516, allocations: 0 / 377 MB, free: 44.01 MB / 298.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.00054/0.2521, allocations: 0.5478 MB / 377.5 MB, free: 43.49 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.414e-05/0.2522, allocations: 10.41 kB / 377.5 MB, free: 43.49 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001711/0.2523, allocations: 18.47 kB / 377.6 MB, free: 43.48 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001349/0.2525, allocations: 189.5 kB / 377.7 MB, free: 43.26 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.948e-05/0.2525, allocations: 4.031 kB / 377.7 MB, free: 43.26 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.166e-05/0.2525, allocations: 4.5 kB / 377.7 MB, free: 43.26 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003432/0.2529, allocations: 278 kB / 378 MB, free: 43.12 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-06/0.2529, allocations: 1.25 kB / 378 MB, free: 43.12 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.639e-05/0.2529, allocations: 6.781 kB / 378 MB, free: 43.12 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-06/0.2529, allocations: 0 / 378 MB, free: 43.12 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001785/0.2531, allocations: 154.3 kB / 378.2 MB, free: 43.05 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001733/0.2533, allocations: 197.6 kB / 378.4 MB, free: 42.83 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004204/0.2537, allocations: 497.8 kB / 378.9 MB, free: 42.46 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003138/0.2541, allocations: 468 kB / 379.3 MB, free: 42.14 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.13e-05/0.2541, allocations: 0.6875 kB / 379.3 MB, free: 42.14 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000446/0.2545, allocations: 489.6 kB / 379.8 MB, free: 41.82 MB / 298.7 MB Notification: Performance of pre-optimization done (n=46): time 1.273e-06/0.2545, allocations: 0 / 379.8 MB, free: 41.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=46): time 0.0008756/0.2554, allocations: 0.7086 MB / 380.5 MB, free: 41.51 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.762e-05/0.2555, allocations: 163 kB / 380.7 MB, free: 41.34 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.348e-05/0.2556, allocations: 98.86 kB / 380.8 MB, free: 41.24 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.094e-05/0.2556, allocations: 27.11 kB / 380.8 MB, free: 41.21 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.573e-05/0.2556, allocations: 94.62 kB / 380.9 MB, free: 41.12 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.454e-05/0.2557, allocations: 81.97 kB / 381 MB, free: 41.05 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.01e-06/0.2557, allocations: 5.25 kB / 381 MB, free: 41.05 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.669e-05/0.2558, allocations: 328.5 kB / 381.3 MB, free: 40.72 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.664e-05/0.2559, allocations: 80.03 kB / 381.4 MB, free: 40.69 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.268e-05/0.256, allocations: 105 kB / 381.5 MB, free: 40.64 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003738/0.2564, allocations: 415.9 kB / 381.9 MB, free: 40.37 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.2564, allocations: 0 / 381.9 MB, free: 40.37 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003675/0.2567, allocations: 350.3 kB / 382.2 MB, free: 40.17 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.268e-05/0.2568, allocations: 111.3 kB / 382.3 MB, free: 40.08 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-06/0.2568, allocations: 0 / 382.3 MB, free: 40.08 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.879e-05/0.2569, allocations: 1.125 kB / 382.3 MB, free: 40.08 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.114e-06/0.2569, allocations: 1.062 kB / 382.3 MB, free: 40.08 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.711e-06/0.2569, allocations: 0 / 382.3 MB, free: 40.08 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.878e-05/0.257, allocations: 26.59 kB / 382.3 MB, free: 40.06 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.354e-05/0.257, allocations: 11.8 kB / 382.4 MB, free: 40.06 MB / 298.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,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.0002427/0.2572, allocations: 293.7 kB / 382.6 MB, free: 39.83 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.547e-05/0.2573, allocations: 29.59 kB / 382.7 MB, free: 39.82 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.077e-05/0.2573, allocations: 5.562 kB / 382.7 MB, free: 39.81 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.524e-06/0.2573, allocations: 5.609 kB / 382.7 MB, free: 39.81 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.301e-06/0.2573, allocations: 5.375 kB / 382.7 MB, free: 39.8 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.2573, allocations: 3.984 kB / 382.7 MB, free: 39.8 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001467/0.2575, allocations: 231.2 kB / 382.9 MB, free: 39.56 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.2575, allocations: 5.297 kB / 382.9 MB, free: 39.55 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.705e-06/0.2575, allocations: 5.125 kB / 382.9 MB, free: 39.55 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.886e-06/0.2575, allocations: 3.938 kB / 382.9 MB, free: 39.55 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.241e-05/0.2576, allocations: 19.77 kB / 382.9 MB, free: 39.54 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.444e-06/0.2576, allocations: 1.156 kB / 383 MB, free: 39.54 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.2576, allocations: 0 / 383 MB, free: 39.54 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001183/0.2588, allocations: 1.226 MB / 384.2 MB, free: 38.98 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.385e-05/0.2588, allocations: 102 kB / 384.3 MB, free: 38.87 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001053/0.2589, allocations: 66.58 kB / 384.3 MB, free: 38.86 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.006e-05/0.259, allocations: 8.969 kB / 384.4 MB, free: 38.86 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.677e-05/0.259, allocations: 12.98 kB / 384.4 MB, free: 38.85 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.823e-05/0.2591, allocations: 19.3 kB / 384.4 MB, free: 38.84 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.518e-05/0.2591, allocations: 82.94 kB / 384.5 MB, free: 38.76 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.81e-07/0.2591, allocations: 32 / 384.5 MB, free: 38.76 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003541/0.2595, allocations: 95.77 kB / 384.6 MB, free: 38.73 MB / 298.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 ($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.0004992/0.26, allocations: 298.6 kB / 384.8 MB, free: 38.46 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001153/0.2611, allocations: 2.127 MB / 387 MB, free: 36.31 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.2612, allocations: 0 / 387 MB, free: 36.31 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009791/0.2621, allocations: 2.182 MB / 389.2 MB, free: 34.1 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000194/0.2623, allocations: 29.84 kB / 389.2 MB, free: 34.07 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000492/0.2628, allocations: 441.5 kB / 389.6 MB, free: 33.61 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000132/0.263, allocations: 0.7247 MB / 390.3 MB, free: 32.86 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.074e-05/0.263, allocations: 7.438 kB / 390.3 MB, free: 32.85 MB / 298.7 MB Notification: Performance of SimCode: time 3.41e-07/0.263, allocations: 0 / 390.3 MB, free: 32.85 MB / 298.7 MB Notification: Performance of Templates: time 0.004202/0.2672, allocations: 2.838 MB / 393.2 MB, free: 30.01 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.makefile (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 & ./Modelica_3.2.3_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Math/Random/Examples/GenerateRandomNumbers/GenerateRandomNumbers.csv","../files/Modelica_3.2.3_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches