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.0009332/0.0009332, allocations: 78.97 kB / 21.42 MB, free: 3.078 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.00189/0.00189, allocations: 147.5 kB / 24.81 MB, free: 9.27 MB / 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.038/1.038, allocations: 173.3 MB / 201.4 MB, free: 9.203 MB / 186.7 MB " [Timeout remaining time 179] 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.714e-06/1.714e-06, allocations: 0 / 268.4 MB, free: 6.199 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.44e-05/1.611e-05, allocations: 6.25 kB / 268.4 MB, free: 6.191 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.001379/0.001396, allocations: 1.253 MB / 269.7 MB, free: 4.926 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006249/0.00202, allocations: 458.2 kB / 270.1 MB, free: 4.477 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.5e-05/0.002055, allocations: 0 / 270.1 MB, free: 4.477 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.454e-05/0.00209, allocations: 11.98 kB / 270.1 MB, free: 4.465 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.000404/0.002494, allocations: 83.58 kB / 270.2 MB, free: 4.383 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 9.092e-05/0.002585, allocations: 63.69 kB / 270.3 MB, free: 4.32 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 7.884e-05/0.002664, allocations: 43.89 kB / 270.3 MB, free: 4.277 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.68e-05/0.002701, allocations: 0 / 270.3 MB, free: 4.277 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.817e-05/0.002749, allocations: 31.86 kB / 270.3 MB, free: 4.246 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.127e-05/0.00278, allocations: 15.97 kB / 270.4 MB, free: 4.23 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.415e-05/0.002794, allocations: 4 kB / 270.4 MB, free: 4.227 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002027/0.002997, allocations: 147.7 kB / 270.5 MB, free: 4.082 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.705e-05/0.003044, allocations: 39.86 kB / 270.5 MB, free: 4.043 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.155e-05/0.003075, allocations: 35.92 kB / 270.6 MB, free: 4.008 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001805/0.003256, allocations: 191.3 kB / 270.8 MB, free: 3.82 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.473e-06/0.003257, allocations: 0 / 270.8 MB, free: 3.82 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.21e-07/0.003258, allocations: 0 / 270.8 MB, free: 3.82 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.615e-06/0.003261, allocations: 0 / 270.8 MB, free: 3.82 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.0003513/0.003612, allocations: 0.5576 MB / 271.3 MB, free: 3.211 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.263e-05/0.003644, allocations: 12.92 kB / 271.3 MB, free: 3.199 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.344e-05/0.003738, allocations: 20.84 kB / 271.4 MB, free: 3.18 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.822e-05/0.003806, allocations: 128.4 kB / 271.5 MB, free: 3.027 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.925e-06/0.003814, allocations: 384 / 271.5 MB, free: 3.027 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.177e-06/0.003823, allocations: 8.375 kB / 271.5 MB, free: 3.02 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001596/0.003983, allocations: 263.8 kB / 271.7 MB, free: 2.734 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.003992, allocations: 4.172 kB / 271.7 MB, free: 2.73 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.306e-06/0.004, allocations: 4.375 kB / 271.8 MB, free: 2.727 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.366e-06/0.004003, allocations: 384 / 271.8 MB, free: 2.727 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.507e-05/0.004078, allocations: 159.3 kB / 271.9 MB, free: 2.559 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.651e-05/0.004165, allocations: 128.6 kB / 272 MB, free: 2.402 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001072/0.004272, allocations: 217.5 kB / 272.2 MB, free: 2.152 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.047e-05/0.004353, allocations: 174.8 kB / 272.4 MB, free: 1.961 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.487e-06/0.004356, allocations: 0 / 272.4 MB, free: 1.961 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002267/0.004583, allocations: 474.2 kB / 272.9 MB, free: 1.438 MB / 250.7 MB Notification: Performance of pre-optimization done (n=46): time 8.41e-07/0.004584, allocations: 0 / 272.9 MB, free: 1.438 MB / 250.7 MB Notification: Performance of matching and sorting (n=46): time 0.0004744/0.005058, allocations: 0.7224 MB / 273.6 MB, free: 0.6719 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.243e-05/0.00511, allocations: 160.5 kB / 273.8 MB, free: 496 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.888e-05/0.005169, allocations: 157.9 kB / 273.9 MB, free: 320 kB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 9.408e-06/0.005179, allocations: 29.7 kB / 273.9 MB, free: 284 kB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.159e-05/0.00521, allocations: 135.9 kB / 274.1 MB, free: 140 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.863e-05/0.005259, allocations: 99.12 kB / 274.2 MB, free: 40 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.004e-05/0.005309, allocations: 51.42 kB / 274.2 MB, free: 15.98 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001606/0.00547, allocations: 0.5039 MB / 274.7 MB, free: 15.46 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.544e-05/0.005525, allocations: 127.8 kB / 274.9 MB, free: 15.32 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.174e-05/0.005597, allocations: 167.5 kB / 275 MB, free: 15.14 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001483/0.005745, allocations: 318.9 kB / 275.3 MB, free: 14.8 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.005747, allocations: 0 / 275.3 MB, free: 14.8 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.00022/0.005967, allocations: 396.3 kB / 275.7 MB, free: 14.38 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.557e-05/0.006022, allocations: 107.3 kB / 275.8 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.006027, allocations: 0 / 275.8 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.482e-06/0.006033, allocations: 0 / 275.8 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.673e-06/0.006035, allocations: 3.984 kB / 275.8 MB, free: 14.26 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.857e-06/0.006039, allocations: 7.938 kB / 275.8 MB, free: 14.25 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.128e-05/0.00607, allocations: 23.78 kB / 275.9 MB, free: 14.23 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.114e-05/0.006081, allocations: 12.09 kB / 275.9 MB, free: 14.22 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.0001328/0.006214, allocations: 298.5 kB / 276.2 MB, free: 13.91 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.841e-05/0.006253, allocations: 47.91 kB / 276.2 MB, free: 13.86 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.139e-05/0.006264, allocations: 9.656 kB / 276.2 MB, free: 13.85 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.006266, allocations: 0 / 276.2 MB, free: 13.85 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.393e-06/0.006267, allocations: 0 / 276.2 MB, free: 13.85 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-06/0.006269, allocations: 0 / 276.2 MB, free: 13.85 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.487e-05/0.006354, allocations: 153 kB / 276.4 MB, free: 13.67 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.006356, allocations: 3.984 kB / 276.4 MB, free: 13.67 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.1e-07/0.006357, allocations: 0 / 276.4 MB, free: 13.67 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.006358, allocations: 4 kB / 276.4 MB, free: 13.66 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.33e-05/0.006372, allocations: 12 kB / 276.4 MB, free: 13.65 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.006373, allocations: 4 kB / 276.4 MB, free: 13.65 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.006375, allocations: 3.984 kB / 276.4 MB, free: 13.64 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006298/0.007004, allocations: 0.7615 MB / 277.2 MB, free: 12.83 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.642e-05/0.007021, allocations: 27.77 kB / 277.2 MB, free: 12.8 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.857e-05/0.007079, allocations: 55.95 kB / 277.2 MB, free: 12.75 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.089e-05/0.00711, allocations: 11.98 kB / 277.2 MB, free: 12.74 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.326e-05/0.007133, allocations: 8 kB / 277.3 MB, free: 12.73 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.61e-05/0.00715, allocations: 19.98 kB / 277.3 MB, free: 12.71 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.593e-05/0.007186, allocations: 123.2 kB / 277.4 MB, free: 12.59 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.007186, allocations: 0 / 277.4 MB, free: 12.59 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001986/0.007384, allocations: 91.86 kB / 277.5 MB, free: 12.5 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.0004031/0.007787, allocations: 318.7 kB / 277.8 MB, free: 12.22 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003771/0.008164, allocations: 0.6334 MB / 278.4 MB, free: 11.53 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.383e-06/0.008166, allocations: 0 / 278.4 MB, free: 11.53 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002085/0.008374, allocations: 437.7 kB / 278.9 MB, free: 11.06 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001318/0.008506, allocations: 27.98 kB / 278.9 MB, free: 11.04 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003504/0.008856, allocations: 406.5 kB / 279.3 MB, free: 10.59 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.655e-05/0.008893, allocations: 76.33 kB / 279.4 MB, free: 10.5 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.174e-06/0.0089, allocations: 7.922 kB / 279.4 MB, free: 10.49 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001325/0.009033, allocations: 146.2 kB / 279.5 MB, free: 10.34 MB / 266.7 MB Notification: Performance of SimCode: time 5.72e-07/0.009033, allocations: 0 / 279.5 MB, free: 10.34 MB / 266.7 MB Notification: Performance of Templates: time 0.004503/0.01354, allocations: 3.409 MB / 282.9 MB, free: 6.969 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) [Timeout 240] 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","",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.7459296849556267]