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.0009325/0.0009325, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.001006/0.001006, allocations: 169.9 kB / 24.91 MB, free: 9.184 MB / 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 0.9289/0.9289, allocations: 177.1 MB / 205.3 MB, free: 5.477 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 2.304e-06/2.304e-06, allocations: 4 kB / 273.4 MB, free: 1.309 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.65e-05/1.881e-05, allocations: 2.312 kB / 273.4 MB, free: 1.305 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.001478/0.001497, allocations: 1.27 MB / 274.7 MB, free: 24 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.000648/0.002145, allocations: 470 kB / 275.2 MB, free: 15.56 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.917e-05/0.002174, allocations: 7.938 kB / 275.2 MB, free: 15.55 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 2.815e-05/0.002203, allocations: 0 / 275.2 MB, free: 15.55 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.0003784/0.002581, allocations: 75.66 kB / 275.2 MB, free: 15.48 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001079/0.002689, allocations: 75.61 kB / 275.3 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 6.99e-05/0.002759, allocations: 39.91 kB / 275.4 MB, free: 15.37 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.082e-05/0.00279, allocations: 0 / 275.4 MB, free: 15.37 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.143e-05/0.002831, allocations: 31.95 kB / 275.4 MB, free: 15.34 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.99e-05/0.002861, allocations: 19.91 kB / 275.4 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.068e-05/0.002872, allocations: 4 kB / 275.4 MB, free: 15.31 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002013/0.003073, allocations: 147.7 kB / 275.6 MB, free: 15.17 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.392e-05/0.003107, allocations: 31.94 kB / 275.6 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.38e-05/0.003141, allocations: 35.86 kB / 275.6 MB, free: 15.1 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001824/0.003323, allocations: 199.3 kB / 275.8 MB, free: 14.91 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.793e-06/0.003325, allocations: 3.938 kB / 275.8 MB, free: 14.9 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.21e-07/0.003325, allocations: 0 / 275.8 MB, free: 14.9 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.895e-06/0.003328, allocations: 0 / 275.8 MB, free: 14.9 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.0003576/0.003686, allocations: 446.2 kB / 276.3 MB, free: 14.43 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.313e-05/0.003719, allocations: 8.031 kB / 276.3 MB, free: 14.42 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001056/0.003825, allocations: 20.92 kB / 276.3 MB, free: 14.4 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.615e-05/0.003911, allocations: 125.6 kB / 276.4 MB, free: 14.25 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.092e-05/0.003922, allocations: 384 / 276.4 MB, free: 14.25 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.243e-05/0.003934, allocations: 4.375 kB / 276.4 MB, free: 14.25 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001658/0.0041, allocations: 250.2 kB / 276.7 MB, free: 13.98 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.961e-06/0.004106, allocations: 192 / 276.7 MB, free: 13.98 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.508e-06/0.004115, allocations: 4.375 kB / 276.7 MB, free: 13.97 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.004121, allocations: 4.312 kB / 276.7 MB, free: 13.97 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.475e-05/0.004215, allocations: 178.1 kB / 276.8 MB, free: 13.78 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.202e-05/0.004297, allocations: 84.58 kB / 276.9 MB, free: 13.68 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001179/0.004415, allocations: 200.5 kB / 277.1 MB, free: 13.45 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.199e-05/0.004497, allocations: 173.1 kB / 277.3 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.526e-06/0.004501, allocations: 0 / 277.3 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002269/0.004728, allocations: 449.8 kB / 277.7 MB, free: 12.77 MB / 266.7 MB Notification: Performance of pre-optimization done (n=46): time 8.71e-07/0.004729, allocations: 0 / 277.7 MB, free: 12.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=46): time 0.0004065/0.005135, allocations: 0.6704 MB / 278.4 MB, free: 12.05 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.534e-05/0.005191, allocations: 160.5 kB / 278.6 MB, free: 11.87 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.251e-05/0.005243, allocations: 102.7 kB / 278.7 MB, free: 11.75 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.588e-06/0.005253, allocations: 33.7 kB / 278.7 MB, free: 11.71 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.204e-05/0.005275, allocations: 85.12 kB / 278.8 MB, free: 11.62 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.315e-05/0.005318, allocations: 91.2 kB / 278.9 MB, free: 11.54 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.62e-05/0.005354, allocations: 41.66 kB / 278.9 MB, free: 11.49 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.096e-05/0.005435, allocations: 338.7 kB / 279.2 MB, free: 11.15 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.18e-05/0.005497, allocations: 130.6 kB / 279.4 MB, free: 11.01 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.485e-05/0.005562, allocations: 149.8 kB / 279.5 MB, free: 10.84 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001476/0.005709, allocations: 315.4 kB / 279.8 MB, free: 10.5 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.005711, allocations: 0 / 279.8 MB, free: 10.5 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0002314/0.005942, allocations: 391.1 kB / 280.2 MB, free: 10.09 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.846e-05/0.006001, allocations: 111.4 kB / 280.3 MB, free: 9.969 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.857e-06/0.006004, allocations: 0 / 280.3 MB, free: 9.969 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.248e-05/0.006017, allocations: 0 / 280.3 MB, free: 9.969 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.769e-06/0.006022, allocations: 7.938 kB / 280.3 MB, free: 9.961 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.434e-06/0.006024, allocations: 0 / 280.3 MB, free: 9.961 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.329e-05/0.006057, allocations: 19.84 kB / 280.3 MB, free: 9.941 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.3e-05/0.00607, allocations: 15.94 kB / 280.3 MB, free: 9.926 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.0001446/0.006215, allocations: 262.5 kB / 280.6 MB, free: 9.645 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.745e-05/0.006252, allocations: 43.95 kB / 280.6 MB, free: 9.602 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.223e-05/0.006265, allocations: 9.656 kB / 280.7 MB, free: 9.594 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.006266, allocations: 0 / 280.7 MB, free: 9.594 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.914e-06/0.006268, allocations: 0 / 280.7 MB, free: 9.594 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.006271, allocations: 0 / 280.7 MB, free: 9.594 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.926e-05/0.00635, allocations: 109.6 kB / 280.8 MB, free: 9.469 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.006351, allocations: 4 kB / 280.8 MB, free: 9.465 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.81e-07/0.006351, allocations: 0 / 280.8 MB, free: 9.465 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.403e-06/0.006353, allocations: 4 kB / 280.8 MB, free: 9.461 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.64e-05/0.006369, allocations: 15.98 kB / 280.8 MB, free: 9.445 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.62e-07/0.00637, allocations: 0 / 280.8 MB, free: 9.445 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.006371, allocations: 0 / 280.8 MB, free: 9.445 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003802/0.006751, allocations: 0.6556 MB / 281.4 MB, free: 8.742 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.355e-05/0.006764, allocations: 23.78 kB / 281.5 MB, free: 8.719 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.515e-05/0.00683, allocations: 59.94 kB / 281.5 MB, free: 8.66 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.73e-05/0.006857, allocations: 8 kB / 281.5 MB, free: 8.652 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.448e-05/0.006881, allocations: 11.98 kB / 281.5 MB, free: 8.641 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.648e-05/0.006898, allocations: 24.02 kB / 281.6 MB, free: 8.617 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.011e-05/0.006908, allocations: 8.859 kB / 281.6 MB, free: 8.605 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.006908, allocations: 0 / 281.6 MB, free: 8.605 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001937/0.007102, allocations: 87.88 kB / 281.7 MB, free: 8.52 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.0004177/0.007519, allocations: 332.2 kB / 282 MB, free: 8.254 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003526/0.007872, allocations: 0.6117 MB / 282.6 MB, free: 7.59 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.007875, allocations: 0 / 282.6 MB, free: 7.59 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001976/0.008073, allocations: 435 kB / 283 MB, free: 7.125 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.708e-05/0.00816, allocations: 35.86 kB / 283.1 MB, free: 7.09 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003475/0.008507, allocations: 403.5 kB / 283.4 MB, free: 6.648 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.671e-05/0.008544, allocations: 76.33 kB / 283.5 MB, free: 6.551 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.202e-06/0.00855, allocations: 0 / 283.5 MB, free: 6.551 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001328/0.008683, allocations: 131.3 kB / 283.7 MB, free: 6.422 MB / 266.7 MB Notification: Performance of SimCode: time 6.62e-07/0.008684, allocations: 0 / 283.7 MB, free: 6.422 MB / 266.7 MB Notification: Performance of Templates: time 0.004125/0.01281, allocations: 3.363 MB / 287 MB, free: 3.098 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.526537848636508]