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.001309/0.001309, allocations: 70.73 kB / 21.24 MB, free: 0.5391 MB / 14.72 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.00139/0.00139, allocations: 154.7 kB / 24.49 MB, free: 3.719 MB / 14.72 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.399/1.399, allocations: 173.4 MB / 201.1 MB, free: 12.68 MB / 190.1 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 0.001572/0.001572, allocations: 47.17 kB / 319.4 MB, free: 3.281 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09043/0.09201, allocations: 52.16 MB / 371.6 MB, free: 7.367 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002209/0.09422, allocations: 1.232 MB / 372.8 MB, free: 6.125 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009084/0.09512, allocations: 452.8 kB / 373.2 MB, free: 5.684 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.733e-05/0.09515, allocations: 0 / 373.2 MB, free: 5.684 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.977e-05/0.09519, allocations: 3.938 kB / 373.2 MB, free: 5.68 MB / 334.1 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.0004217/0.09561, allocations: 75.72 kB / 373.3 MB, free: 5.605 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001382/0.09575, allocations: 63.81 kB / 373.4 MB, free: 5.543 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.258e-05/0.09584, allocations: 47.84 kB / 373.4 MB, free: 5.496 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.307e-05/0.09588, allocations: 0 / 373.4 MB, free: 5.496 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.108e-05/0.09591, allocations: 23.97 kB / 373.4 MB, free: 5.473 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.818e-05/0.09596, allocations: 23.84 kB / 373.5 MB, free: 5.449 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.148e-05/0.09597, allocations: 4 kB / 373.5 MB, free: 5.445 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00029/0.09626, allocations: 155.7 kB / 373.6 MB, free: 5.293 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.561e-05/0.0963, allocations: 27.92 kB / 373.6 MB, free: 5.266 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.371e-05/0.09637, allocations: 47.67 kB / 373.7 MB, free: 5.219 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000247/0.09661, allocations: 175.3 kB / 373.9 MB, free: 5.047 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.644e-06/0.09662, allocations: 3.938 kB / 373.9 MB, free: 5.043 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.09662, allocations: 0 / 373.9 MB, free: 5.043 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.238e-06/0.09662, allocations: 0 / 373.9 MB, free: 5.043 MB / 334.1 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.0005455/0.09717, allocations: 0.4889 MB / 374.4 MB, free: 4.508 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.226e-05/0.0972, allocations: 8.922 kB / 374.4 MB, free: 4.5 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001135/0.09731, allocations: 20.84 kB / 374.4 MB, free: 4.48 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000119/0.09743, allocations: 126.3 kB / 374.5 MB, free: 4.332 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.456e-05/0.09745, allocations: 4.375 kB / 374.5 MB, free: 4.328 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.216e-05/0.09746, allocations: 4.375 kB / 374.5 MB, free: 4.324 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004059/0.09786, allocations: 391.1 kB / 374.9 MB, free: 3.918 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.09787, allocations: 4.188 kB / 374.9 MB, free: 3.914 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.319e-05/0.09789, allocations: 3.938 kB / 374.9 MB, free: 3.91 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.804e-06/0.09789, allocations: 0 / 374.9 MB, free: 3.91 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002456/0.09814, allocations: 263.3 kB / 375.2 MB, free: 3.641 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001455/0.09828, allocations: 134 kB / 375.3 MB, free: 3.477 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000296/0.09858, allocations: 296.5 kB / 375.6 MB, free: 3.156 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002601/0.09884, allocations: 277 kB / 375.9 MB, free: 2.867 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.999e-06/0.09885, allocations: 3.984 kB / 375.9 MB, free: 2.863 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000543/0.09939, allocations: 0.5742 MB / 376.4 MB, free: 2.23 MB / 334.1 MB Notification: Performance of pre-optimization done (n=46): time 9.52e-07/0.09939, allocations: 0 / 376.4 MB, free: 2.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=46): time 0.001068/0.1005, allocations: 0.9836 MB / 377.4 MB, free: 1.203 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001023/0.1006, allocations: 160.5 kB / 377.6 MB, free: 1.016 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.634e-05/0.1006, allocations: 101.9 kB / 377.7 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.871e-05/0.1007, allocations: 25.7 kB / 377.7 MB, free: 0.875 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.092e-05/0.1007, allocations: 81.14 kB / 377.8 MB, free: 0.793 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.888e-05/0.1008, allocations: 91.34 kB / 377.9 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.485e-05/0.1008, allocations: 45.69 kB / 377.9 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.101, allocations: 326.8 kB / 378.2 MB, free: 332 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001836/0.1012, allocations: 203.7 kB / 378.4 MB, free: 116 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002104/0.1014, allocations: 225.8 kB / 378.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004098/0.1018, allocations: 465.3 kB / 379.1 MB, free: 15.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.562e-06/0.1018, allocations: 0 / 379.1 MB, free: 15.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004869/0.1023, allocations: 496.2 kB / 379.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.404e-05/0.1024, allocations: 110.1 kB / 379.7 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.1024, allocations: 4 kB / 379.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.354e-05/0.1024, allocations: 3.938 kB / 379.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.42e-07/0.1024, allocations: 4.094 kB / 379.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.253e-06/0.1024, allocations: 7.922 kB / 379.7 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.019e-05/0.1024, allocations: 23.84 kB / 379.7 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.812e-05/0.1025, allocations: 11.94 kB / 379.8 MB, free: 14.7 MB / 350.1 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.0002574/0.1027, allocations: 279.7 kB / 380 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.066e-05/0.1028, allocations: 23.91 kB / 380 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.763e-05/0.1028, allocations: 13.59 kB / 380.1 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.1028, allocations: 0 / 380.1 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.1028, allocations: 0 / 380.1 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.1028, allocations: 3.938 kB / 380.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001511/0.1029, allocations: 165 kB / 380.2 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.1029, allocations: 3.984 kB / 380.2 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.72e-07/0.1029, allocations: 0 / 380.2 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/0.103, allocations: 0 / 380.2 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.576e-05/0.103, allocations: 20 kB / 380.3 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.103, allocations: 3.938 kB / 380.3 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.103, allocations: 4 kB / 380.3 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001017/0.104, allocations: 0.9156 MB / 381.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.047e-05/0.104, allocations: 19.84 kB / 381.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001024/0.1041, allocations: 67.94 kB / 381.3 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.197e-05/0.1042, allocations: 11.94 kB / 381.3 MB, free: 13.08 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.119e-05/0.1042, allocations: 11.98 kB / 381.3 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.676e-05/0.1042, allocations: 16 kB / 381.3 MB, free: 13.05 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.658e-05/0.1043, allocations: 91.58 kB / 381.4 MB, free: 12.96 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1043, allocations: 4.031 kB / 381.4 MB, free: 12.96 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003118/0.1046, allocations: 83.94 kB / 381.5 MB, free: 12.88 MB / 350.1 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.0005767/0.1052, allocations: 302.1 kB / 381.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009051/0.1061, allocations: 0.868 MB / 382.6 MB, free: 11.69 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.1061, allocations: 0 / 382.6 MB, free: 11.69 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005198/0.1066, allocations: 0.5332 MB / 383.2 MB, free: 11.12 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000174/0.1068, allocations: 16 kB / 383.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006742/0.1074, allocations: 0.5151 MB / 383.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.944e-05/0.1075, allocations: 110.1 kB / 383.8 MB, free: 10.42 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.02e-05/0.1076, allocations: 4 kB / 383.8 MB, free: 10.42 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.28e-05/0.1076, allocations: 8.5 kB / 383.8 MB, free: 10.41 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1076, allocations: 0 / 383.8 MB, free: 10.41 MB / 350.1 MB Notification: Performance of Templates: time 0.006226/0.1138, allocations: 3.127 MB / 386.9 MB, free: 7.305 MB / 350.1 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 -s ida -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Math/Random/Examples/GenerateRandomNumbers/GenerateRandomNumbers.csv","/var/lib/jenkins1/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.1889961659908295]