Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001046/0.001046, allocations: 75.77 kB / 21.18 MB, free: 3.379 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00105/0.00105, allocations: 165 kB / 24.56 MB, free: 8 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.008/1.008, allocations: 177.1 MB / 205 MB, free: 5.578 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Math.Random.Examples.GenerateRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|r1024|r128|r64",fileNamePrefix="Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers") translateModel(Modelica.Math.Random.Examples.GenerateRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|r1024|r128|r64",fileNamePrefix="Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 273 MB, free: 1.512 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.784e-05/1.942e-05, allocations: 2.312 kB / 273 MB, free: 1.508 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.001734/0.001753, allocations: 1.282 MB / 274.3 MB, free: 224 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007429/0.002496, allocations: 466.2 kB / 274.7 MB, free: 15.76 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.989e-05/0.002526, allocations: 0 / 274.7 MB, free: 15.76 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 5.153e-05/0.002578, allocations: 3.938 kB / 274.7 MB, free: 15.76 MB / 266.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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.0004559/0.003034, allocations: 75.7 kB / 274.8 MB, free: 15.68 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001008/0.003134, allocations: 71.62 kB / 274.9 MB, free: 15.61 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 9.122e-05/0.003226, allocations: 47.83 kB / 274.9 MB, free: 15.57 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.093e-05/0.003267, allocations: 4 kB / 274.9 MB, free: 15.56 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.58e-05/0.003322, allocations: 27.97 kB / 274.9 MB, free: 15.54 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.999e-05/0.003362, allocations: 19.91 kB / 275 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.334e-05/0.003376, allocations: 0 / 275 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002077/0.003583, allocations: 151.7 kB / 275.1 MB, free: 15.37 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.401e-05/0.003627, allocations: 35.92 kB / 275.1 MB, free: 15.33 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.96e-05/0.003667, allocations: 27.92 kB / 275.2 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002165/0.003883, allocations: 195.3 kB / 275.4 MB, free: 15.11 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.114e-06/0.003886, allocations: 0 / 275.4 MB, free: 15.11 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.81e-07/0.003886, allocations: 0 / 275.4 MB, free: 15.11 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.028e-06/0.00389, allocations: 4 kB / 275.4 MB, free: 15.11 MB / 266.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.000452/0.004342, allocations: 0.5576 MB / 275.9 MB, free: 14.5 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.555e-05/0.004378, allocations: 8.031 kB / 275.9 MB, free: 14.49 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001177/0.004496, allocations: 28.83 kB / 275.9 MB, free: 14.46 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001029/0.004599, allocations: 120.5 kB / 276.1 MB, free: 14.32 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.436e-05/0.004613, allocations: 4.375 kB / 276.1 MB, free: 14.32 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.527e-05/0.004628, allocations: 4.375 kB / 276.1 MB, free: 14.31 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002108/0.004839, allocations: 283.9 kB / 276.4 MB, free: 14.01 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.00485, allocations: 192 / 276.4 MB, free: 14.01 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.016e-05/0.00486, allocations: 384 / 276.4 MB, free: 14.01 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.815e-06/0.004868, allocations: 4.375 kB / 276.4 MB, free: 14 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001007/0.004969, allocations: 175.3 kB / 276.5 MB, free: 13.82 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001197/0.005089, allocations: 144.2 kB / 276.7 MB, free: 13.64 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001422/0.005231, allocations: 229.5 kB / 276.9 MB, free: 13.38 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001016/0.005332, allocations: 190.8 kB / 277.1 MB, free: 13.17 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.208e-06/0.005337, allocations: 3.938 kB / 277.1 MB, free: 13.17 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002702/0.005607, allocations: 482.3 kB / 277.6 MB, free: 12.64 MB / 266.7 MB Notification: Performance of pre-optimization done (n=46): time 8.12e-07/0.005608, allocations: 0 / 277.6 MB, free: 12.64 MB / 266.7 MB Notification: Performance of matching and sorting (n=46): time 0.0005832/0.006191, allocations: 0.7457 MB / 278.3 MB, free: 11.85 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.392e-05/0.006255, allocations: 164.5 kB / 278.5 MB, free: 11.66 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.918e-05/0.006334, allocations: 165.9 kB / 278.6 MB, free: 11.48 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.042e-05/0.006344, allocations: 25.7 kB / 278.6 MB, free: 11.45 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.573e-05/0.00638, allocations: 127.9 kB / 278.8 MB, free: 11.31 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.709e-05/0.006437, allocations: 103.2 kB / 278.9 MB, free: 11.21 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.333e-05/0.00648, allocations: 47.36 kB / 278.9 MB, free: 11.16 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.006593, allocations: 0.5001 MB / 279.4 MB, free: 10.64 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.095e-05/0.006664, allocations: 135.8 kB / 279.6 MB, free: 10.5 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.538e-05/0.00675, allocations: 171.5 kB / 279.7 MB, free: 10.31 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001688/0.006919, allocations: 335 kB / 280 MB, free: 9.953 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.006921, allocations: 0 / 280 MB, free: 9.953 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000267/0.007188, allocations: 424.3 kB / 280.5 MB, free: 9.508 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.194e-05/0.00725, allocations: 107.3 kB / 280.6 MB, free: 9.391 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.007255, allocations: 0 / 280.6 MB, free: 9.391 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.864e-05/0.007273, allocations: 4 kB / 280.6 MB, free: 9.387 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.589e-06/0.007278, allocations: 0 / 280.6 MB, free: 9.387 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.007285, allocations: 7.922 kB / 280.6 MB, free: 9.379 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.442e-05/0.007319, allocations: 23.84 kB / 280.6 MB, free: 9.355 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.878e-05/0.007338, allocations: 12 kB / 280.6 MB, free: 9.344 MB / 266.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 (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.0001537/0.007492, allocations: 302.5 kB / 280.9 MB, free: 9.023 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.086e-05/0.007533, allocations: 43.84 kB / 281 MB, free: 8.98 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.447e-05/0.007547, allocations: 9.656 kB / 281 MB, free: 8.973 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.007549, allocations: 0 / 281 MB, free: 8.973 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.007553, allocations: 0 / 281 MB, free: 8.973 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.007556, allocations: 7.938 kB / 281 MB, free: 8.965 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.265e-05/0.007649, allocations: 168.4 kB / 281.1 MB, free: 8.766 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.00765, allocations: 0 / 281.1 MB, free: 8.766 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.91e-07/0.007651, allocations: 0 / 281.1 MB, free: 8.766 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.72e-07/0.007652, allocations: 0 / 281.1 MB, free: 8.766 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.024e-05/0.007672, allocations: 19.98 kB / 281.2 MB, free: 8.746 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.61e-07/0.007673, allocations: 0 / 281.2 MB, free: 8.746 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.007674, allocations: 0 / 281.2 MB, free: 8.746 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005268/0.008201, allocations: 0.7771 MB / 281.9 MB, free: 7.918 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.332e-05/0.008214, allocations: 15.84 kB / 281.9 MB, free: 7.902 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.258e-05/0.008277, allocations: 59.94 kB / 282 MB, free: 7.844 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.792e-05/0.008305, allocations: 12.36 kB / 282 MB, free: 7.832 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.869e-05/0.008333, allocations: 11.98 kB / 282 MB, free: 7.82 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.587e-05/0.008349, allocations: 19.94 kB / 282 MB, free: 7.801 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.752e-05/0.008387, allocations: 131.2 kB / 282.2 MB, free: 7.672 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.008387, allocations: 0 / 282.2 MB, free: 7.672 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000199/0.008586, allocations: 91.88 kB / 282.3 MB, free: 7.582 MB / 266.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 (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.0004141/0.009, allocations: 318.4 kB / 282.6 MB, free: 7.309 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004301/0.00943, allocations: 0.6649 MB / 283.2 MB, free: 6.59 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.009432, allocations: 4 kB / 283.2 MB, free: 6.586 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002403/0.009672, allocations: 453.7 kB / 283.7 MB, free: 6.102 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001412/0.009813, allocations: 27.98 kB / 283.7 MB, free: 6.074 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004413/0.01025, allocations: 414.2 kB / 284.1 MB, free: 5.621 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.596e-05/0.0103, allocations: 84.25 kB / 284.2 MB, free: 5.516 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.985e-06/0.01031, allocations: 3.984 kB / 284.2 MB, free: 5.512 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.535e-05/0.01032, allocations: 16.69 kB / 284.2 MB, free: 5.496 MB / 266.7 MB Notification: Performance of SimCode: time 5.41e-07/0.01032, allocations: 0 / 284.2 MB, free: 5.496 MB / 266.7 MB Notification: Performance of Templates: time 0.004311/0.01464, allocations: 3.165 MB / 287.4 MB, free: 2.359 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & ./Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Math/Random/Examples/GenerateRandomNumbers/GenerateRandomNumbers.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8198442165739834]