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.001187/0.001187, allocations: 114.9 kB / 17.75 MB, free: 5.312 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.001264/0.001264, allocations: 188.4 kB / 18.67 MB, free: 4.395 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.388/1.388, allocations: 222.9 MB / 242.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 55.91 kB / 352 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2675/0.2688, allocations: 49.44 MB / 401.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002479/0.2713, allocations: 1.232 MB / 402.6 MB, free: 7.629 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000938/0.2722, allocations: 464.6 kB / 403.1 MB, free: 7.176 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.076e-05/0.2723, allocations: 0 / 403.1 MB, free: 7.176 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.876e-05/0.2723, allocations: 7.938 kB / 403.1 MB, free: 7.168 MB / 318.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.0004493/0.2728, allocations: 71.73 kB / 403.2 MB, free: 7.098 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001423/0.273, allocations: 67.73 kB / 403.2 MB, free: 7.031 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001015/0.2731, allocations: 51.84 kB / 403.3 MB, free: 6.98 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.436e-05/0.2731, allocations: 7.984 kB / 403.3 MB, free: 6.973 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.683e-05/0.2732, allocations: 15.98 kB / 403.3 MB, free: 6.957 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.877e-05/0.2732, allocations: 23.91 kB / 403.3 MB, free: 6.934 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.245e-05/0.2732, allocations: 0 / 403.3 MB, free: 6.934 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002101/0.2734, allocations: 115.8 kB / 403.4 MB, free: 6.82 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.559e-05/0.2735, allocations: 35.86 kB / 403.5 MB, free: 6.785 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.871e-05/0.2736, allocations: 55.66 kB / 403.5 MB, free: 6.73 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002327/0.2738, allocations: 175.4 kB / 403.7 MB, free: 6.559 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.2738, allocations: 0 / 403.7 MB, free: 6.559 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.2738, allocations: 0 / 403.7 MB, free: 6.559 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.481e-06/0.2738, allocations: 0 / 403.7 MB, free: 6.559 MB / 318.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.0005934/0.2744, allocations: 0.553 MB / 404.3 MB, free: 5.941 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.666e-05/0.2745, allocations: 8.031 kB / 404.3 MB, free: 5.934 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001222/0.2746, allocations: 24.73 kB / 404.3 MB, free: 5.91 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001397/0.2748, allocations: 180 kB / 404.5 MB, free: 5.699 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.171e-05/0.2748, allocations: 4.375 kB / 404.5 MB, free: 5.695 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.667e-05/0.2748, allocations: 8.375 kB / 404.5 MB, free: 5.688 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002979/0.2751, allocations: 279.8 kB / 404.8 MB, free: 5.402 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.366e-06/0.2751, allocations: 192 / 404.8 MB, free: 5.402 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.413e-05/0.2751, allocations: 7.875 kB / 404.8 MB, free: 5.395 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.2751, allocations: 0 / 404.8 MB, free: 5.395 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001425/0.2753, allocations: 143.9 kB / 404.9 MB, free: 5.254 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001851/0.2755, allocations: 198.4 kB / 405.1 MB, free: 5.008 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003478/0.2758, allocations: 493.1 kB / 405.6 MB, free: 4.508 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003328/0.2762, allocations: 473.6 kB / 406 MB, free: 4.039 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.769e-06/0.2762, allocations: 0 / 406 MB, free: 4.039 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004399/0.2766, allocations: 488.7 kB / 406.5 MB, free: 3.516 MB / 318.1 MB Notification: Performance of pre-optimization done (n=46): time 8.91e-07/0.2766, allocations: 0 / 406.5 MB, free: 3.516 MB / 318.1 MB Notification: Performance of matching and sorting (n=46): time 0.0007866/0.2774, allocations: 0.727 MB / 407.2 MB, free: 2.77 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.141e-05/0.2775, allocations: 152.5 kB / 407.4 MB, free: 2.59 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.016e-05/0.2776, allocations: 97.86 kB / 407.5 MB, free: 2.484 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.533e-05/0.2776, allocations: 29.7 kB / 407.5 MB, free: 2.449 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.754e-05/0.2777, allocations: 89.12 kB / 407.6 MB, free: 2.355 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.727e-05/0.2778, allocations: 82.81 kB / 407.7 MB, free: 2.273 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.134e-05/0.2778, allocations: 41.77 kB / 407.7 MB, free: 2.227 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001093/0.2779, allocations: 330.8 kB / 408 MB, free: 1.895 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.41e-05/0.278, allocations: 80.34 kB / 408.1 MB, free: 1.816 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001094/0.2781, allocations: 110.2 kB / 408.2 MB, free: 1.703 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000311/0.2785, allocations: 413.4 kB / 408.6 MB, free: 1.27 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.2785, allocations: 4 kB / 408.6 MB, free: 1.266 MB / 318.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003533/0.2788, allocations: 353 kB / 409 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.665e-05/0.2789, allocations: 119.4 kB / 409.1 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.2789, allocations: 0 / 409.1 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.975e-05/0.279, allocations: 0 / 409.1 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.386e-06/0.279, allocations: 3.984 kB / 409.1 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.173e-06/0.279, allocations: 0 / 409.1 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.358e-05/0.279, allocations: 27.69 kB / 409.1 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.844e-05/0.2791, allocations: 8 kB / 409.1 MB, free: 0.7344 MB / 318.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 (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],r1024,r128,r64,$whenCondition2,iImpure,rImpure,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002559/0.2793, allocations: 297 kB / 409.4 MB, free: 432 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.934e-05/0.2794, allocations: 31.75 kB / 409.5 MB, free: 400 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.249e-05/0.2794, allocations: 5.562 kB / 409.5 MB, free: 396 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.2794, allocations: 4 kB / 409.5 MB, free: 392 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.2794, allocations: 0 / 409.5 MB, free: 392 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.2794, allocations: 4 kB / 409.5 MB, free: 388 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001729/0.2796, allocations: 229.4 kB / 409.7 MB, free: 108 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.2796, allocations: 0 / 409.7 MB, free: 108 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.2796, allocations: 0 / 409.7 MB, free: 108 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.598e-06/0.2796, allocations: 11.92 kB / 409.7 MB, free: 96 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.697e-05/0.2797, allocations: 16 kB / 409.7 MB, free: 80 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.2797, allocations: 0 / 409.7 MB, free: 80 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.2797, allocations: 0 / 409.7 MB, free: 80 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001136/0.2808, allocations: 1.232 MB / 411 MB, free: 14.81 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.524e-05/0.2809, allocations: 96.8 kB / 411.1 MB, free: 14.7 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001016/0.281, allocations: 71.88 kB / 411.1 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.267e-05/0.281, allocations: 8 kB / 411.1 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.073e-05/0.2811, allocations: 11.98 kB / 411.1 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.232e-05/0.2811, allocations: 19.94 kB / 411.2 MB, free: 14.59 MB / 334.1 MB Notification: Performance of sorting global known variables: time 3.702e-05/0.2812, allocations: 87.27 kB / 411.2 MB, free: 14.5 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2812, allocations: 0 / 411.2 MB, free: 14.5 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003177/0.2815, allocations: 84 kB / 411.3 MB, free: 14.42 MB / 334.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005522/0.282, allocations: 313.6 kB / 411.6 MB, free: 14.14 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001518/0.2836, allocations: 2.135 MB / 413.8 MB, free: 11.98 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.2836, allocations: 0 / 413.8 MB, free: 11.98 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001459/0.2851, allocations: 2.178 MB / 416 MB, free: 9.773 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002093/0.2853, allocations: 16 kB / 416 MB, free: 9.758 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006156/0.2859, allocations: 426.1 kB / 416.4 MB, free: 9.309 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002831/0.2862, allocations: 0.7282 MB / 417.1 MB, free: 8.551 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.415e-05/0.2862, allocations: 7.438 kB / 417.1 MB, free: 8.543 MB / 334.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2862, allocations: 0 / 417.1 MB, free: 8.543 MB / 334.1 MB Notification: Performance of Templates: time 0.004853/0.2911, allocations: 2.855 MB / 420 MB, free: 5.688 MB / 334.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Math/Random/Examples/GenerateRandomNumbers/GenerateRandomNumbers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches