Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.TestOnly.FlueGas.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.Media.Examples.TestOnly.FlueGas,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_TestOnly_FlueGas",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TestOnly.FlueGas,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_TestOnly_FlueGas",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.001812/0.001812, 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.002437/0.002437, allocations: 191.9 kB / 18.51 MB, free: 4.5 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.357/2.357, 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.00236/0.00236, allocations: 52.16 kB / 280.7 MB, free: 3.086 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1585/0.1609, allocations: 46.64 MB / 327.4 MB, free: 4.379 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TestOnly.FlueGas): time 0.5257/0.6867, allocations: 151 MB / 478.3 MB, free: 96 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004336/0.6911, allocations: 2.085 MB / 480.4 MB, free: 14.02 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001483/0.6913, allocations: 0 / 480.4 MB, free: 14.02 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005135/0.6919, allocations: 59.72 kB / 480.5 MB, free: 13.96 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002812/0.6947, allocations: 0.6027 MB / 481.1 MB, free: 13.36 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005311/0.6953, allocations: 107.7 kB / 481.2 MB, free: 13.25 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005794/0.6959, allocations: 255 kB / 481.4 MB, free: 13 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.048e-05/0.696, allocations: 15.69 kB / 481.5 MB, free: 12.99 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005189/0.6965, allocations: 131.5 kB / 481.6 MB, free: 12.86 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003503/0.6969, allocations: 91.66 kB / 481.7 MB, free: 12.77 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.163e-05/0.6969, allocations: 12 kB / 481.7 MB, free: 12.76 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00315/0.7001, allocations: 0.9159 MB / 482.6 MB, free: 11.84 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001906/0.7003, allocations: 75.81 kB / 482.7 MB, free: 11.77 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00027/0.7006, allocations: 103.6 kB / 482.8 MB, free: 11.66 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001937/0.7026, allocations: 0.6664 MB / 483.5 MB, free: 11 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.7026, allocations: 0 / 483.5 MB, free: 11 MB / 382.1 MB Notification: Performance of FrontEnd: time 8.025e-06/0.7026, allocations: 4 kB / 483.5 MB, free: 10.99 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.154e-05/0.7026, allocations: 3.938 kB / 483.5 MB, free: 10.99 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001419/0.7041, allocations: 0.5039 MB / 484 MB, free: 10.44 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.468e-05/0.7042, allocations: 8.031 kB / 484 MB, free: 10.43 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001341/0.7043, allocations: 54.73 kB / 484 MB, free: 10.37 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01428/0.7186, allocations: 0.7345 MB / 484.8 MB, free: 9.633 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008244/0.7195, allocations: 284 kB / 485 MB, free: 9.316 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.622e-05/0.7195, allocations: 12.7 kB / 485 MB, free: 9.305 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002344/0.7198, allocations: 23.94 kB / 485.1 MB, free: 9.281 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0028/0.7226, allocations: 0.7073 MB / 485.8 MB, free: 8.562 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.534e-05/0.7227, allocations: 0 / 485.8 MB, free: 8.562 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001967/0.7229, allocations: 15.92 kB / 485.8 MB, free: 8.547 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.614e-05/0.723, allocations: 12 kB / 485.8 MB, free: 8.535 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003927/0.7269, allocations: 0.9173 MB / 486.7 MB, free: 7.617 MB / 382.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009336/0.7363, allocations: 2.02 MB / 488.7 MB, free: 5.418 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002412/0.7387, allocations: 0.4931 MB / 489.2 MB, free: 4.906 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001344/0.7401, allocations: 338.1 kB / 489.6 MB, free: 4.57 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001374/0.7415, allocations: 270.2 kB / 489.8 MB, free: 4.27 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.276e-05/0.7416, allocations: 38.56 kB / 489.9 MB, free: 4.223 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 6.773e-06/0.7416, allocations: 4 kB / 489.9 MB, free: 4.219 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.004336/0.746, allocations: 0.8819 MB / 490.8 MB, free: 3.332 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.842e-05/0.7461, allocations: 85.11 kB / 490.8 MB, free: 3.23 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002263/0.7463, allocations: 129.7 kB / 491 MB, free: 3.094 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000126/0.7465, allocations: 33.7 kB / 491 MB, free: 3.055 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001082/0.7466, allocations: 108.4 kB / 491.1 MB, free: 2.945 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002074/0.7468, allocations: 114.4 kB / 491.2 MB, free: 2.832 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000345/0.7472, allocations: 73.67 kB / 491.3 MB, free: 2.754 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001663/0.7474, allocations: 330.8 kB / 491.6 MB, free: 2.422 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001137/0.7485, allocations: 303.8 kB / 491.9 MB, free: 2.125 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001315/0.7498, allocations: 404.2 kB / 492.3 MB, free: 1.684 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002404/0.7523, allocations: 0.6886 MB / 493 MB, free: 0.9492 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.242e-06/0.7523, allocations: 0 / 493 MB, free: 0.9492 MB / 382.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002939/0.7552, allocations: 0.7429 MB / 493.7 MB, free: 204 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.126e-05/0.7553, allocations: 8 kB / 493.7 MB, free: 196 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.755e-05/0.7553, allocations: 4.406 kB / 493.7 MB, free: 192 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.848e-05/0.7554, allocations: 8 kB / 493.8 MB, free: 184 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001989/0.7574, allocations: 103.8 kB / 493.9 MB, free: 80 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.691e-05/0.7574, allocations: 8.391 kB / 493.9 MB, free: 72 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001632/0.7591, allocations: 47.66 kB / 493.9 MB, free: 24 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001393/0.7592, allocations: 23.97 kB / 493.9 MB, free: 0 / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * 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.000465/0.7597, allocations: 149.7 kB / 494.1 MB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003442/0.7601, allocations: 16.72 kB / 494.1 MB, free: 15.83 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003316/0.7634, allocations: 0.7829 MB / 494.9 MB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-06/0.7634, allocations: 0 / 494.9 MB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.717e-06/0.7635, allocations: 4 kB / 494.9 MB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.286e-06/0.7635, allocations: 0 / 494.9 MB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001821/0.7653, allocations: 0.8136 MB / 495.7 MB, free: 14.12 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.7653, allocations: 0 / 495.7 MB, free: 14.12 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001789/0.7671, allocations: 76.78 kB / 495.8 MB, free: 14.04 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.656e-06/0.7672, allocations: 0 / 495.8 MB, free: 14.04 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.563e-05/0.7672, allocations: 19.98 kB / 495.8 MB, free: 14.02 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.404e-06/0.7673, allocations: 3.938 kB / 495.8 MB, free: 14.02 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.7673, allocations: 3.938 kB / 495.8 MB, free: 14.02 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002933/0.7702, allocations: 0.9488 MB / 496.7 MB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001047/0.7703, allocations: 100.8 kB / 496.8 MB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001051/0.7704, allocations: 10.5 kB / 496.9 MB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001148/0.7716, allocations: 31.95 kB / 496.9 MB, free: 12.89 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.976e-05/0.7717, allocations: 15.98 kB / 496.9 MB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.892e-05/0.7718, allocations: 23.97 kB / 496.9 MB, free: 12.86 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.037e-05/0.7718, allocations: 100.6 kB / 497 MB, free: 12.76 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.7719, allocations: 0 / 497 MB, free: 12.76 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009794/0.7728, allocations: 183.9 kB / 497.2 MB, free: 12.58 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 8 (medium2.p,medium2.T,medium2.X[1],medium2.X[2],medium2.X[3],medium2.X[4],state.p,state.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * 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.003732/0.7766, allocations: 1.75 MB / 499 MB, free: 10.8 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001711/0.7783, allocations: 0.676 MB / 499.6 MB, free: 10.12 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.7783, allocations: 4.25 kB / 499.6 MB, free: 10.12 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007607/0.7791, allocations: 327.7 kB / 500 MB, free: 9.797 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008452/0.78, allocations: 94.31 kB / 0.4883 GB, free: 9.707 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007079/0.787, allocations: 3.665 MB / 0.4919 GB, free: 5.875 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003441/0.7874, allocations: 0.7324 MB / 0.4926 GB, free: 5.117 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00149/0.7889, allocations: 169.8 kB / 0.4928 GB, free: 4.949 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003632/0.7893, allocations: 71.39 kB / 0.4929 GB, free: 4.879 MB / 398.1 MB Notification: Performance of SimCode: time 1.112e-06/0.7893, allocations: 0 / 0.4929 GB, free: 4.879 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04566/0.835, allocations: 12.83 MB / 0.5054 GB, free: 7.938 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.55/14.38, allocations: 8 kB / 0.5054 GB, free: 7.93 MB / 414.1 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.TestOnly.FlueGas.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.TestOnly.FlueGas.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.TestOnly.FlueGas.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.TestOnly.FlueGas.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Media.Examples.TestOnly.FlueGas_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Modelica_3_2_3_Modelica_Media_Examples_TestOnly_FlueGas.fmu > Modelica_3.2.3_Modelica.Media.Examples.TestOnly.FlueGas.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.TestOnly.FlueGas_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/TestOnly/FlueGas/FlueGas.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.TestOnly.FlueGas.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches