Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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=5000,variableFilter="time|r1024|r128|r64",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001115/0.001119, allocations: 115 kB / 17.93 MB, free: 5.566 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001342/0.001342, allocations: 189.4 kB / 18.86 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.451/1.451, allocations: 205.1 MB / 224.7 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001181/0.001181, allocations: 47.94 kB / 280.8 MB, free: 3.488 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09975/0.1009, allocations: 46.63 MB / 327.4 MB, free: 4.785 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.003276/0.1043, allocations: 1.3 MB / 328.7 MB, free: 3.465 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00117/0.1055, allocations: 449.5 kB / 329.2 MB, free: 3.027 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.377e-05/0.1055, allocations: 3.938 kB / 329.2 MB, free: 3.023 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 4.154e-05/0.1056, allocations: 0 / 329.2 MB, free: 3.023 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005513/0.1062, allocations: 67.86 kB / 329.2 MB, free: 2.957 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002333/0.1064, allocations: 51.89 kB / 329.3 MB, free: 2.906 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001197/0.1065, allocations: 39.91 kB / 329.3 MB, free: 2.867 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.349e-05/0.1066, allocations: 7.984 kB / 329.3 MB, free: 2.859 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.918e-05/0.1067, allocations: 19.92 kB / 329.4 MB, free: 2.84 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.294e-05/0.1067, allocations: 27.91 kB / 329.4 MB, free: 2.812 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.633e-05/0.1068, allocations: 4 kB / 329.4 MB, free: 2.809 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002752/0.107, allocations: 115.8 kB / 329.5 MB, free: 2.695 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.183e-05/0.1071, allocations: 43.78 kB / 329.5 MB, free: 2.652 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 6.287e-05/0.1072, allocations: 51.67 kB / 329.6 MB, free: 2.602 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001682/0.1074, allocations: 119.7 kB / 329.7 MB, free: 2.484 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.1074, allocations: 0 / 329.7 MB, free: 2.484 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1074, allocations: 0 / 329.7 MB, free: 2.484 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.1074, allocations: 0 / 329.7 MB, free: 2.484 MB / 270.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.0005547/0.108, allocations: 0.5726 MB / 330.3 MB, free: 1.848 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/0.108, allocations: 8.031 kB / 330.3 MB, free: 1.84 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001326/0.1081, allocations: 24.73 kB / 330.3 MB, free: 1.816 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000147/0.1083, allocations: 172.3 kB / 330.5 MB, free: 1.609 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.744e-05/0.1083, allocations: 4.375 kB / 330.5 MB, free: 1.605 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.797e-05/0.1083, allocations: 4.375 kB / 330.5 MB, free: 1.602 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003578/0.1087, allocations: 275.8 kB / 330.8 MB, free: 1.32 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.1087, allocations: 4.188 kB / 330.8 MB, free: 1.316 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.856e-05/0.1088, allocations: 7.938 kB / 330.8 MB, free: 1.309 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.578e-06/0.1088, allocations: 4 kB / 330.8 MB, free: 1.305 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002233/0.109, allocations: 151.7 kB / 330.9 MB, free: 1.156 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002426/0.1093, allocations: 202.3 kB / 331.1 MB, free: 0.9062 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005371/0.1098, allocations: 489.1 kB / 331.6 MB, free: 420 kB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004816/0.1103, allocations: 469.8 kB / 332.1 MB, free: 15.94 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.088e-05/0.1103, allocations: 7.938 kB / 332.1 MB, free: 15.93 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006667/0.111, allocations: 480.6 kB / 332.5 MB, free: 15.42 MB / 286.1 MB Notification: Performance of pre-optimization done (n=46): time 1.633e-06/0.111, allocations: 0 / 332.5 MB, free: 15.42 MB / 286.1 MB Notification: Performance of matching and sorting (n=46): time 0.001113/0.1121, allocations: 0.7154 MB / 333.3 MB, free: 14.68 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001365/0.1123, allocations: 160.5 kB / 333.4 MB, free: 14.5 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001058/0.1124, allocations: 101.9 kB / 333.5 MB, free: 14.39 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.012e-05/0.1124, allocations: 29.7 kB / 333.5 MB, free: 14.35 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.96e-05/0.1125, allocations: 85.12 kB / 333.6 MB, free: 14.27 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.828e-05/0.1126, allocations: 90.66 kB / 333.7 MB, free: 14.18 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.461e-05/0.1127, allocations: 37.7 kB / 333.7 MB, free: 14.14 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.1129, allocations: 326.8 kB / 334.1 MB, free: 13.81 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001132/0.113, allocations: 84.34 kB / 334.1 MB, free: 13.73 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001284/0.1131, allocations: 110.4 kB / 334.3 MB, free: 13.61 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004827/0.1136, allocations: 417.4 kB / 334.7 MB, free: 13.18 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.1136, allocations: 0 / 334.7 MB, free: 13.18 MB / 286.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004956/0.1141, allocations: 352.7 kB / 335 MB, free: 12.81 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001237/0.1143, allocations: 111.3 kB / 335.1 MB, free: 12.69 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.744e-06/0.1143, allocations: 4 kB / 335.1 MB, free: 12.69 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.515e-05/0.1143, allocations: 0 / 335.1 MB, free: 12.69 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.794e-06/0.1143, allocations: 336 / 335.1 MB, free: 12.69 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.1143, allocations: 0 / 335.1 MB, free: 12.69 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001111/0.1145, allocations: 27.78 kB / 335.1 MB, free: 12.66 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.569e-05/0.1145, allocations: 15.94 kB / 335.2 MB, free: 12.64 MB / 286.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.0003441/0.1148, allocations: 287.7 kB / 335.4 MB, free: 12.34 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.461e-05/0.1149, allocations: 35.75 kB / 335.5 MB, free: 12.3 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.998e-05/0.115, allocations: 13.55 kB / 335.5 MB, free: 12.29 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.115, allocations: 0 / 335.5 MB, free: 12.29 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.115, allocations: 3.938 kB / 335.5 MB, free: 12.29 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.115, allocations: 0 / 335.5 MB, free: 12.29 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002491/0.1153, allocations: 233.3 kB / 335.7 MB, free: 12.01 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.1153, allocations: 0 / 335.7 MB, free: 12.01 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.31e-07/0.1153, allocations: 3.938 kB / 335.7 MB, free: 12.01 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.48e-06/0.1153, allocations: 7.938 kB / 335.7 MB, free: 12 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.948e-05/0.1153, allocations: 15.98 kB / 335.7 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.536e-06/0.1153, allocations: 8 kB / 335.8 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.1154, allocations: 0 / 335.8 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001722/0.1171, allocations: 1.228 MB / 337 MB, free: 10.71 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.422e-05/0.1172, allocations: 92.86 kB / 337.1 MB, free: 10.61 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001591/0.1173, allocations: 71.88 kB / 337.1 MB, free: 10.54 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.071e-05/0.1174, allocations: 12 kB / 337.2 MB, free: 10.52 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.252e-05/0.1175, allocations: 11.98 kB / 337.2 MB, free: 10.51 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.1e-05/0.1176, allocations: 20.03 kB / 337.2 MB, free: 10.49 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.884e-05/0.1176, allocations: 87.27 kB / 337.3 MB, free: 10.41 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1176, allocations: 3.938 kB / 337.3 MB, free: 10.4 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005372/0.1182, allocations: 84 kB / 337.4 MB, free: 10.32 MB / 286.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.0007634/0.119, allocations: 298.5 kB / 337.7 MB, free: 10.03 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.002407/0.1214, allocations: 2.127 MB / 339.8 MB, free: 7.879 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.1214, allocations: 4.125 kB / 339.8 MB, free: 7.875 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002081/0.1235, allocations: 2.19 MB / 342 MB, free: 5.66 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002647/0.1238, allocations: 24 kB / 342 MB, free: 5.637 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006508/0.1244, allocations: 442.1 kB / 342.4 MB, free: 5.164 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002682/0.1247, allocations: 0.7245 MB / 343.2 MB, free: 4.414 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.626e-05/0.1247, allocations: 7.438 kB / 343.2 MB, free: 4.406 MB / 286.1 MB Notification: Performance of SimCode: time 7.41e-07/0.1248, allocations: 7.938 kB / 343.2 MB, free: 4.398 MB / 286.1 MB Notification: Performance of Templates: time 0.005041/0.1298, allocations: 2.859 MB / 346 MB, free: 1.539 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.makefile (rm -f Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & ./Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Math/Random/Examples/GenerateRandomNumbers/GenerateRandomNumbers.csv","../files/Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches