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.001001/0.001001, allocations: 102.9 kB / 17.58 MB, free: 5.418 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.001076/0.001076, allocations: 191.9 kB / 18.51 MB, free: 4.504 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.424/1.424, allocations: 205.1 MB / 224.4 MB, free: 12.29 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.001436/0.001436, allocations: 55.92 kB / 280.8 MB, free: 3.082 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1048, allocations: 46.63 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.003027/0.1079, allocations: 1.222 MB / 328.6 MB, free: 3.141 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001035/0.109, allocations: 462.3 kB / 329.1 MB, free: 2.688 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.85e-05/0.109, allocations: 0 / 329.1 MB, free: 2.688 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 5.086e-05/0.1091, allocations: 7.984 kB / 329.1 MB, free: 2.68 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005433/0.1097, allocations: 71.73 kB / 329.1 MB, free: 2.609 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001999/0.1099, allocations: 59.77 kB / 329.2 MB, free: 2.551 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001108/0.11, allocations: 47.89 kB / 329.2 MB, free: 2.504 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.248e-05/0.1101, allocations: 3.938 kB / 329.2 MB, free: 2.5 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.58e-05/0.1101, allocations: 15.98 kB / 329.3 MB, free: 2.484 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.169e-05/0.1101, allocations: 27.91 kB / 329.3 MB, free: 2.457 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.583e-05/0.1102, allocations: 4 kB / 329.3 MB, free: 2.453 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002703/0.1104, allocations: 119.8 kB / 329.4 MB, free: 2.336 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 4.961e-05/0.1105, allocations: 35.84 kB / 329.4 MB, free: 2.301 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 5.946e-05/0.1106, allocations: 51.67 kB / 329.5 MB, free: 2.25 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002575/0.1108, allocations: 171.5 kB / 329.7 MB, free: 2.082 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1108, allocations: 3.938 kB / 329.7 MB, free: 2.078 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.1109, allocations: 0 / 329.7 MB, free: 2.078 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.1109, allocations: 3.938 kB / 329.7 MB, free: 2.074 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.000558/0.1114, allocations: 0.5649 MB / 330.2 MB, free: 1.445 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.1115, allocations: 12.03 kB / 330.2 MB, free: 1.434 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.129e-05/0.1116, allocations: 62.61 kB / 330.3 MB, free: 1.363 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001377/0.1117, allocations: 20.75 kB / 330.3 MB, free: 1.344 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001493/0.1119, allocations: 176.2 kB / 330.5 MB, free: 1.133 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.852e-05/0.1119, allocations: 8.312 kB / 330.5 MB, free: 1.125 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.853e-05/0.1119, allocations: 4.375 kB / 330.5 MB, free: 1.121 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000293/0.1122, allocations: 278.9 kB / 330.8 MB, free: 0.832 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.453e-05/0.1122, allocations: 7.938 kB / 330.8 MB, free: 0.8242 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.319e-05/0.1122, allocations: 4 kB / 330.8 MB, free: 0.8203 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.72e-05/0.1123, allocations: 0 / 330.8 MB, free: 0.8203 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001491/0.1124, allocations: 152.2 kB / 330.9 MB, free: 0.668 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003287/0.1128, allocations: 381.5 kB / 331.3 MB, free: 248 kB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003996/0.1132, allocations: 0.5014 MB / 331.8 MB, free: 15.72 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003344/0.1135, allocations: 482.1 kB / 332.3 MB, free: 15.24 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.018e-05/0.1135, allocations: 0 / 332.3 MB, free: 15.24 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004646/0.114, allocations: 490.8 kB / 332.8 MB, free: 14.72 MB / 286.1 MB Notification: Performance of pre-optimization done (n=49): time 1.272e-06/0.114, allocations: 4 kB / 332.8 MB, free: 14.72 MB / 286.1 MB Notification: Performance of matching and sorting (n=49): time 0.0008106/0.1148, allocations: 0.7331 MB / 333.5 MB, free: 13.97 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.875e-05/0.1149, allocations: 164.5 kB / 333.7 MB, free: 13.78 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.037e-05/0.115, allocations: 97.86 kB / 333.8 MB, free: 13.68 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.8e-05/0.115, allocations: 29.7 kB / 333.8 MB, free: 13.64 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.911e-05/0.1151, allocations: 85.14 kB / 333.9 MB, free: 13.55 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.9e-05/0.1152, allocations: 98.55 kB / 334 MB, free: 13.46 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.427e-05/0.1152, allocations: 41.7 kB / 334 MB, free: 13.41 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001138/0.1153, allocations: 330.8 kB / 334.3 MB, free: 13.08 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.547e-05/0.1154, allocations: 92.44 kB / 334.4 MB, free: 12.99 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001019/0.1155, allocations: 112.3 kB / 334.5 MB, free: 12.88 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003201/0.1159, allocations: 437.2 kB / 335 MB, free: 12.42 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.1159, allocations: 3.938 kB / 335 MB, free: 12.41 MB / 286.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0003666/0.1163, allocations: 368.5 kB / 335.3 MB, free: 12.04 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001026/0.1164, allocations: 111.3 kB / 335.4 MB, free: 11.91 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.1164, allocations: 0 / 335.4 MB, free: 11.91 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/0.1164, allocations: 3.938 kB / 335.4 MB, free: 11.91 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.234e-05/0.1165, allocations: 8.031 kB / 335.4 MB, free: 11.9 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.135e-05/0.1165, allocations: 7.984 kB / 335.4 MB, free: 11.89 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.446e-05/0.1166, allocations: 23.69 kB / 335.5 MB, free: 11.87 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.899e-05/0.1166, allocations: 8 kB / 335.5 MB, free: 11.86 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.0002601/0.1169, allocations: 307.7 kB / 335.8 MB, free: 11.54 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.352e-05/0.1169, allocations: 23.81 kB / 335.8 MB, free: 11.52 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.627e-05/0.117, allocations: 9.625 kB / 335.8 MB, free: 11.51 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.117, allocations: 4 kB / 335.8 MB, free: 11.5 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.117, allocations: 0 / 335.8 MB, free: 11.5 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.117, allocations: 0 / 335.8 MB, free: 11.5 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001261/0.1183, allocations: 1.444 MB / 337.3 MB, free: 9.996 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.1183, allocations: 4 kB / 337.3 MB, free: 9.992 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.63e-05/0.1183, allocations: 8 kB / 337.3 MB, free: 9.984 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.1183, allocations: 3.938 kB / 337.3 MB, free: 9.98 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.856e-05/0.1183, allocations: 19.98 kB / 337.3 MB, free: 9.961 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.897e-06/0.1184, allocations: 4 kB / 337.3 MB, free: 9.957 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.1184, allocations: 0 / 337.3 MB, free: 9.957 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001195/0.1196, allocations: 1.311 MB / 338.6 MB, free: 8.609 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.627e-05/0.1196, allocations: 100.8 kB / 338.7 MB, free: 8.492 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001095/0.1198, allocations: 67.94 kB / 338.8 MB, free: 8.426 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.514e-05/0.1198, allocations: 8 kB / 338.8 MB, free: 8.418 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.311e-05/0.1199, allocations: 12 kB / 338.8 MB, free: 8.406 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.056e-05/0.1199, allocations: 19.98 kB / 338.8 MB, free: 8.387 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.276e-05/0.12, allocations: 83.2 kB / 338.9 MB, free: 8.305 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.12, allocations: 0 / 338.9 MB, free: 8.305 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005235/0.1205, allocations: 92 kB / 339 MB, free: 8.215 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.002185/0.1227, allocations: 2.315 MB / 341.3 MB, free: 5.867 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001649/0.1244, allocations: 2.148 MB / 343.4 MB, free: 3.691 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.1244, allocations: 0 / 343.4 MB, free: 3.691 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001351/0.1257, allocations: 2.194 MB / 345.6 MB, free: 1.473 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002592/0.126, allocations: 24 kB / 345.7 MB, free: 1.449 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003671/0.1297, allocations: 3.304 MB / 349 MB, free: 14.03 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002685/0.13, allocations: 0.7241 MB / 349.7 MB, free: 13.28 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.572e-05/0.13, allocations: 3.984 kB / 349.7 MB, free: 13.28 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.096e-05/0.1301, allocations: 39.44 kB / 349.7 MB, free: 13.24 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1301, allocations: 0 / 349.7 MB, free: 13.24 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02022/0.1503, allocations: 4.71 MB / 354.4 MB, free: 8.469 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.268/7.418, allocations: 15.77 kB / 354.5 MB, free: 8.453 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches