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.001786/0.001786, allocations: 113.4 kB / 17.73 MB, free: 5.355 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.002001/0.002001, allocations: 184.1 kB / 18.66 MB, free: 4.434 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.35/1.35, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001299/0.001299, allocations: 51.92 kB / 328 MB, free: 3.816 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08579/0.0871, allocations: 46.63 MB / 374.7 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TestOnly.FlueGas): time 0.344/0.4311, allocations: 151 MB / 0.5133 GB, free: 8.523 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.00262/0.4338, allocations: 2.091 MB / 0.5153 GB, free: 6.43 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001071/0.4339, allocations: 8 kB / 0.5154 GB, free: 6.422 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000395/0.4344, allocations: 59.66 kB / 0.5154 GB, free: 6.363 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001748/0.4361, allocations: 0.6066 MB / 0.516 GB, free: 5.754 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003963/0.4366, allocations: 108.2 kB / 0.5161 GB, free: 5.648 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004585/0.437, allocations: 267 kB / 0.5164 GB, free: 5.387 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.283e-05/0.4371, allocations: 4 kB / 0.5164 GB, free: 5.383 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003832/0.4375, allocations: 135.5 kB / 0.5165 GB, free: 5.25 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002757/0.4378, allocations: 95.64 kB / 0.5166 GB, free: 5.156 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.064e-05/0.4378, allocations: 8 kB / 0.5166 GB, free: 5.148 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00168/0.4395, allocations: 0.8223 MB / 0.5174 GB, free: 4.324 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001309/0.4397, allocations: 87.75 kB / 0.5175 GB, free: 4.238 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001545/0.4398, allocations: 95.59 kB / 0.5176 GB, free: 4.145 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001211/0.4411, allocations: 0.6497 MB / 0.5182 GB, free: 3.5 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.4411, allocations: 0 / 0.5182 GB, free: 3.5 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.4411, allocations: 0 / 0.5182 GB, free: 3.5 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.698e-06/0.4411, allocations: 0 / 0.5182 GB, free: 3.5 MB / 446.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.0008738/0.442, allocations: 0.4986 MB / 0.5187 GB, free: 2.953 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.442, allocations: 12.03 kB / 0.5187 GB, free: 2.941 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.557e-05/0.4421, allocations: 58.67 kB / 0.5188 GB, free: 2.875 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002064/0.4442, allocations: 277.8 kB / 0.519 GB, free: 2.605 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005001/0.4447, allocations: 282.4 kB / 0.5193 GB, free: 2.293 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.054e-05/0.4447, allocations: 12.7 kB / 0.5193 GB, free: 2.281 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.49e-05/0.4448, allocations: 19.92 kB / 0.5193 GB, free: 2.262 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007432/0.4456, allocations: 0.5005 MB / 0.5198 GB, free: 1.75 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.275e-05/0.4456, allocations: 0 / 0.5198 GB, free: 1.75 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.352e-05/0.4457, allocations: 8 kB / 0.5198 GB, free: 1.742 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.169e-05/0.4457, allocations: 7.984 kB / 0.5198 GB, free: 1.734 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008284/0.4465, allocations: 0.5934 MB / 0.5204 GB, free: 1.141 MB / 446.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.002262/0.4488, allocations: 1.016 MB / 0.5214 GB, free: 72 kB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003785/0.4492, allocations: 241.1 kB / 0.5216 GB, free: 15.82 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002411/0.4494, allocations: 189.6 kB / 0.5218 GB, free: 15.62 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007682/0.4502, allocations: 270.1 kB / 0.5221 GB, free: 15.32 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.994e-05/0.4502, allocations: 42.55 kB / 0.5221 GB, free: 15.27 MB / 462.1 MB Notification: Performance of pre-optimization done (n=28): time 1.764e-06/0.4503, allocations: 0 / 0.5221 GB, free: 15.27 MB / 462.1 MB Notification: Performance of matching and sorting (n=28): time 0.001947/0.4522, allocations: 0.5997 MB / 0.5227 GB, free: 14.67 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.965e-05/0.4523, allocations: 81.11 kB / 0.5228 GB, free: 14.57 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000111/0.4524, allocations: 125.8 kB / 0.5229 GB, free: 14.44 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 4.419e-05/0.4524, allocations: 29.7 kB / 0.5229 GB, free: 14.4 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.225e-05/0.4525, allocations: 120.5 kB / 0.523 GB, free: 14.28 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.932e-05/0.4526, allocations: 107.1 kB / 0.5231 GB, free: 14.18 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000131/0.4528, allocations: 73.64 kB / 0.5232 GB, free: 14.1 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.4529, allocations: 326.8 kB / 0.5235 GB, free: 13.77 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003274/0.4532, allocations: 183.8 kB / 0.5237 GB, free: 13.59 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003847/0.4536, allocations: 292.5 kB / 0.524 GB, free: 13.26 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007147/0.4543, allocations: 0.4889 MB / 0.5244 GB, free: 12.72 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.4543, allocations: 0 / 0.5244 GB, free: 12.72 MB / 462.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0009336/0.4553, allocations: 0.5234 MB / 0.525 GB, free: 12.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.762e-05/0.4553, allocations: 8 kB / 0.525 GB, free: 12.19 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.4553, allocations: 0 / 0.525 GB, free: 12.19 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.933e-05/0.4553, allocations: 8 kB / 0.525 GB, free: 12.18 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00054/0.4559, allocations: 86.89 kB / 0.5251 GB, free: 12.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.143e-05/0.4559, allocations: 4 kB / 0.5251 GB, free: 12.09 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003994/0.4563, allocations: 39.75 kB / 0.5251 GB, free: 12.05 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.879e-05/0.4564, allocations: 20 kB / 0.5251 GB, free: 12.04 MB / 462.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.000159/0.4565, allocations: 141.8 kB / 0.5253 GB, free: 11.89 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001167/0.4567, allocations: 27.83 kB / 0.5253 GB, free: 11.86 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009196/0.4576, allocations: 494.9 kB / 0.5258 GB, free: 11.37 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.359e-06/0.4576, allocations: 0 / 0.5258 GB, free: 11.37 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.734e-06/0.4576, allocations: 4 kB / 0.5258 GB, free: 11.36 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.4576, allocations: 3.984 kB / 0.5258 GB, free: 11.36 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007017/0.4583, allocations: 458.6 kB / 0.5262 GB, free: 10.86 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.4584, allocations: 4 kB / 0.5262 GB, free: 10.86 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005045/0.4589, allocations: 47.97 kB / 0.5262 GB, free: 10.81 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.44e-06/0.4589, allocations: 4 kB / 0.5263 GB, free: 10.81 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.929e-05/0.4589, allocations: 15.98 kB / 0.5263 GB, free: 10.79 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.4589, allocations: 4 kB / 0.5263 GB, free: 10.79 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.4589, allocations: 7.938 kB / 0.5263 GB, free: 10.78 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00107/0.46, allocations: 0.6796 MB / 0.5269 GB, free: 10.09 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.42e-05/0.4601, allocations: 101 kB / 0.527 GB, free: 9.969 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.691e-05/0.4602, allocations: 11.92 kB / 0.527 GB, free: 9.957 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004954/0.4607, allocations: 23.98 kB / 0.5271 GB, free: 9.934 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.74e-05/0.4607, allocations: 15.97 kB / 0.5271 GB, free: 9.918 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.41e-05/0.4608, allocations: 15.98 kB / 0.5271 GB, free: 9.902 MB / 462.1 MB Notification: Performance of sorting global known variables: time 5.76e-05/0.4608, allocations: 99.27 kB / 0.5272 GB, free: 9.805 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4608, allocations: 0 / 0.5272 GB, free: 9.805 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0006539/0.4615, allocations: 155.7 kB / 0.5273 GB, free: 9.652 MB / 462.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.002234/0.4637, allocations: 1.481 MB / 0.5288 GB, free: 8.141 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0007871/0.4645, allocations: 440.3 kB / 0.5292 GB, free: 7.711 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.4646, allocations: 4.062 kB / 0.5292 GB, free: 7.707 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003381/0.4649, allocations: 211.8 kB / 0.5294 GB, free: 7.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007066/0.4656, allocations: 92.89 kB / 0.5295 GB, free: 7.414 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004165/0.4698, allocations: 3.239 MB / 0.5327 GB, free: 4.008 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000312/0.4701, allocations: 0.7362 MB / 0.5334 GB, free: 3.246 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004626/0.4706, allocations: 109.8 kB / 0.5335 GB, free: 3.141 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001879/0.4708, allocations: 63.41 kB / 0.5336 GB, free: 3.082 MB / 462.1 MB Notification: Performance of SimCode: time 4.11e-07/0.4708, allocations: 0 / 0.5336 GB, free: 3.082 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02865/0.4995, allocations: 10.46 MB / 0.5438 GB, free: 8.57 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.666/8.165, allocations: 3.938 kB / 0.5438 GB, free: 8.566 MB / 478.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