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: "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_3_2_3_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_3_2_3_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001277/0.001277, allocations: 104.6 kB / 17.16 MB, free: 6.316 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.001096/0.001096, allocations: 190 kB / 18.07 MB, free: 5.414 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.248/1.248, allocations: 205.1 MB / 223.9 MB, free: 12.4 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.001151/0.001151, allocations: 51.92 kB / 280.1 MB, free: 3.48 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1095, allocations: 46.62 MB / 326.7 MB, free: 4.793 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002401/0.112, allocations: 1.293 MB / 328 MB, free: 3.48 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009774/0.113, allocations: 476.8 kB / 328.5 MB, free: 3.016 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.247e-05/0.113, allocations: 0 / 328.5 MB, free: 3.016 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 3.41e-05/0.1131, allocations: 0 / 328.5 MB, free: 3.016 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004204/0.1135, allocations: 59.86 kB / 328.5 MB, free: 2.957 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000121/0.1136, allocations: 55.83 kB / 328.6 MB, free: 2.902 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 6.789e-05/0.1137, allocations: 43.89 kB / 328.6 MB, free: 2.859 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.154e-05/0.1137, allocations: 4 kB / 328.6 MB, free: 2.855 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.918e-05/0.1138, allocations: 15.92 kB / 328.6 MB, free: 2.84 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.163e-05/0.1138, allocations: 23.86 kB / 328.6 MB, free: 2.816 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.548e-05/0.1138, allocations: 4 kB / 328.7 MB, free: 2.812 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002181/0.1141, allocations: 111.8 kB / 328.8 MB, free: 2.703 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.304e-05/0.1141, allocations: 35.91 kB / 328.8 MB, free: 2.668 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 6.935e-05/0.1142, allocations: 47.67 kB / 328.8 MB, free: 2.621 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002622/0.1145, allocations: 179.4 kB / 329 MB, free: 2.445 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.1145, allocations: 0 / 329 MB, free: 2.445 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1145, allocations: 0 / 329 MB, free: 2.445 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.882e-06/0.1145, allocations: 0 / 329 MB, free: 2.445 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.0007125/0.1152, allocations: 0.5649 MB / 329.6 MB, free: 1.816 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.466e-05/0.1153, allocations: 8.031 kB / 329.6 MB, free: 1.809 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.823e-05/0.1154, allocations: 58.64 kB / 329.6 MB, free: 1.742 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001366/0.1155, allocations: 24.73 kB / 329.7 MB, free: 1.719 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001702/0.1157, allocations: 176.2 kB / 329.8 MB, free: 1.508 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.463e-05/0.1157, allocations: 384 / 329.8 MB, free: 1.508 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.881e-05/0.1157, allocations: 12.31 kB / 329.9 MB, free: 1.496 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003377/0.1161, allocations: 286.9 kB / 330.1 MB, free: 1.199 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.1161, allocations: 3.938 kB / 330.1 MB, free: 1.195 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.536e-05/0.1161, allocations: 7.984 kB / 330.1 MB, free: 1.188 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.1161, allocations: 0 / 330.1 MB, free: 1.188 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001624/0.1163, allocations: 144.3 kB / 330.3 MB, free: 1.043 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003648/0.1167, allocations: 381.5 kB / 330.7 MB, free: 0.6172 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003968/0.1171, allocations: 0.5053 MB / 331.2 MB, free: 96 kB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004178/0.1175, allocations: 486.1 kB / 331.6 MB, free: 15.61 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.237e-06/0.1175, allocations: 0 / 331.6 MB, free: 15.61 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003959/0.1179, allocations: 486.8 kB / 332.1 MB, free: 15.09 MB / 286.1 MB Notification: Performance of pre-optimization done (n=49): time 1.223e-06/0.1179, allocations: 4 kB / 332.1 MB, free: 15.09 MB / 286.1 MB Notification: Performance of matching and sorting (n=49): time 0.0007876/0.1187, allocations: 0.7331 MB / 332.9 MB, free: 14.34 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.643e-05/0.1188, allocations: 160.5 kB / 333 MB, free: 14.15 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.533e-05/0.1189, allocations: 106 kB / 333.1 MB, free: 14.04 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.285e-05/0.1189, allocations: 29.7 kB / 333.1 MB, free: 14 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.298e-05/0.119, allocations: 85.08 kB / 333.2 MB, free: 13.92 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.941e-05/0.1191, allocations: 98.48 kB / 333.3 MB, free: 13.82 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.737e-05/0.1192, allocations: 45.69 kB / 333.4 MB, free: 13.77 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001297/0.1193, allocations: 330.9 kB / 333.7 MB, free: 13.44 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.323e-05/0.1194, allocations: 88.41 kB / 333.8 MB, free: 13.36 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.931e-05/0.1195, allocations: 116.3 kB / 333.9 MB, free: 13.24 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003546/0.1198, allocations: 432.9 kB / 334.3 MB, free: 12.79 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.149e-06/0.1199, allocations: 3.938 kB / 334.3 MB, free: 12.78 MB / 286.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.000379/0.1202, allocations: 376.3 kB / 334.7 MB, free: 12.39 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.931e-05/0.1204, allocations: 107.3 kB / 334.8 MB, free: 12.28 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.1204, allocations: 3.984 kB / 334.8 MB, free: 12.27 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.344e-05/0.1204, allocations: 4.031 kB / 334.8 MB, free: 12.27 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.275e-05/0.1205, allocations: 4 kB / 334.8 MB, free: 12.27 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.623e-06/0.1205, allocations: 0 / 334.8 MB, free: 12.27 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.442e-05/0.1205, allocations: 27.73 kB / 334.8 MB, free: 12.24 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.877e-05/0.1206, allocations: 8 kB / 334.8 MB, free: 12.23 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],$outputAlias_r1024,$outputAlias_r128,$outputAlias_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 (5): * Single equations (assignments): 3 * 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.0002713/0.1208, allocations: 303.7 kB / 335.1 MB, free: 11.91 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.879e-05/0.1209, allocations: 27.81 kB / 335.2 MB, free: 11.88 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.988e-05/0.1209, allocations: 9.562 kB / 335.2 MB, free: 11.88 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.1209, allocations: 4 kB / 335.2 MB, free: 11.87 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.121, allocations: 3.984 kB / 335.2 MB, free: 11.87 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.121, allocations: 0 / 335.2 MB, free: 11.87 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001387/0.1224, allocations: 1.444 MB / 336.6 MB, free: 10.36 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.1224, allocations: 0 / 336.6 MB, free: 10.36 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.118e-05/0.1224, allocations: 8 kB / 336.6 MB, free: 10.35 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.018e-06/0.1224, allocations: 0 / 336.6 MB, free: 10.35 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.364e-05/0.1224, allocations: 23.92 kB / 336.7 MB, free: 10.33 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.1224, allocations: 0 / 336.7 MB, free: 10.33 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.1225, allocations: 4 kB / 336.7 MB, free: 10.32 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001299/0.1238, allocations: 1.311 MB / 338 MB, free: 8.977 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.702e-05/0.1238, allocations: 92.86 kB / 338.1 MB, free: 8.867 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001104/0.1239, allocations: 67.94 kB / 338.1 MB, free: 8.801 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.891e-05/0.124, allocations: 8 kB / 338.1 MB, free: 8.793 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.503e-05/0.1241, allocations: 11.98 kB / 338.1 MB, free: 8.781 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.938e-05/0.1241, allocations: 19.98 kB / 338.2 MB, free: 8.762 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.177e-05/0.1241, allocations: 87.16 kB / 338.2 MB, free: 8.676 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1242, allocations: 0 / 338.2 MB, free: 8.676 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003637/0.1245, allocations: 95.98 kB / 338.3 MB, free: 8.582 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 ($whenCondition1,rImpure,iImpure,$whenCondition2,$outputAlias_r64,$outputAlias_r128,$outputAlias_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]) * Number of discrete states: 46 ($outputAlias_r1024,$outputAlias_r128,$outputAlias_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,iImpure,rImpure,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 3 * 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.002532/0.1271, allocations: 2.314 MB / 340.7 MB, free: 6.238 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001807/0.1289, allocations: 2.136 MB / 342.8 MB, free: 4.074 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1289, allocations: 4.062 kB / 342.8 MB, free: 4.07 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001655/0.1306, allocations: 2.186 MB / 345 MB, free: 1.859 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002649/0.1308, allocations: 23.94 kB / 345 MB, free: 1.836 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003689/0.1345, allocations: 3.341 MB / 348.3 MB, free: 14.39 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003823/0.1349, allocations: 0.7244 MB / 349.1 MB, free: 13.64 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.054e-05/0.135, allocations: 8 kB / 349.1 MB, free: 13.63 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.256e-05/0.135, allocations: 35.42 kB / 349.1 MB, free: 13.59 MB / 302.1 MB Notification: Performance of SimCode: time 6.31e-07/0.135, allocations: 0 / 349.1 MB, free: 13.59 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01669/0.1517, allocations: 4.422 MB / 353.5 MB, free: 9.133 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002307/0.152, allocations: 241 kB / 353.8 MB, free: 8.879 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.915/2.067, allocations: 0 / 353.8 MB, free: 8.879 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Math_Random_Examples_GenerateRandomNumbers_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Math_Random_Examples_GenerateRandomNumbers.fmu > 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