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: "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_4_0_0_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_4_0_0_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0006618/0.0006618, allocations: 91.8 kB / 16.65 MB, free: 6.586 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.0007418/0.0007418, allocations: 183.7 kB / 17.56 MB, free: 6.203 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.2/1.2, allocations: 223.3 MB / 241.6 MB, free: 14.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002171/0.0002171, allocations: 4 kB / 301.5 MB, free: 5.785 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08103/0.08126, allocations: 50.41 MB / 351.9 MB, free: 3.371 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.001037/0.08234, allocations: 0.9585 MB / 352.9 MB, free: 2.402 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008056/0.08316, allocations: 463.3 kB / 353.3 MB, free: 1.949 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.773e-05/0.08319, allocations: 0 / 353.3 MB, free: 1.949 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.428e-05/0.08322, allocations: 0 / 353.3 MB, free: 1.949 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.0003304/0.08356, allocations: 59.88 kB / 353.4 MB, free: 1.891 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001107/0.08368, allocations: 55.81 kB / 353.5 MB, free: 1.836 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 6.019e-05/0.08375, allocations: 39.91 kB / 353.5 MB, free: 1.797 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.364e-05/0.08379, allocations: 0 / 353.5 MB, free: 1.797 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.945e-05/0.08382, allocations: 19.92 kB / 353.5 MB, free: 1.777 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.393e-05/0.08386, allocations: 19.91 kB / 353.5 MB, free: 1.758 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.173e-05/0.08388, allocations: 4 kB / 353.5 MB, free: 1.754 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001862/0.08407, allocations: 123.8 kB / 353.7 MB, free: 1.633 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.134e-05/0.08412, allocations: 35.84 kB / 353.7 MB, free: 1.598 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.817e-05/0.0842, allocations: 77.38 kB / 353.8 MB, free: 1.516 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000203/0.0844, allocations: 171.4 kB / 353.9 MB, free: 1.348 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.08442, allocations: 3.938 kB / 353.9 MB, free: 1.344 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.08442, allocations: 0 / 353.9 MB, free: 1.344 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.196e-06/0.08443, allocations: 0 / 353.9 MB, free: 1.344 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.0004738/0.08491, allocations: 0.5493 MB / 354.5 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/0.08495, allocations: 12.03 kB / 354.5 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.505e-05/0.08503, allocations: 62.66 kB / 354.6 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001044/0.08515, allocations: 28.64 kB / 354.6 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001151/0.08527, allocations: 172.3 kB / 354.8 MB, free: 424 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.447e-05/0.0853, allocations: 4.375 kB / 354.8 MB, free: 420 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.143e-05/0.08533, allocations: 12.25 kB / 354.8 MB, free: 408 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002794/0.08563, allocations: 278.9 kB / 355.1 MB, free: 116 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.08564, allocations: 3.938 kB / 355.1 MB, free: 112 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.347e-05/0.08566, allocations: 7.984 kB / 355.1 MB, free: 104 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.048e-06/0.08567, allocations: 0 / 355.1 MB, free: 104 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001481/0.08582, allocations: 148.3 kB / 355.2 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002793/0.08611, allocations: 377.5 kB / 355.6 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003652/0.08649, allocations: 0.5092 MB / 356.1 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003198/0.08681, allocations: 486.1 kB / 356.6 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.201e-06/0.08683, allocations: 4 kB / 356.6 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003943/0.08723, allocations: 482.8 kB / 357 MB, free: 14 MB / 302.1 MB Notification: Performance of pre-optimization done (n=49): time 1.082e-06/0.08724, allocations: 0 / 357 MB, free: 14 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.0007355/0.08798, allocations: 0.737 MB / 357.8 MB, free: 13.25 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.884e-05/0.08807, allocations: 160.5 kB / 357.9 MB, free: 13.06 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.6e-05/0.08814, allocations: 105.9 kB / 358 MB, free: 12.95 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.676e-05/0.08817, allocations: 29.7 kB / 358.1 MB, free: 12.91 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.957e-05/0.0882, allocations: 85.08 kB / 358.1 MB, free: 12.83 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.517e-05/0.08827, allocations: 98.56 kB / 358.2 MB, free: 12.73 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.615e-05/0.08832, allocations: 37.69 kB / 358.3 MB, free: 12.69 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001051/0.08843, allocations: 330.8 kB / 358.6 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.48e-05/0.08851, allocations: 80.41 kB / 358.7 MB, free: 12.28 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.592e-05/0.08861, allocations: 116.3 kB / 358.8 MB, free: 12.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003225/0.08894, allocations: 436.9 kB / 359.2 MB, free: 11.7 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.08896, allocations: 3.938 kB / 359.2 MB, free: 11.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0003338/0.0893, allocations: 364.8 kB / 359.6 MB, free: 11.32 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.677e-05/0.08938, allocations: 111.3 kB / 359.7 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.08939, allocations: 0 / 359.7 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.208e-05/0.08941, allocations: 11.97 kB / 359.7 MB, free: 11.19 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.38e-05/0.08947, allocations: 8.062 kB / 359.7 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.558e-06/0.08948, allocations: 0 / 359.7 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.186e-05/0.08954, allocations: 23.75 kB / 359.7 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.704e-05/0.08956, allocations: 16.03 kB / 359.7 MB, free: 11.14 MB / 302.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],$outputAlias_r1024,$outputAlias_r128,$outputAlias_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 (5): * Single equations (assignments): 3 * 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.0002367/0.0898, allocations: 295.7 kB / 360 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.714e-05/0.08985, allocations: 39.69 kB / 360.1 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.548e-05/0.08987, allocations: 5.562 kB / 360.1 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-06/0.08988, allocations: 0 / 360.1 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.08989, allocations: 4 kB / 360.1 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.08989, allocations: 0 / 360.1 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001162/0.09106, allocations: 1.44 MB / 361.5 MB, free: 9.285 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.09107, allocations: 4 kB / 361.5 MB, free: 9.281 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.811e-05/0.0911, allocations: 4 kB / 361.5 MB, free: 9.277 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.075e-06/0.0911, allocations: 0 / 361.5 MB, free: 9.277 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.382e-05/0.09114, allocations: 27.92 kB / 361.6 MB, free: 9.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.09115, allocations: 0 / 361.6 MB, free: 9.25 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.09115, allocations: 0 / 361.6 MB, free: 9.25 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001083/0.09224, allocations: 1.307 MB / 362.9 MB, free: 7.906 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.097e-05/0.0923, allocations: 96.86 kB / 363 MB, free: 7.793 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.954e-05/0.0924, allocations: 67.94 kB / 363 MB, free: 7.727 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.971e-05/0.09248, allocations: 12 kB / 363 MB, free: 7.715 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.361e-05/0.09252, allocations: 15.97 kB / 363.1 MB, free: 7.699 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.626e-05/0.09255, allocations: 19.98 kB / 363.1 MB, free: 7.68 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.217e-05/0.0926, allocations: 87.22 kB / 363.2 MB, free: 7.594 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.09261, allocations: 0 / 363.2 MB, free: 7.594 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003433/0.09295, allocations: 95.92 kB / 363.3 MB, free: 7.5 MB / 302.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 ($whenCondition1,rImpure,iImpure,$whenCondition2,$outputAlias_r64,$outputAlias_r128,$outputAlias_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]) * Number of discrete states: 46 ($outputAlias_r1024,$outputAlias_r128,$outputAlias_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,iImpure,rImpure,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 3 * 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.002061/0.09502, allocations: 2.316 MB / 365.6 MB, free: 5.176 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0017/0.09674, allocations: 2.136 MB / 367.7 MB, free: 3.012 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.127e-06/0.09675, allocations: 4 kB / 367.7 MB, free: 3.008 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001433/0.09819, allocations: 2.186 MB / 369.9 MB, free: 0.7969 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002669/0.09847, allocations: 19.94 kB / 369.9 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1424/0.2409, allocations: 3.333 MB / 373.2 MB, free: 24.63 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001472/0.2411, allocations: 0.7252 MB / 374 MB, free: 23.94 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.488e-05/0.2411, allocations: 2.812 kB / 374 MB, free: 23.94 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.518e-05/0.2412, allocations: 36.09 kB / 374 MB, free: 23.93 MB / 302.1 MB Notification: Performance of SimCode: time 1.022e-06/0.2412, allocations: 0.625 kB / 374 MB, free: 23.93 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01379/0.255, allocations: 4.321 MB / 378.3 MB, free: 23.52 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001418/0.2551, allocations: 246.5 kB / 378.6 MB, free: 23.27 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.631/1.886, allocations: 3.938 kB / 378.6 MB, free: 23.26 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Math_Random_Examples_GenerateRandomNumbers_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Math_Random_Examples_GenerateRandomNumbers.fmu > 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