Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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="mat",numberOfIntervals=5000,variableFilter="time|r1024|r128|r64",fileNamePrefix="Modelica_4.0.0_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_4.0.0_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.001104/0.001104, allocations: 93.88 kB / 16.3 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.001288/0.001288, allocations: 183.5 kB / 17.2 MB, free: 6.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.275/1.275, allocations: 223.2 MB / 241.1 MB, free: 5.375 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002258/0.0002258, allocations: 6.406 kB / 300.7 MB, free: 6.445 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08329/0.08353, allocations: 50.42 MB / 351.1 MB, free: 11.84 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.001083/0.08464, allocations: 0.9468 MB / 352.1 MB, free: 10.89 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007263/0.08538, allocations: 433.8 kB / 352.5 MB, free: 10.46 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.761e-05/0.08542, allocations: 0 / 352.5 MB, free: 10.46 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.835e-05/0.08546, allocations: 3.938 kB / 352.5 MB, free: 10.46 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function ‘Modelica.Math.Random.Utilities.initializeImpureRandom‘ contains a call to impure function ‘Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState‘. Notification: Performance of NFTyping.typeBindings: time 0.0003302/0.0858, allocations: 51.81 kB / 352.6 MB, free: 10.41 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001096/0.08592, allocations: 51.81 kB / 352.6 MB, free: 10.36 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 5.282e-05/0.08598, allocations: 23.97 kB / 352.6 MB, free: 10.34 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.043e-05/0.08603, allocations: 4 kB / 352.6 MB, free: 10.33 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.967e-05/0.08606, allocations: 23.91 kB / 352.7 MB, free: 10.31 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.812e-05/0.08611, allocations: 27.86 kB / 352.7 MB, free: 10.28 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.015e-05/0.08612, allocations: 0 / 352.7 MB, free: 10.28 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001552/0.08628, allocations: 83.86 kB / 352.8 MB, free: 10.2 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.622e-05/0.08633, allocations: 27.91 kB / 352.8 MB, free: 10.17 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.031e-05/0.08638, allocations: 49.58 kB / 352.8 MB, free: 10.12 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001492/0.08653, allocations: 119.8 kB / 353 MB, free: 10 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.064e-06/0.08654, allocations: 0 / 353 MB, free: 10 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.08655, allocations: 0 / 353 MB, free: 10 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.516e-06/0.08655, allocations: 0 / 353 MB, free: 10 MB / 286.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.0004414/0.087, allocations: 0.5529 MB / 353.5 MB, free: 9.387 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.058e-05/0.08704, allocations: 12.03 kB / 353.5 MB, free: 9.375 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001227/0.08717, allocations: 23.77 kB / 353.5 MB, free: 9.352 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001199/0.08729, allocations: 178.9 kB / 353.7 MB, free: 9.137 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.505e-05/0.08732, allocations: 4 kB / 353.7 MB, free: 9.133 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.288e-05/0.08733, allocations: 4 kB / 353.7 MB, free: 9.129 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002872/0.08763, allocations: 267.2 kB / 354 MB, free: 8.855 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.752e-06/0.08764, allocations: 0 / 354 MB, free: 8.855 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.446e-05/0.08766, allocations: 4 kB / 354 MB, free: 8.852 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.556e-06/0.08767, allocations: 0 / 354 MB, free: 8.852 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001357/0.08781, allocations: 151.8 kB / 354.1 MB, free: 8.703 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001791/0.088, allocations: 206.3 kB / 354.3 MB, free: 8.449 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003509/0.08835, allocations: 493.1 kB / 354.8 MB, free: 7.949 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.734e-06/0.08837, allocations: 4 kB / 354.8 MB, free: 7.945 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004078/0.08878, allocations: 488.6 kB / 355.3 MB, free: 7.422 MB / 286.1 MB Notification: Performance of pre-optimization done (n=46): time 1.062e-06/0.08879, allocations: 0 / 355.3 MB, free: 7.422 MB / 286.1 MB Notification: Performance of matching and sorting (n=46): time 0.0008049/0.0896, allocations: 0.8816 MB / 356.2 MB, free: 6.484 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.688e-05/0.08969, allocations: 160.5 kB / 356.3 MB, free: 6.297 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.649e-05/0.08976, allocations: 101.8 kB / 356.4 MB, free: 6.188 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.557e-05/0.08979, allocations: 33.7 kB / 356.5 MB, free: 6.148 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.348e-05/0.08982, allocations: 85.2 kB / 356.6 MB, free: 6.062 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.701e-05/0.08989, allocations: 86.75 kB / 356.6 MB, free: 5.977 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.078e-06/0.0899, allocations: 0 / 356.6 MB, free: 5.977 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.242e-05/0.08999, allocations: 326.8 kB / 357 MB, free: 5.648 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.868e-05/0.09008, allocations: 84.28 kB / 357 MB, free: 5.566 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.497e-05/0.09017, allocations: 110.4 kB / 357.2 MB, free: 5.453 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001483/0.09032, allocations: 196.4 kB / 357.3 MB, free: 5.25 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.09033, allocations: 0 / 357.3 MB, free: 5.25 MB / 286.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003042/0.09064, allocations: 352.7 kB / 357.7 MB, free: 4.887 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.445e-05/0.09074, allocations: 115.3 kB / 357.8 MB, free: 4.762 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.09075, allocations: 0 / 357.8 MB, free: 4.762 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.023e-05/0.09076, allocations: 0 / 357.8 MB, free: 4.762 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.92e-07/0.09077, allocations: 4 kB / 357.8 MB, free: 4.758 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.059e-06/0.09078, allocations: 3.938 kB / 357.8 MB, free: 4.754 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.241e-05/0.09084, allocations: 19.75 kB / 357.8 MB, free: 4.734 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.913e-05/0.09086, allocations: 15.95 kB / 357.8 MB, free: 4.719 MB / 286.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.0002397/0.09111, allocations: 291.8 kB / 358.1 MB, free: 4.414 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.514e-05/0.09115, allocations: 23.81 kB / 358.2 MB, free: 4.391 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.337e-05/0.09117, allocations: 9.547 kB / 358.2 MB, free: 4.383 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-06/0.09118, allocations: 4 kB / 358.2 MB, free: 4.379 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.09119, allocations: 0 / 358.2 MB, free: 4.379 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.0912, allocations: 7.938 kB / 358.2 MB, free: 4.371 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001752/0.09138, allocations: 237.3 kB / 358.4 MB, free: 4.09 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.09138, allocations: 0 / 358.4 MB, free: 4.09 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.82e-07/0.09139, allocations: 0 / 358.4 MB, free: 4.09 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.0914, allocations: 0 / 358.4 MB, free: 4.09 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.949e-05/0.09143, allocations: 19.98 kB / 358.4 MB, free: 4.07 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.09144, allocations: 0 / 358.4 MB, free: 4.07 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.09144, allocations: 4 kB / 358.4 MB, free: 4.066 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00105/0.0925, allocations: 1.242 MB / 359.7 MB, free: 2.785 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.092e-05/0.09255, allocations: 92.86 kB / 359.8 MB, free: 2.676 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.258e-05/0.09265, allocations: 67.94 kB / 359.8 MB, free: 2.609 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.478e-05/0.09271, allocations: 8 kB / 359.8 MB, free: 2.602 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.65e-05/0.09275, allocations: 11.98 kB / 359.8 MB, free: 2.59 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.467e-05/0.09278, allocations: 19.98 kB / 359.9 MB, free: 2.57 MB / 286.1 MB Notification: Performance of sorting global known variables: time 3.576e-05/0.09282, allocations: 91.58 kB / 360 MB, free: 2.48 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.09283, allocations: 4.031 kB / 360 MB, free: 2.477 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003402/0.09317, allocations: 87.95 kB / 360 MB, free: 2.391 MB / 286.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.0004833/0.09366, allocations: 310.4 kB / 360.4 MB, free: 2.113 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001453/0.09513, allocations: 2.123 MB / 362.5 MB, free: 15.96 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.09514, allocations: 3.938 kB / 362.5 MB, free: 15.96 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001446/0.09659, allocations: 2.182 MB / 364.7 MB, free: 13.75 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001363/0.09673, allocations: 16.25 kB / 364.7 MB, free: 13.73 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000593/0.09733, allocations: 399.4 kB / 365.1 MB, free: 13.31 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002585/0.09761, allocations: 0.7325 MB / 365.8 MB, free: 12.55 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.154e-05/0.09762, allocations: 3.938 kB / 365.8 MB, free: 12.54 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.644e-05/0.09765, allocations: 11.44 kB / 365.8 MB, free: 12.53 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.09765, allocations: 0 / 365.8 MB, free: 12.53 MB / 302.1 MB Notification: Performance of Templates: time 0.005617/0.1033, allocations: 2.752 MB / 368.6 MB, free: 9.789 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.makefile (rm -f Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & ./Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Math/Random/Examples/GenerateRandomNumbers/GenerateRandomNumbers.csv","../files/Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches