Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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="mat",numberOfIntervals=5000,variableFilter="time|r1024|r128|r64",fileNamePrefix="Modelica_3.2.3_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_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.001054/0.001055, allocations: 97.98 kB / 17.58 MB, free: 5.418 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.00111/0.00111, allocations: 192 kB / 18.51 MB, free: 4.508 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.35/1.35, allocations: 205.1 MB / 224.4 MB, free: 12.31 MB / 190.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.001254/0.001254, allocations: 55.92 kB / 280.6 MB, free: 3.18 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09118/0.09245, allocations: 46.63 MB / 327.3 MB, free: 4.48 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002518/0.095, allocations: 1.225 MB / 328.5 MB, free: 3.234 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009134/0.09594, allocations: 462.3 kB / 329 MB, free: 2.781 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.588e-05/0.09598, allocations: 4 kB / 329 MB, free: 2.777 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 2.712e-05/0.09604, allocations: 3.938 kB / 329 MB, free: 2.773 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003983/0.09644, allocations: 67.73 kB / 329 MB, free: 2.707 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001339/0.09659, allocations: 75.75 kB / 329.1 MB, free: 2.633 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 8.355e-05/0.09668, allocations: 47.89 kB / 329.1 MB, free: 2.586 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.651e-05/0.09672, allocations: 0 / 329.1 MB, free: 2.586 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.887e-05/0.09676, allocations: 19.92 kB / 329.2 MB, free: 2.566 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.246e-05/0.0968, allocations: 23.91 kB / 329.2 MB, free: 2.543 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.307e-05/0.09681, allocations: 0 / 329.2 MB, free: 2.543 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001951/0.09701, allocations: 119.8 kB / 329.3 MB, free: 2.426 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.098e-05/0.09707, allocations: 35.84 kB / 329.3 MB, free: 2.391 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 5.109e-05/0.09713, allocations: 47.67 kB / 329.4 MB, free: 2.344 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002087/0.09734, allocations: 167.5 kB / 329.6 MB, free: 2.18 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.09736, allocations: 0 / 329.6 MB, free: 2.18 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.09736, allocations: 4 kB / 329.6 MB, free: 2.176 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.59e-06/0.09737, allocations: 0 / 329.6 MB, free: 2.176 MB / 270.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.0005005/0.09788, allocations: 0.5726 MB / 330.1 MB, free: 1.539 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/0.09792, allocations: 12.03 kB / 330.1 MB, free: 1.527 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001215/0.09805, allocations: 24.75 kB / 330.2 MB, free: 1.504 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001182/0.09817, allocations: 180.2 kB / 330.3 MB, free: 1.289 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.208e-05/0.09819, allocations: 384 / 330.3 MB, free: 1.289 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.207e-05/0.09821, allocations: 4.375 kB / 330.3 MB, free: 1.285 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002735/0.09849, allocations: 283.7 kB / 330.6 MB, free: 0.9961 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.231e-06/0.0985, allocations: 192 / 330.6 MB, free: 0.9961 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.299e-05/0.09852, allocations: 7.938 kB / 330.6 MB, free: 0.9883 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.666e-06/0.09853, allocations: 3.938 kB / 330.6 MB, free: 0.9844 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001288/0.09866, allocations: 147.7 kB / 330.8 MB, free: 0.8398 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000161/0.09883, allocations: 194.3 kB / 331 MB, free: 0.5977 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003331/0.09917, allocations: 497.1 kB / 331.5 MB, free: 96 kB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003058/0.09949, allocations: 473.8 kB / 331.9 MB, free: 15.62 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.213e-06/0.0995, allocations: 3.938 kB / 331.9 MB, free: 15.62 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003711/0.09988, allocations: 488.6 kB / 332.4 MB, free: 15.09 MB / 286.1 MB Notification: Performance of pre-optimization done (n=46): time 1.082e-06/0.09989, allocations: 0 / 332.4 MB, free: 15.09 MB / 286.1 MB Notification: Performance of matching and sorting (n=46): time 0.000737/0.1006, allocations: 0.7115 MB / 333.1 MB, free: 14.36 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.362e-05/0.1007, allocations: 160.5 kB / 333.3 MB, free: 14.18 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.727e-05/0.1008, allocations: 101.9 kB / 333.4 MB, free: 14.07 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.013e-05/0.1008, allocations: 25.7 kB / 333.4 MB, free: 14.04 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.164e-05/0.1009, allocations: 81.14 kB / 333.5 MB, free: 13.95 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.667e-05/0.1009, allocations: 82.73 kB / 333.5 MB, free: 13.88 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.8e-05/0.101, allocations: 45.69 kB / 333.6 MB, free: 13.82 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.1011, allocations: 326.9 kB / 333.9 MB, free: 13.5 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.229e-05/0.1012, allocations: 84.34 kB / 334 MB, free: 13.41 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9e-05/0.1013, allocations: 110.4 kB / 334.1 MB, free: 13.3 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002875/0.1016, allocations: 421.7 kB / 334.5 MB, free: 12.86 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.1016, allocations: 0 / 334.5 MB, free: 12.86 MB / 286.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003199/0.1019, allocations: 344.8 kB / 334.9 MB, free: 12.5 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.029e-05/0.102, allocations: 111.3 kB / 335 MB, free: 12.38 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.102, allocations: 7.922 kB / 335 MB, free: 12.38 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.242e-05/0.102, allocations: 96 / 335 MB, free: 12.38 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.51e-07/0.102, allocations: 4 kB / 335 MB, free: 12.37 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/0.1021, allocations: 4 kB / 335 MB, free: 12.37 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.169e-05/0.1021, allocations: 23.69 kB / 335 MB, free: 12.34 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.814e-05/0.1021, allocations: 12 kB / 335 MB, free: 12.33 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 (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.0002354/0.1024, allocations: 295.7 kB / 335.3 MB, free: 12.02 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.677e-05/0.1024, allocations: 27.75 kB / 335.3 MB, free: 11.99 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.205e-05/0.1024, allocations: 9.547 kB / 335.3 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.1025, allocations: 4 kB / 335.3 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.1025, allocations: 3.938 kB / 335.3 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.964e-06/0.1025, allocations: 0 / 335.3 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001689/0.1026, allocations: 233.3 kB / 335.6 MB, free: 11.7 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.1027, allocations: 4 kB / 335.6 MB, free: 11.7 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.61e-07/0.1027, allocations: 4 kB / 335.6 MB, free: 11.69 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.1027, allocations: 3.938 kB / 335.6 MB, free: 11.69 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.409e-05/0.1027, allocations: 19.98 kB / 335.6 MB, free: 11.67 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.123e-06/0.1027, allocations: 0 / 335.6 MB, free: 11.67 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.1027, allocations: 0 / 335.6 MB, free: 11.67 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001127/0.1038, allocations: 1.236 MB / 336.8 MB, free: 10.4 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.535e-05/0.1039, allocations: 96.8 kB / 336.9 MB, free: 10.29 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.072e-05/0.104, allocations: 75.91 kB / 337 MB, free: 10.21 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.132e-05/0.1041, allocations: 12 kB / 337 MB, free: 10.2 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.393e-05/0.1041, allocations: 8 kB / 337 MB, free: 10.19 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.445e-05/0.1042, allocations: 19.98 kB / 337 MB, free: 10.17 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.316e-05/0.1042, allocations: 75.28 kB / 337.1 MB, free: 10.1 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1042, allocations: 0 / 337.1 MB, free: 10.1 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003041/0.1045, allocations: 91.98 kB / 337.2 MB, free: 10.01 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 (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.000489/0.105, allocations: 303.6 kB / 337.5 MB, free: 9.715 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001514/0.1066, allocations: 2.135 MB / 339.6 MB, free: 7.555 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1066, allocations: 0 / 339.6 MB, free: 7.555 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001401/0.108, allocations: 2.19 MB / 341.8 MB, free: 5.34 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000193/0.1082, allocations: 20 kB / 341.8 MB, free: 5.32 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005755/0.1088, allocations: 388.6 kB / 342.2 MB, free: 4.906 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002963/0.1091, allocations: 0.7245 MB / 343 MB, free: 4.156 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 1.479e-05/0.1091, allocations: 7.938 kB / 343 MB, free: 4.148 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.649e-05/0.1091, allocations: 7.438 kB / 343 MB, free: 4.141 MB / 286.1 MB Notification: Performance of SimCode: time 1.292e-06/0.1091, allocations: 0 / 343 MB, free: 4.141 MB / 286.1 MB Notification: Performance of Templates: time 0.006408/0.1155, allocations: 3.003 MB / 346 MB, free: 1.129 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.makefile (rm -f Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & ./Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches