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) 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 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|r1024|r128|r64",fileNamePrefix="Modelica_4.0.0_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.001402/0.001402, allocations: 111.4 kB / 17.29 MB, free: 6.219 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.001129/0.001129, allocations: 197.3 kB / 18.21 MB, free: 5.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.357/1.357, allocations: 222.9 MB / 241.9 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001049/0.001049, allocations: 51.52 kB / 300.8 MB, free: 6.223 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1133, allocations: 49.44 MB / 350.2 MB, free: 4.781 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002462/0.1158, allocations: 1.29 MB / 351.5 MB, free: 3.477 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008824/0.1168, allocations: 459.9 kB / 352 MB, free: 3.027 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.023e-05/0.1168, allocations: 0 / 352 MB, free: 3.027 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.091e-05/0.1169, allocations: 3.984 kB / 352 MB, free: 3.023 MB / 286.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.0004611/0.1173, allocations: 71.81 kB / 352 MB, free: 2.953 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001696/0.1175, allocations: 59.88 kB / 352.1 MB, free: 2.895 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000101/0.1176, allocations: 47.84 kB / 352.1 MB, free: 2.848 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.073e-05/0.1177, allocations: 0 / 352.1 MB, free: 2.848 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.49e-05/0.1177, allocations: 23.97 kB / 352.2 MB, free: 2.824 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.248e-05/0.1178, allocations: 11.94 kB / 352.2 MB, free: 2.812 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.355e-05/0.1178, allocations: 4 kB / 352.2 MB, free: 2.809 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002198/0.118, allocations: 123.8 kB / 352.3 MB, free: 2.688 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.225e-05/0.1181, allocations: 31.86 kB / 352.3 MB, free: 2.656 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.111e-05/0.1181, allocations: 47.69 kB / 352.4 MB, free: 2.609 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001845/0.1183, allocations: 127.7 kB / 352.5 MB, free: 2.484 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.1183, allocations: 4 kB / 352.5 MB, free: 2.48 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1183, allocations: 0 / 352.5 MB, free: 2.48 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.059e-06/0.1183, allocations: 3.938 kB / 352.5 MB, free: 2.477 MB / 286.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.000551/0.1189, allocations: 0.5568 MB / 353.1 MB, free: 1.855 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.322e-05/0.1189, allocations: 12.03 kB / 353.1 MB, free: 1.844 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001251/0.1191, allocations: 16.75 kB / 353.1 MB, free: 1.828 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001284/0.1192, allocations: 176.5 kB / 353.3 MB, free: 1.617 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.233e-05/0.1192, allocations: 4.375 kB / 353.3 MB, free: 1.613 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.388e-05/0.1193, allocations: 8.375 kB / 353.3 MB, free: 1.605 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002918/0.1195, allocations: 283.7 kB / 353.6 MB, free: 1.316 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.699e-05/0.1196, allocations: 4.125 kB / 353.6 MB, free: 1.312 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.4e-05/0.1196, allocations: 3.938 kB / 353.6 MB, free: 1.309 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.787e-06/0.1196, allocations: 4 kB / 353.6 MB, free: 1.305 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001436/0.1198, allocations: 139.9 kB / 353.7 MB, free: 1.168 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001736/0.1199, allocations: 202.3 kB / 353.9 MB, free: 0.918 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003522/0.1203, allocations: 0.4893 MB / 354.4 MB, free: 420 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003249/0.1206, allocations: 465.8 kB / 354.9 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.027e-06/0.1206, allocations: 3.984 kB / 354.9 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004402/0.1211, allocations: 480.8 kB / 355.3 MB, free: 15.43 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 1.333e-06/0.1211, allocations: 4 kB / 355.3 MB, free: 15.42 MB / 302.1 MB Notification: Performance of matching and sorting (n=46): time 0.0007818/0.1219, allocations: 0.7231 MB / 356.1 MB, free: 14.68 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.289e-05/0.122, allocations: 156.5 kB / 356.2 MB, free: 14.5 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.427e-05/0.1221, allocations: 105.8 kB / 356.3 MB, free: 14.38 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.599e-05/0.1221, allocations: 25.7 kB / 356.3 MB, free: 14.35 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.455e-05/0.1221, allocations: 81.14 kB / 356.4 MB, free: 14.27 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.789e-05/0.1222, allocations: 82.73 kB / 356.5 MB, free: 14.19 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.056e-05/0.1223, allocations: 41.77 kB / 356.5 MB, free: 14.14 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001104/0.1224, allocations: 334.8 kB / 356.9 MB, free: 13.81 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.598e-05/0.1225, allocations: 80.34 kB / 356.9 MB, free: 13.73 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.847e-05/0.1226, allocations: 110.2 kB / 357 MB, free: 13.62 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003097/0.1229, allocations: 421.3 kB / 357.5 MB, free: 13.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.1229, allocations: 0 / 357.5 MB, free: 13.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003409/0.1233, allocations: 344.8 kB / 357.8 MB, free: 12.82 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.287e-05/0.1233, allocations: 111.3 kB / 357.9 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.1234, allocations: 4.094 kB / 357.9 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.097e-05/0.1234, allocations: 0 / 357.9 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.558e-06/0.1234, allocations: 3.938 kB / 357.9 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.1234, allocations: 7.938 kB / 357.9 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.445e-05/0.1235, allocations: 19.75 kB / 357.9 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.715e-05/0.1235, allocations: 8 kB / 357.9 MB, free: 12.66 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.0002669/0.1237, allocations: 303.7 kB / 358.2 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.883e-05/0.1238, allocations: 27.75 kB / 358.3 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.367e-05/0.1238, allocations: 9.562 kB / 358.3 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.1238, allocations: 0 / 358.3 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.1238, allocations: 7.938 kB / 358.3 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.1239, allocations: 0 / 358.3 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002031/0.1241, allocations: 237.3 kB / 358.5 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.1241, allocations: 0 / 358.5 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.352e-06/0.1241, allocations: 4 kB / 358.5 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.039e-06/0.1241, allocations: 3.938 kB / 358.5 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.546e-05/0.1241, allocations: 19.98 kB / 358.5 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.1241, allocations: 0 / 358.5 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1241, allocations: 0 / 358.5 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00117/0.1253, allocations: 1.228 MB / 359.8 MB, free: 10.73 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.954e-05/0.1254, allocations: 92.86 kB / 359.9 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001/0.1255, allocations: 71.88 kB / 359.9 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.405e-05/0.1256, allocations: 12 kB / 359.9 MB, free: 10.54 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.64e-05/0.1256, allocations: 11.98 kB / 360 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.466e-05/0.1256, allocations: 15.98 kB / 360 MB, free: 10.51 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.642e-05/0.1257, allocations: 83.28 kB / 360.1 MB, free: 10.43 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1257, allocations: 0 / 360.1 MB, free: 10.43 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003311/0.126, allocations: 87.98 kB / 360.1 MB, free: 10.34 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.0005298/0.1266, allocations: 311.6 kB / 360.4 MB, free: 10.06 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001606/0.1282, allocations: 2.138 MB / 362.6 MB, free: 7.895 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.1282, allocations: 0 / 362.6 MB, free: 7.895 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001499/0.1297, allocations: 2.178 MB / 364.8 MB, free: 5.691 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000201/0.1299, allocations: 20 kB / 364.8 MB, free: 5.672 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006119/0.1305, allocations: 446.1 kB / 365.2 MB, free: 5.195 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003253/0.1309, allocations: 0.7206 MB / 365.9 MB, free: 4.449 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.538e-05/0.1309, allocations: 11.44 kB / 366 MB, free: 4.438 MB / 302.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1309, allocations: 0 / 366 MB, free: 4.438 MB / 302.1 MB Notification: Performance of Templates: time 0.005245/0.1362, allocations: 2.855 MB / 368.8 MB, free: 1.582 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.makefile (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 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) 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) Reference file matches