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.001388/0.001388, allocations: 117 kB / 18.41 MB, free: 4.555 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001688/0.001688, allocations: 200.5 kB / 19.36 MB, free: 3.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.337/1.337, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001193/0.001194, allocations: 59.09 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1048, allocations: 50.54 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002414/0.1073, allocations: 1.236 MB / 360.1 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009117/0.1082, allocations: 464 kB / 360.6 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.952e-05/0.1082, allocations: 0 / 360.6 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.988e-05/0.1083, allocations: 3.938 kB / 360.6 MB, free: 11.64 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.0004787/0.1088, allocations: 71.73 kB / 360.7 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001354/0.1089, allocations: 67.81 kB / 360.7 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 9.363e-05/0.109, allocations: 43.84 kB / 360.8 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.72e-05/0.1091, allocations: 7.984 kB / 360.8 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.701e-05/0.1091, allocations: 23.92 kB / 360.8 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.7e-05/0.1092, allocations: 19.91 kB / 360.8 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.429e-05/0.1092, allocations: 4 kB / 360.8 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002233/0.1094, allocations: 115.8 kB / 360.9 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.297e-05/0.1095, allocations: 35.91 kB / 361 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.21e-05/0.1096, allocations: 47.62 kB / 361 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002613/0.1098, allocations: 179.4 kB / 361.2 MB, free: 11.03 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.1098, allocations: 0 / 361.2 MB, free: 11.03 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1098, allocations: 0 / 361.2 MB, free: 11.03 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.711e-06/0.1099, allocations: 0 / 361.2 MB, free: 11.03 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.0006275/0.1105, allocations: 0.5724 MB / 361.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.282e-05/0.1105, allocations: 12.03 kB / 361.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001496/0.1107, allocations: 20.75 kB / 361.8 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00016/0.1109, allocations: 180.2 kB / 362 MB, free: 10.15 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.383e-05/0.1109, allocations: 384 / 362 MB, free: 10.15 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.471e-05/0.1109, allocations: 4.375 kB / 362 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003215/0.1112, allocations: 275.8 kB / 362.2 MB, free: 9.863 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.1113, allocations: 4.188 kB / 362.3 MB, free: 9.859 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.554e-05/0.1113, allocations: 11.88 kB / 362.3 MB, free: 9.848 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.1113, allocations: 0 / 362.3 MB, free: 9.848 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001508/0.1114, allocations: 143.9 kB / 362.4 MB, free: 9.707 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001887/0.1116, allocations: 202.1 kB / 362.6 MB, free: 9.457 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004171/0.1121, allocations: 497.1 kB / 363.1 MB, free: 8.953 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003525/0.1124, allocations: 473.7 kB / 363.6 MB, free: 8.484 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.496e-06/0.1124, allocations: 0 / 363.6 MB, free: 8.484 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004996/0.1129, allocations: 480.9 kB / 364 MB, free: 7.969 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 1.222e-06/0.113, allocations: 0 / 364 MB, free: 7.969 MB / 302.1 MB Notification: Performance of matching and sorting (n=46): time 0.0008799/0.1138, allocations: 0.7153 MB / 364.7 MB, free: 7.234 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001136/0.114, allocations: 164.5 kB / 364.9 MB, free: 7.043 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001199/0.1141, allocations: 105.8 kB / 365 MB, free: 6.93 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.942e-05/0.1141, allocations: 25.7 kB / 365 MB, free: 6.898 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.106e-05/0.1142, allocations: 85.14 kB / 365.1 MB, free: 6.812 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.993e-05/0.1143, allocations: 86.75 kB / 365.2 MB, free: 6.727 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.658e-05/0.1143, allocations: 45.69 kB / 365.2 MB, free: 6.676 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.1145, allocations: 322.8 kB / 365.6 MB, free: 6.352 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.933e-05/0.1146, allocations: 84.34 kB / 365.6 MB, free: 6.27 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001/0.1147, allocations: 114.2 kB / 365.7 MB, free: 6.152 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003444/0.115, allocations: 417.4 kB / 366.2 MB, free: 5.715 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.115, allocations: 0 / 366.2 MB, free: 5.715 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003792/0.1154, allocations: 348.7 kB / 366.5 MB, free: 5.355 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.353e-05/0.1155, allocations: 115.2 kB / 366.6 MB, free: 5.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.1156, allocations: 0 / 366.6 MB, free: 5.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.37e-05/0.1156, allocations: 0 / 366.6 MB, free: 5.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.212e-06/0.1156, allocations: 0 / 366.6 MB, free: 5.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.743e-06/0.1156, allocations: 7.984 kB / 366.6 MB, free: 5.223 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.795e-05/0.1157, allocations: 23.84 kB / 366.6 MB, free: 5.199 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.233e-05/0.1157, allocations: 11.98 kB / 366.7 MB, free: 5.188 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 (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.0002772/0.116, allocations: 303.6 kB / 366.9 MB, free: 4.871 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.083e-05/0.116, allocations: 27.75 kB / 367 MB, free: 4.844 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.532e-05/0.116, allocations: 9.5 kB / 367 MB, free: 4.832 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.1161, allocations: 4 kB / 367 MB, free: 4.828 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.1161, allocations: 0 / 367 MB, free: 4.828 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.1161, allocations: 3.984 kB / 367 MB, free: 4.824 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000194/0.1163, allocations: 229.3 kB / 367.2 MB, free: 4.551 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.1163, allocations: 4 kB / 367.2 MB, free: 4.547 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.01e-07/0.1163, allocations: 0 / 367.2 MB, free: 4.547 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.1163, allocations: 3.938 kB / 367.2 MB, free: 4.543 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.346e-05/0.1163, allocations: 27.92 kB / 367.2 MB, free: 4.516 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.1163, allocations: 0 / 367.2 MB, free: 4.516 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1163, allocations: 0 / 367.2 MB, free: 4.516 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00122/0.1176, allocations: 1.217 MB / 368.5 MB, free: 3.266 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.985e-05/0.1176, allocations: 93.19 kB / 368.6 MB, free: 3.156 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001088/0.1178, allocations: 71.88 kB / 368.6 MB, free: 3.086 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.69e-05/0.1178, allocations: 12 kB / 368.6 MB, free: 3.074 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.805e-05/0.1179, allocations: 23.94 kB / 368.7 MB, free: 3.051 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.914e-05/0.1179, allocations: 23.98 kB / 368.7 MB, free: 3.027 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.229e-05/0.118, allocations: 79.27 kB / 368.8 MB, free: 2.949 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.118, allocations: 0 / 368.8 MB, free: 2.949 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003734/0.1183, allocations: 91.98 kB / 368.9 MB, free: 2.859 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 (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.0006441/0.119, allocations: 287.2 kB / 369.1 MB, free: 2.602 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001735/0.1207, allocations: 2.139 MB / 371.3 MB, free: 448 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.1208, allocations: 0 / 371.3 MB, free: 448 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1578/0.2785, allocations: 2.178 MB / 373.5 MB, free: 20.57 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003386/0.2789, allocations: 24.06 kB / 373.5 MB, free: 20.57 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008365/0.2798, allocations: 384.7 kB / 373.8 MB, free: 20.39 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002252/0.28, allocations: 0.7227 MB / 374.6 MB, free: 19.69 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.417e-05/0.28, allocations: 3.703 kB / 374.6 MB, free: 19.69 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.461e-05/0.28, allocations: 7.438 kB / 374.6 MB, free: 19.68 MB / 302.1 MB Notification: Performance of SimCode: time 2.314e-06/0.2801, allocations: 1.031 kB / 374.6 MB, free: 19.68 MB / 302.1 MB Notification: Performance of Templates: time 0.007846/0.2879, allocations: 3.003 MB / 377.6 MB, free: 19.47 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 -s cvode -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/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_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches