Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Math.Random.Examples.GenerateRandomNumbers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001628/0.001628, allocations: 105.6 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001422/0.001422, allocations: 208.1 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.469/1.469, allocations: 227.7 MB / 247.7 MB, free: 10.33 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002002/0.002002, allocations: 72.05 kB / 307.9 MB, free: 0.4922 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1135, allocations: 50.54 MB / 358.4 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002636/0.1162, allocations: 1.237 MB / 359.7 MB, free: 12.7 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001043/0.1173, allocations: 468 kB / 360.1 MB, free: 12.24 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.229e-05/0.1173, allocations: 3.938 kB / 360.1 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.212e-05/0.1174, allocations: 0 / 360.1 MB, free: 12.23 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.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.0004691/0.1178, allocations: 71.73 kB / 360.2 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001609/0.118, allocations: 63.75 kB / 360.3 MB, free: 12.1 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001109/0.1181, allocations: 51.83 kB / 360.3 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.863e-05/0.1182, allocations: 8 kB / 360.3 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.478e-05/0.1182, allocations: 19.92 kB / 360.3 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.312e-05/0.1183, allocations: 19.91 kB / 360.4 MB, free: 12 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.342e-05/0.1183, allocations: 0 / 360.4 MB, free: 12 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002378/0.1185, allocations: 123.8 kB / 360.5 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.303e-05/0.1186, allocations: 27.92 kB / 360.5 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.595e-05/0.1187, allocations: 51.67 kB / 360.6 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002649/0.1189, allocations: 171.4 kB / 360.7 MB, free: 11.64 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.119, allocations: 4 kB / 360.7 MB, free: 11.63 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.119, allocations: 0 / 360.7 MB, free: 11.63 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.611e-06/0.119, allocations: 0 / 360.7 MB, free: 11.63 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.0007311/0.1197, allocations: 0.5646 MB / 361.3 MB, free: 11 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/0.1198, allocations: 8.031 kB / 361.3 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00014/0.1199, allocations: 24.75 kB / 361.3 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000185/0.1201, allocations: 184.4 kB / 361.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.604e-05/0.1201, allocations: 8.312 kB / 361.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.394e-05/0.1201, allocations: 4.375 kB / 361.5 MB, free: 10.74 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003616/0.1205, allocations: 271.8 kB / 361.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.1205, allocations: 4.188 kB / 361.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.699e-05/0.1206, allocations: 7.938 kB / 361.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.83e-06/0.1206, allocations: 0 / 361.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001677/0.1207, allocations: 147.9 kB / 361.9 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002347/0.121, allocations: 198.1 kB / 362.1 MB, free: 10.06 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004883/0.1215, allocations: 493.2 kB / 362.6 MB, free: 9.562 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003979/0.1219, allocations: 473.7 kB / 363.1 MB, free: 9.094 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.98e-06/0.1219, allocations: 0 / 363.1 MB, free: 9.094 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005753/0.1225, allocations: 476.8 kB / 363.5 MB, free: 8.582 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 1.202e-06/0.1225, allocations: 3.938 kB / 363.5 MB, free: 8.578 MB / 302.1 MB Notification: Performance of matching and sorting (n=46): time 0.0009455/0.1234, allocations: 0.7153 MB / 364.3 MB, free: 7.844 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001221/0.1236, allocations: 164.6 kB / 364.4 MB, free: 7.652 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.757e-05/0.1237, allocations: 101.8 kB / 364.5 MB, free: 7.543 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.081e-05/0.1237, allocations: 29.7 kB / 364.5 MB, free: 7.508 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.765e-05/0.1238, allocations: 81.14 kB / 364.6 MB, free: 7.426 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.988e-05/0.1239, allocations: 86.81 kB / 364.7 MB, free: 7.34 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.228e-05/0.1239, allocations: 41.69 kB / 364.8 MB, free: 7.293 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001778/0.1241, allocations: 322.8 kB / 365.1 MB, free: 6.969 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.26e-05/0.1242, allocations: 84.34 kB / 365.1 MB, free: 6.887 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000135/0.1244, allocations: 114.2 kB / 365.3 MB, free: 6.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003978/0.1248, allocations: 421.7 kB / 365.7 MB, free: 6.328 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.1248, allocations: 0 / 365.7 MB, free: 6.328 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004255/0.1252, allocations: 356.6 kB / 366 MB, free: 5.961 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000124/0.1253, allocations: 113.3 kB / 366.1 MB, free: 5.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/0.1254, allocations: 4 kB / 366.1 MB, free: 5.836 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/0.1254, allocations: 0 / 366.1 MB, free: 5.836 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.236e-06/0.1254, allocations: 3.984 kB / 366.1 MB, free: 5.832 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-06/0.1254, allocations: 96 / 366.1 MB, free: 5.832 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.512e-05/0.1255, allocations: 27.75 kB / 366.2 MB, free: 5.805 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.971e-05/0.1255, allocations: 8 kB / 366.2 MB, free: 5.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 (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.0003392/0.1258, allocations: 295.7 kB / 366.5 MB, free: 5.488 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.821e-05/0.1259, allocations: 27.75 kB / 366.5 MB, free: 5.461 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.854e-05/0.1259, allocations: 13.55 kB / 366.5 MB, free: 5.445 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.706e-06/0.1259, allocations: 0 / 366.5 MB, free: 5.445 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.1259, allocations: 0 / 366.5 MB, free: 5.445 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.1259, allocations: 0 / 366.5 MB, free: 5.445 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002407/0.1262, allocations: 237.3 kB / 366.7 MB, free: 5.164 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.1262, allocations: 0 / 366.7 MB, free: 5.164 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.12e-07/0.1262, allocations: 0 / 366.7 MB, free: 5.164 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.516e-06/0.1262, allocations: 3.938 kB / 366.7 MB, free: 5.16 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.179e-05/0.1263, allocations: 23.98 kB / 366.8 MB, free: 5.137 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.17e-06/0.1263, allocations: 4 kB / 366.8 MB, free: 5.133 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.1263, allocations: 4 kB / 366.8 MB, free: 5.129 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001416/0.1277, allocations: 1.22 MB / 368 MB, free: 3.875 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.01e-05/0.1278, allocations: 96.84 kB / 368.1 MB, free: 3.762 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001102/0.1279, allocations: 71.88 kB / 368.2 MB, free: 3.691 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.522e-05/0.128, allocations: 8 kB / 368.2 MB, free: 3.684 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.916e-05/0.128, allocations: 12.03 kB / 368.2 MB, free: 3.672 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.371e-05/0.128, allocations: 19.98 kB / 368.2 MB, free: 3.652 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.319e-05/0.1281, allocations: 83.22 kB / 368.3 MB, free: 3.57 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1281, allocations: 0 / 368.3 MB, free: 3.57 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003522/0.1285, allocations: 95.92 kB / 368.4 MB, free: 3.477 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.0006368/0.1291, allocations: 283.8 kB / 368.6 MB, free: 3.227 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001979/0.1311, allocations: 2.138 MB / 370.8 MB, free: 1.062 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.1311, allocations: 0 / 370.8 MB, free: 1.062 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1628/0.294, allocations: 2.183 MB / 373 MB, free: 20.98 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002768/0.2943, allocations: 22.75 kB / 373 MB, free: 20.98 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007325/0.295, allocations: 425.8 kB / 373.4 MB, free: 20.79 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001739/0.2952, allocations: 0.7228 MB / 374.1 MB, free: 20.09 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.413e-05/0.2952, allocations: 8.703 kB / 374.1 MB, free: 20.08 MB / 302.1 MB Notification: Performance of SimCode: time 8.02e-07/0.2952, allocations: 1.312 kB / 374.1 MB, free: 20.08 MB / 302.1 MB Notification: Performance of Templates: time 0.006227/0.3015, allocations: 2.859 MB / 377 MB, free: 19.83 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Math.Random.Examples.GenerateRandomNumbers.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & ./Modelica_4.1.0-beta.om_Modelica.Math.Random.Examples.GenerateRandomNumbers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Math/Random/Examples/GenerateRandomNumbers/GenerateRandomNumbers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Math.Random.Examples.GenerateRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches