Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Math.Random.Examples.GenerateRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|r1024|r128|r64",fileNamePrefix="Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers") translateModel(Modelica.Math.Random.Examples.GenerateRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|r1024|r128|r64",fileNamePrefix="Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001141/0.001141, allocations: 96.23 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001569/0.001569, allocations: 205.4 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.352/1.352, allocations: 227.2 MB / 245.9 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003139/0.000314, allocations: 4 kB / 306.6 MB, free: 1.43 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1015, allocations: 51.49 MB / 358.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.001097/0.1027, allocations: 0.9588 MB / 359 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007811/0.1035, allocations: 424.3 kB / 359.4 MB, free: 12.55 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.692e-05/0.1035, allocations: 0 / 359.4 MB, free: 12.55 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.291e-05/0.1036, allocations: 3.938 kB / 359.4 MB, free: 12.54 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.0003747/0.1039, allocations: 63.72 kB / 359.5 MB, free: 12.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001178/0.1041, allocations: 47.83 kB / 359.5 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 5.947e-05/0.1041, allocations: 23.97 kB / 359.6 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.261e-05/0.1042, allocations: 4 kB / 359.6 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.521e-05/0.1042, allocations: 27.91 kB / 359.6 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.035e-05/0.1043, allocations: 11.92 kB / 359.6 MB, free: 12.37 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.232e-05/0.1043, allocations: 7.938 kB / 359.6 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001657/0.1045, allocations: 83.92 kB / 359.7 MB, free: 12.28 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.803e-05/0.1045, allocations: 27.91 kB / 359.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.811e-05/0.1046, allocations: 49.58 kB / 359.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001552/0.1047, allocations: 115.7 kB / 359.9 MB, free: 12.08 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.145e-06/0.1047, allocations: 0 / 359.9 MB, free: 12.08 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1048, allocations: 4 kB / 359.9 MB, free: 12.08 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.747e-06/0.1048, allocations: 0 / 359.9 MB, free: 12.08 MB / 302.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.0005136/0.1053, allocations: 0.5553 MB / 360.4 MB, free: 11.46 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.349e-05/0.1053, allocations: 8.031 kB / 360.5 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001191/0.1054, allocations: 19.81 kB / 360.5 MB, free: 11.44 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001221/0.1056, allocations: 175.2 kB / 360.6 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.266e-05/0.1056, allocations: 0 / 360.6 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.753e-05/0.1056, allocations: 12 kB / 360.7 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002757/0.1059, allocations: 279.1 kB / 360.9 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.813e-06/0.1059, allocations: 8 kB / 360.9 MB, free: 10.92 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.288e-05/0.1059, allocations: 7.984 kB / 360.9 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.707e-06/0.1059, allocations: 0 / 360.9 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000132/0.1061, allocations: 147.9 kB / 361.1 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000153/0.1062, allocations: 198.3 kB / 361.3 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003272/0.1066, allocations: 493.1 kB / 361.8 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.28e-06/0.1066, allocations: 8.031 kB / 361.8 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003766/0.107, allocations: 476.8 kB / 362.2 MB, free: 9.504 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 9.12e-07/0.107, allocations: 0 / 362.2 MB, free: 9.504 MB / 302.1 MB Notification: Performance of matching and sorting (n=46): time 0.0007955/0.1078, allocations: 0.8816 MB / 363.1 MB, free: 8.566 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.371e-05/0.1079, allocations: 156.5 kB / 363.3 MB, free: 8.383 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.837e-05/0.1079, allocations: 105.9 kB / 363.4 MB, free: 8.27 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.392e-05/0.108, allocations: 25.7 kB / 363.4 MB, free: 8.238 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.382e-05/0.108, allocations: 89.14 kB / 363.5 MB, free: 8.148 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.749e-05/0.1081, allocations: 86.8 kB / 363.6 MB, free: 8.062 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.381e-06/0.1081, allocations: 4 kB / 363.6 MB, free: 8.059 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.1082, allocations: 326.8 kB / 363.9 MB, free: 7.73 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.431e-05/0.1083, allocations: 84.28 kB / 364 MB, free: 7.648 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001034/0.1084, allocations: 114.2 kB / 364.1 MB, free: 7.531 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001569/0.1085, allocations: 204.4 kB / 364.3 MB, free: 7.32 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.1086, allocations: 0 / 364.3 MB, free: 7.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003112/0.1089, allocations: 348.7 kB / 364.6 MB, free: 6.961 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.9e-05/0.109, allocations: 107.3 kB / 364.7 MB, free: 6.844 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.109, allocations: 3.953 kB / 364.7 MB, free: 6.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.133e-05/0.109, allocations: 0 / 364.7 MB, free: 6.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.665e-06/0.109, allocations: 0 / 364.7 MB, free: 6.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.664e-06/0.109, allocations: 11.92 kB / 364.8 MB, free: 6.828 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.291e-05/0.1091, allocations: 23.75 kB / 364.8 MB, free: 6.805 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.718e-05/0.1091, allocations: 8 kB / 364.8 MB, free: 6.797 MB / 302.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 ($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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002411/0.1093, allocations: 299.7 kB / 365.1 MB, free: 6.484 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.476e-05/0.1094, allocations: 23.81 kB / 365.1 MB, free: 6.461 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.104e-05/0.1094, allocations: 9.562 kB / 365.1 MB, free: 6.449 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.1094, allocations: 7.938 kB / 365.1 MB, free: 6.441 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.1094, allocations: 4 kB / 365.1 MB, free: 6.438 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.1094, allocations: 0 / 365.1 MB, free: 6.438 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001728/0.1096, allocations: 229.3 kB / 365.3 MB, free: 6.164 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.1096, allocations: 0 / 365.3 MB, free: 6.164 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.61e-07/0.1096, allocations: 4 kB / 365.3 MB, free: 6.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.1096, allocations: 0 / 365.3 MB, free: 6.16 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.739e-05/0.1097, allocations: 19.98 kB / 365.4 MB, free: 6.141 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.1097, allocations: 0 / 365.4 MB, free: 6.141 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.1097, allocations: 3.953 kB / 365.4 MB, free: 6.137 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001057/0.1107, allocations: 1.234 MB / 366.6 MB, free: 4.863 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.628e-05/0.1108, allocations: 101.2 kB / 366.7 MB, free: 4.746 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.987e-05/0.1109, allocations: 63.94 kB / 366.8 MB, free: 4.684 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.442e-05/0.111, allocations: 15.95 kB / 366.8 MB, free: 4.668 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.258e-05/0.111, allocations: 8 kB / 366.8 MB, free: 4.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.574e-05/0.111, allocations: 28 kB / 366.8 MB, free: 4.633 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.404e-05/0.1111, allocations: 79.28 kB / 366.9 MB, free: 4.555 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1111, allocations: 4 kB / 366.9 MB, free: 4.551 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003002/0.1114, allocations: 87.98 kB / 367 MB, free: 4.465 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004713/0.1119, allocations: 299.4 kB / 367.3 MB, free: 4.191 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001495/0.1134, allocations: 2.127 MB / 369.4 MB, free: 2.039 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.1134, allocations: 4.125 kB / 369.4 MB, free: 2.035 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1548/0.2682, allocations: 2.178 MB / 371.6 MB, free: 21.27 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001969/0.2685, allocations: 11.64 kB / 371.6 MB, free: 21.27 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006705/0.2691, allocations: 398 kB / 372 MB, free: 21.1 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001591/0.2693, allocations: 0.729 MB / 372.7 MB, free: 20.39 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.278e-06/0.2693, allocations: 2.188 kB / 372.7 MB, free: 20.39 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.29e-05/0.2693, allocations: 8.625 kB / 372.7 MB, free: 20.39 MB / 302.1 MB Notification: Performance of SimCode: time 7.71e-07/0.2694, allocations: 0 / 372.7 MB, free: 20.39 MB / 302.1 MB Notification: Performance of Templates: time 0.006477/0.2758, allocations: 2.758 MB / 375.5 MB, free: 20.14 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.makefile (rm -f Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & ./Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","../files/Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches