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.001382/0.001382, allocations: 88.31 kB / 20.96 MB, free: 3.477 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.001472/0.001472, allocations: 161.6 kB / 24.27 MB, free: 172 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.565/1.565, allocations: 177.2 MB / 204.6 MB, free: 5.582 MB / 186.7 MB " [Timeout remaining time 178] 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.084e-06/2.084e-06, allocations: 0 / 272.3 MB, free: 1.82 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.534e-05/3.742e-05, allocations: 6.312 kB / 272.3 MB, free: 1.812 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002469/0.002506, allocations: 1.246 MB / 273.6 MB, free: 0.5586 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001007/0.003514, allocations: 450.8 kB / 274 MB, free: 120 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.486e-05/0.003538, allocations: 0 / 274 MB, free: 120 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.832e-05/0.003577, allocations: 0 / 274 MB, free: 120 kB / 250.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.0004555/0.004032, allocations: 87.58 kB / 274.1 MB, free: 32 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00018/0.004212, allocations: 67.69 kB / 274.2 MB, free: 15.96 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00011/0.004322, allocations: 47.83 kB / 274.2 MB, free: 15.92 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.273e-05/0.004355, allocations: 7.938 kB / 274.2 MB, free: 15.91 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.291e-05/0.004408, allocations: 23.97 kB / 274.2 MB, free: 15.89 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.78e-05/0.004446, allocations: 11.97 kB / 274.3 MB, free: 15.88 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.205e-05/0.004458, allocations: 4 kB / 274.3 MB, free: 15.87 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003037/0.004762, allocations: 151.7 kB / 274.4 MB, free: 15.72 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.456e-05/0.004816, allocations: 31.88 kB / 274.4 MB, free: 15.69 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.216e-05/0.004878, allocations: 35.91 kB / 274.5 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003079/0.005186, allocations: 195.3 kB / 274.7 MB, free: 15.46 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.164e-06/0.005188, allocations: 0 / 274.7 MB, free: 15.46 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.21e-07/0.005189, allocations: 0 / 274.7 MB, free: 15.46 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.005194, allocations: 0 / 274.7 MB, free: 15.46 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.0007253/0.005919, allocations: 488.7 kB / 275.1 MB, free: 14.94 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.005959, allocations: 12.03 kB / 275.1 MB, free: 14.93 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001585/0.006117, allocations: 24.84 kB / 275.2 MB, free: 14.91 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001472/0.006264, allocations: 121.6 kB / 275.3 MB, free: 14.76 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.985e-05/0.006284, allocations: 8.359 kB / 275.3 MB, free: 14.75 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.573e-05/0.0063, allocations: 4.375 kB / 275.3 MB, free: 14.75 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000465/0.006765, allocations: 395.1 kB / 275.7 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.006773, allocations: 192 / 275.7 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.429e-05/0.006787, allocations: 4.375 kB / 275.7 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.727e-06/0.006791, allocations: 384 / 275.7 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002836/0.007074, allocations: 267.2 kB / 276 MB, free: 14.06 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001845/0.007259, allocations: 126.1 kB / 276.1 MB, free: 13.91 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000342/0.007601, allocations: 296.5 kB / 276.4 MB, free: 13.59 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002848/0.007886, allocations: 269 kB / 276.6 MB, free: 13.3 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.428e-05/0.0079, allocations: 8 kB / 276.6 MB, free: 13.3 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006568/0.008557, allocations: 0.5702 MB / 277.2 MB, free: 12.67 MB / 266.7 MB Notification: Performance of pre-optimization done (n=46): time 9.51e-07/0.008558, allocations: 4 kB / 277.2 MB, free: 12.66 MB / 266.7 MB Notification: Performance of matching and sorting (n=46): time 0.001283/0.009841, allocations: 0.9838 MB / 278.2 MB, free: 11.64 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001204/0.009961, allocations: 152.5 kB / 278.3 MB, free: 11.46 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001082/0.01007, allocations: 109.8 kB / 278.5 MB, free: 11.34 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.95e-05/0.01009, allocations: 25.7 kB / 278.5 MB, free: 11.31 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.461e-05/0.01015, allocations: 85.14 kB / 278.6 MB, free: 11.22 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.27e-05/0.01025, allocations: 99.14 kB / 278.7 MB, free: 11.12 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.286e-05/0.01031, allocations: 45.69 kB / 278.7 MB, free: 11.07 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001835/0.01049, allocations: 326.8 kB / 279 MB, free: 10.75 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002145/0.01071, allocations: 199.7 kB / 279.2 MB, free: 10.54 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002258/0.01093, allocations: 225.9 kB / 279.4 MB, free: 10.3 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004961/0.01143, allocations: 477.3 kB / 279.9 MB, free: 9.805 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.01143, allocations: 0 / 279.9 MB, free: 9.805 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005815/0.01201, allocations: 492.2 kB / 280.4 MB, free: 9.293 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001361/0.01215, allocations: 111.3 kB / 280.5 MB, free: 9.172 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.01215, allocations: 0 / 280.5 MB, free: 9.172 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.961e-05/0.01217, allocations: 0 / 280.5 MB, free: 9.172 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.637e-06/0.01218, allocations: 4.328 kB / 280.5 MB, free: 9.168 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.657e-06/0.01219, allocations: 7.875 kB / 280.5 MB, free: 9.16 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.055e-05/0.01225, allocations: 19.84 kB / 280.5 MB, free: 9.141 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.227e-05/0.01227, allocations: 8 kB / 280.5 MB, free: 9.133 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.0003029/0.01257, allocations: 283.8 kB / 280.8 MB, free: 8.832 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.012e-05/0.01265, allocations: 39.91 kB / 280.8 MB, free: 8.793 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.22e-05/0.01267, allocations: 9.641 kB / 280.9 MB, free: 8.781 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.01268, allocations: 8 kB / 280.9 MB, free: 8.773 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.01269, allocations: 4 kB / 280.9 MB, free: 8.77 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.541e-06/0.01269, allocations: 3.938 kB / 280.9 MB, free: 8.766 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001854/0.01288, allocations: 153.1 kB / 281 MB, free: 8.586 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.01288, allocations: 0 / 281 MB, free: 8.586 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.31e-07/0.01288, allocations: 0 / 281 MB, free: 8.586 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.362e-06/0.01288, allocations: 0 / 281 MB, free: 8.586 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.688e-05/0.01292, allocations: 23.92 kB / 281 MB, free: 8.562 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.01292, allocations: 0 / 281 MB, free: 8.562 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.01292, allocations: 0 / 281 MB, free: 8.562 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001322/0.01424, allocations: 0.9272 MB / 282 MB, free: 7.59 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.773e-05/0.01427, allocations: 31.83 kB / 282 MB, free: 7.559 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000112/0.01438, allocations: 63.94 kB / 282.1 MB, free: 7.496 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.06e-05/0.01444, allocations: 12 kB / 282.1 MB, free: 7.484 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.301e-05/0.01448, allocations: 8 kB / 282.1 MB, free: 7.477 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.085e-05/0.01452, allocations: 19.92 kB / 282.1 MB, free: 7.457 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.046e-05/0.01458, allocations: 87.27 kB / 282.2 MB, free: 7.371 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01458, allocations: 0 / 282.2 MB, free: 7.371 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003685/0.01494, allocations: 83.88 kB / 282.3 MB, free: 7.289 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.0007114/0.01566, allocations: 321.8 kB / 282.6 MB, free: 7.012 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001045/0.0167, allocations: 0.8684 MB / 283.5 MB, free: 6.094 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.0167, allocations: 0 / 283.5 MB, free: 6.094 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006029/0.01731, allocations: 0.5215 MB / 284 MB, free: 5.535 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002101/0.01752, allocations: 31.98 kB / 284 MB, free: 5.504 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007984/0.01831, allocations: 0.5095 MB / 284.5 MB, free: 4.949 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001253/0.01844, allocations: 118.2 kB / 284.6 MB, free: 4.812 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.174e-05/0.01845, allocations: 4 kB / 284.6 MB, free: 4.809 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.771e-05/0.01847, allocations: 8.5 kB / 284.6 MB, free: 4.801 MB / 266.7 MB Notification: Performance of SimCode: time 4.81e-07/0.01847, allocations: 0 / 284.6 MB, free: 4.801 MB / 266.7 MB Notification: Performance of Templates: time 0.007059/0.02553, allocations: 3.171 MB / 287.8 MB, free: 1.652 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.227466731914319]