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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001407/0.001407, allocations: 88.62 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001465/0.001465, allocations: 149.4 kB / 24.26 MB, free: 184 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.513/1.513, allocations: 173.4 MB / 200.8 MB, free: 9.32 MB / 186.7 MB " [Timeout remaining time 178] 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: translateModel(Modelica.Math.Random.Examples.GenerateRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|r1024|r128|r64",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 0 / 267.3 MB, free: 6.742 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.468e-05/2.615e-05, allocations: 2.312 kB / 267.3 MB, free: 6.738 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002543/0.002569, allocations: 1.231 MB / 268.5 MB, free: 5.492 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001662/0.004231, allocations: 443.7 kB / 269 MB, free: 5.059 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.793e-05/0.004269, allocations: 0 / 269 MB, free: 5.059 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 5.636e-05/0.004326, allocations: 7.922 kB / 269 MB, free: 5.051 MB / 250.7 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.0005841/0.00491, allocations: 79.64 kB / 269.1 MB, free: 4.973 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000203/0.005113, allocations: 75.62 kB / 269.1 MB, free: 4.898 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001022/0.005215, allocations: 39.91 kB / 269.2 MB, free: 4.859 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.436e-05/0.005249, allocations: 7.984 kB / 269.2 MB, free: 4.852 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.618e-05/0.005306, allocations: 23.92 kB / 269.2 MB, free: 4.828 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.169e-05/0.005347, allocations: 19.97 kB / 269.2 MB, free: 4.809 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.267e-05/0.00536, allocations: 0 / 269.2 MB, free: 4.809 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003458/0.005706, allocations: 151.7 kB / 269.4 MB, free: 4.66 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.989e-05/0.005766, allocations: 39.84 kB / 269.4 MB, free: 4.621 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.443e-05/0.00583, allocations: 23.94 kB / 269.4 MB, free: 4.598 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003104/0.00614, allocations: 195.3 kB / 269.6 MB, free: 4.406 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.006145, allocations: 4 kB / 269.6 MB, free: 4.402 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.71e-07/0.006146, allocations: 4 kB / 269.6 MB, free: 4.398 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.697e-06/0.00615, allocations: 0 / 269.6 MB, free: 4.398 MB / 250.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.0006221/0.006772, allocations: 492.7 kB / 270.1 MB, free: 3.871 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.177e-05/0.006803, allocations: 8.922 kB / 270.1 MB, free: 3.863 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001526/0.006956, allocations: 28.83 kB / 270.2 MB, free: 3.836 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001351/0.007091, allocations: 113.7 kB / 270.3 MB, free: 3.699 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.518e-05/0.007106, allocations: 8.312 kB / 270.3 MB, free: 3.691 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.537e-05/0.007122, allocations: 8.359 kB / 270.3 MB, free: 3.684 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004661/0.007588, allocations: 395.1 kB / 270.7 MB, free: 3.273 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.125e-06/0.007596, allocations: 4.188 kB / 270.7 MB, free: 3.27 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.938e-06/0.007606, allocations: 4.375 kB / 270.7 MB, free: 3.266 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.276e-06/0.007609, allocations: 384 / 270.7 MB, free: 3.266 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003/0.007909, allocations: 267.2 kB / 270.9 MB, free: 2.992 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001712/0.00808, allocations: 133.8 kB / 271.1 MB, free: 2.828 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003306/0.008411, allocations: 296.5 kB / 271.4 MB, free: 2.508 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003093/0.00872, allocations: 277.1 kB / 271.6 MB, free: 2.219 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.966e-06/0.008729, allocations: 0 / 271.6 MB, free: 2.219 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006655/0.009395, allocations: 0.5742 MB / 272.2 MB, free: 1.586 MB / 250.7 MB Notification: Performance of pre-optimization done (n=46): time 9.22e-07/0.009396, allocations: 0 / 272.2 MB, free: 1.586 MB / 250.7 MB Notification: Performance of matching and sorting (n=46): time 0.001289/0.01068, allocations: 0.9915 MB / 273.2 MB, free: 0.5508 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001284/0.01081, allocations: 156.5 kB / 273.3 MB, free: 376 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001093/0.01092, allocations: 109.8 kB / 273.5 MB, free: 256 kB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.332e-05/0.01095, allocations: 25.7 kB / 273.5 MB, free: 224 kB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.101e-05/0.011, allocations: 81.14 kB / 273.6 MB, free: 140 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.066e-05/0.01109, allocations: 95.16 kB / 273.6 MB, free: 44 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.747e-05/0.01116, allocations: 41.75 kB / 273.7 MB, free: 15.99 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001802/0.01134, allocations: 330.8 kB / 274 MB, free: 15.66 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002047/0.01155, allocations: 195.7 kB / 274.2 MB, free: 15.46 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002364/0.01179, allocations: 229.8 kB / 274.4 MB, free: 15.22 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004789/0.01227, allocations: 473.3 kB / 274.9 MB, free: 14.73 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.01227, allocations: 4.094 kB / 274.9 MB, free: 14.72 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005772/0.01284, allocations: 492.2 kB / 275.4 MB, free: 14.21 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001121/0.01296, allocations: 107.3 kB / 275.5 MB, free: 14.09 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.369e-06/0.01296, allocations: 0 / 275.5 MB, free: 14.09 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.1e-05/0.01298, allocations: 4 kB / 275.5 MB, free: 14.09 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.002e-06/0.01298, allocations: 0 / 275.5 MB, free: 14.09 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.313e-06/0.01299, allocations: 3.938 kB / 275.5 MB, free: 14.09 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.343e-05/0.01305, allocations: 23.84 kB / 275.5 MB, free: 14.06 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.08e-05/0.01307, allocations: 8 kB / 275.5 MB, free: 14.05 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.0002973/0.01337, allocations: 279.8 kB / 275.8 MB, free: 13.76 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.055e-05/0.01345, allocations: 39.91 kB / 275.8 MB, free: 13.72 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.837e-05/0.01347, allocations: 9.656 kB / 275.8 MB, free: 13.7 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/0.01347, allocations: 3.984 kB / 275.8 MB, free: 13.7 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.01348, allocations: 4 kB / 275.8 MB, free: 13.7 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/0.01348, allocations: 4.266 kB / 275.9 MB, free: 13.69 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001825/0.01367, allocations: 153.1 kB / 276 MB, free: 13.51 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.01367, allocations: 0 / 276 MB, free: 13.51 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.21e-07/0.01367, allocations: 0 / 276 MB, free: 13.51 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.372e-06/0.01367, allocations: 0 / 276 MB, free: 13.51 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.365e-05/0.0137, allocations: 27.92 kB / 276 MB, free: 13.48 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.0137, allocations: 0 / 276 MB, free: 13.48 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.476e-06/0.01371, allocations: 7.984 kB / 276 MB, free: 13.48 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001208/0.01492, allocations: 0.9273 MB / 277 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.604e-05/0.01495, allocations: 23.78 kB / 277 MB, free: 12.48 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001105/0.01506, allocations: 71.97 kB / 277.1 MB, free: 12.41 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.295e-05/0.01511, allocations: 8 kB / 277.1 MB, free: 12.4 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.33e-05/0.01515, allocations: 11.98 kB / 277.1 MB, free: 12.39 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.135e-05/0.01519, allocations: 23.92 kB / 277.1 MB, free: 12.37 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.837e-05/0.01524, allocations: 79.28 kB / 277.2 MB, free: 12.29 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01524, allocations: 0 / 277.2 MB, free: 12.29 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003576/0.0156, allocations: 95.86 kB / 277.3 MB, free: 12.2 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.0006988/0.0163, allocations: 302.7 kB / 277.6 MB, free: 11.93 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001045/0.01735, allocations: 0.8642 MB / 278.4 MB, free: 11.02 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/0.01735, allocations: 4 kB / 278.4 MB, free: 11.01 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006038/0.01795, allocations: 0.5331 MB / 279 MB, free: 10.44 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002176/0.01817, allocations: 33.48 kB / 279 MB, free: 10.41 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007966/0.01897, allocations: 0.5056 MB / 279.5 MB, free: 9.863 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000126/0.01909, allocations: 114.3 kB / 279.6 MB, free: 9.73 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.14e-05/0.01911, allocations: 7.984 kB / 279.6 MB, free: 9.723 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.716e-05/0.01912, allocations: 8.5 kB / 279.6 MB, free: 9.715 MB / 266.7 MB Notification: Performance of SimCode: time 5.91e-07/0.01912, allocations: 0 / 279.6 MB, free: 9.715 MB / 266.7 MB Notification: Performance of Templates: time 0.006866/0.02599, allocations: 3.174 MB / 282.8 MB, free: 6.559 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.makefile [Timeout 660] (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 & ./Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Math/Random/Examples/GenerateRandomNumbers/GenerateRandomNumbers.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.354678773088381]