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.001407/0.001407, allocations: 103.9 kB / 17.58 MB, free: 5.422 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.002638/0.002638, allocations: 192.2 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.431/2.431, allocations: 205.1 MB / 224.4 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.001471/0.001471, allocations: 60.14 kB / 280.7 MB, free: 3.094 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1249/0.1264, allocations: 46.63 MB / 327.4 MB, free: 4.391 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.004782/0.1313, allocations: 1.226 MB / 328.6 MB, free: 3.145 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001722/0.133, allocations: 466.2 kB / 329.1 MB, free: 2.688 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.347e-05/0.1331, allocations: 0 / 329.1 MB, free: 2.688 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 5.609e-05/0.1332, allocations: 3.984 kB / 329.1 MB, free: 2.684 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007322/0.134, allocations: 71.73 kB / 329.1 MB, free: 2.613 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002843/0.1343, allocations: 67.75 kB / 329.2 MB, free: 2.547 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001709/0.1345, allocations: 47.89 kB / 329.2 MB, free: 2.5 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.878e-05/0.1345, allocations: 0 / 329.2 MB, free: 2.5 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.186e-05/0.1346, allocations: 19.92 kB / 329.3 MB, free: 2.48 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.858e-05/0.1347, allocations: 23.91 kB / 329.3 MB, free: 2.457 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.697e-05/0.1347, allocations: 4 kB / 329.3 MB, free: 2.453 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003966/0.1352, allocations: 123.8 kB / 329.4 MB, free: 2.332 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.843e-05/0.1353, allocations: 27.86 kB / 329.4 MB, free: 2.305 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002141/0.1355, allocations: 55.66 kB / 329.5 MB, free: 2.25 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004915/0.136, allocations: 171.5 kB / 329.7 MB, free: 2.082 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.136, allocations: 0 / 329.7 MB, free: 2.082 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.547e-06/0.136, allocations: 0 / 329.7 MB, free: 2.082 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.306e-05/0.1361, allocations: 0 / 329.7 MB, free: 2.082 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.001106/0.1372, allocations: 0.5648 MB / 330.2 MB, free: 1.453 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.741e-05/0.1373, allocations: 12.03 kB / 330.2 MB, free: 1.441 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001415/0.1374, allocations: 62.56 kB / 330.3 MB, free: 1.371 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002947/0.1377, allocations: 20.75 kB / 330.3 MB, free: 1.352 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002792/0.138, allocations: 176.2 kB / 330.5 MB, free: 1.141 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.262e-05/0.1381, allocations: 12.31 kB / 330.5 MB, free: 1.129 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.943e-05/0.1381, allocations: 4.375 kB / 330.5 MB, free: 1.125 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005536/0.1387, allocations: 278.9 kB / 330.8 MB, free: 0.8359 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.589e-05/0.1387, allocations: 7.938 kB / 330.8 MB, free: 0.8281 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.092e-05/0.1388, allocations: 4 kB / 330.8 MB, free: 0.8242 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.1388, allocations: 0 / 330.8 MB, free: 0.8242 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002892/0.1391, allocations: 156.2 kB / 330.9 MB, free: 0.668 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000627/0.1397, allocations: 373.5 kB / 331.3 MB, free: 256 kB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007998/0.1405, allocations: 0.5053 MB / 331.8 MB, free: 15.72 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007017/0.1413, allocations: 482.1 kB / 332.3 MB, free: 15.25 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.559e-05/0.1413, allocations: 4 kB / 332.3 MB, free: 15.24 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009975/0.1423, allocations: 490.8 kB / 332.8 MB, free: 14.72 MB / 286.1 MB Notification: Performance of pre-optimization done (n=49): time 3.427e-06/0.1423, allocations: 0 / 332.8 MB, free: 14.72 MB / 286.1 MB Notification: Performance of matching and sorting (n=49): time 0.001579/0.1439, allocations: 0.7371 MB / 333.5 MB, free: 13.97 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000176/0.1441, allocations: 156.5 kB / 333.7 MB, free: 13.79 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00017/0.1443, allocations: 102 kB / 333.8 MB, free: 13.68 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.928e-05/0.1444, allocations: 33.7 kB / 333.8 MB, free: 13.64 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.502e-05/0.1445, allocations: 81.14 kB / 333.9 MB, free: 13.55 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001536/0.1446, allocations: 102.5 kB / 334 MB, free: 13.46 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001205/0.1448, allocations: 45.7 kB / 334 MB, free: 13.41 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000266/0.1451, allocations: 330.8 kB / 334.3 MB, free: 13.07 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001996/0.1453, allocations: 88.44 kB / 334.4 MB, free: 12.99 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002234/0.1455, allocations: 112.3 kB / 334.5 MB, free: 12.88 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006681/0.1462, allocations: 440.8 kB / 335 MB, free: 12.41 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.191e-06/0.1462, allocations: 3.938 kB / 335 MB, free: 12.41 MB / 286.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007058/0.1469, allocations: 360.5 kB / 335.3 MB, free: 12.04 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001561/0.1471, allocations: 111.3 kB / 335.4 MB, free: 11.92 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.165e-06/0.1471, allocations: 0 / 335.4 MB, free: 11.92 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.003e-05/0.1472, allocations: 0 / 335.4 MB, free: 11.92 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001051/0.1473, allocations: 11.97 kB / 335.4 MB, free: 11.91 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.465e-05/0.1473, allocations: 4 kB / 335.4 MB, free: 11.9 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001364/0.1475, allocations: 19.75 kB / 335.5 MB, free: 11.88 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.637e-05/0.1475, allocations: 12 kB / 335.5 MB, free: 11.87 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.0006333/0.1482, allocations: 299.7 kB / 335.8 MB, free: 11.55 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001158/0.1483, allocations: 27.75 kB / 335.8 MB, free: 11.53 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.653e-05/0.1483, allocations: 9.562 kB / 335.8 MB, free: 11.52 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.1484, allocations: 0 / 335.8 MB, free: 11.52 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.1484, allocations: 0 / 335.8 MB, free: 11.52 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.1484, allocations: 64 / 335.8 MB, free: 11.52 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002522/0.1509, allocations: 1.455 MB / 337.3 MB, free: 10 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.151, allocations: 4 kB / 337.3 MB, free: 9.996 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-05/0.151, allocations: 4 kB / 337.3 MB, free: 9.992 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.056e-05/0.151, allocations: 7.938 kB / 337.3 MB, free: 9.984 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.063e-05/0.1511, allocations: 15.98 kB / 337.3 MB, free: 9.969 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.606e-06/0.1511, allocations: 4 kB / 337.3 MB, free: 9.965 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/0.1511, allocations: 0 / 337.3 MB, free: 9.965 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002544/0.1537, allocations: 1.307 MB / 338.6 MB, free: 8.621 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001291/0.1538, allocations: 100.8 kB / 338.7 MB, free: 8.504 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000184/0.154, allocations: 63.95 kB / 338.8 MB, free: 8.441 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001821/0.1542, allocations: 11.98 kB / 338.8 MB, free: 8.43 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001045/0.1544, allocations: 12 kB / 338.8 MB, free: 8.418 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.947e-05/0.1544, allocations: 19.98 kB / 338.8 MB, free: 8.398 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001103/0.1546, allocations: 83.22 kB / 338.9 MB, free: 8.316 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.1546, allocations: 4 kB / 338.9 MB, free: 8.312 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0007817/0.1554, allocations: 87.98 kB / 339 MB, free: 8.227 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.004253/0.1596, allocations: 2.323 MB / 341.3 MB, free: 5.871 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.003403/0.1631, allocations: 2.152 MB / 343.5 MB, free: 3.691 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 6.653e-06/0.1631, allocations: 0 / 343.5 MB, free: 3.691 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002838/0.166, allocations: 2.19 MB / 345.6 MB, free: 1.477 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005059/0.1665, allocations: 24.06 kB / 345.7 MB, free: 1.453 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006413/0.1729, allocations: 3.304 MB / 349 MB, free: 14.04 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007501/0.1737, allocations: 0.7243 MB / 349.7 MB, free: 13.29 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.025e-05/0.1738, allocations: 4 kB / 349.7 MB, free: 13.28 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.633e-05/0.1739, allocations: 35.42 kB / 349.7 MB, free: 13.25 MB / 302.1 MB Notification: Performance of SimCode: time 1.843e-06/0.174, allocations: 4 kB / 349.7 MB, free: 13.24 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04117/0.2151, allocations: 4.71 MB / 354.4 MB, free: 8.473 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.26/12.48, allocations: 11.77 kB / 354.5 MB, free: 8.461 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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 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.csv","/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