Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) 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(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HexElementLatent",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HexElementLatent",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.001713/0.001714, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00215/0.00215, allocations: 198.3 kB / 16.53 MB, free: 6.391 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.473/1.473, allocations: 205.1 MB / 222.4 MB, free: 4.574 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.769/1.769, allocations: 292.3 MB / 0.5489 GB, free: 12.84 MB / 462.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.001342/0.001342, allocations: 67.42 kB / 0.6716 GB, free: 26.3 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2112/0.2125, allocations: 114.6 MB / 0.7835 GB, free: 13.39 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent): time 0.7193/0.9319, allocations: 253.9 MB / 1.031 GB, free: 2.551 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.02682/0.9588, allocations: 17.97 MB / 1.049 GB, free: 3.906 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003954/0.9628, allocations: 88.06 kB / 1.049 GB, free: 3.871 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.003708/0.9666, allocations: 1.09 MB / 1.05 GB, free: 2.949 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.01235/0.9789, allocations: 3.814 MB / 1.054 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.005292/0.9843, allocations: 1.81 MB / 1.056 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.008185/0.9925, allocations: 5.036 MB / 1.061 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003054/0.9956, allocations: 1.831 MB / 1.062 GB, free: 9.703 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006077/1.002, allocations: 2.152 MB / 1.064 GB, free: 7.547 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003159/1.005, allocations: 1.527 MB / 1.066 GB, free: 6.023 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.000385/1.005, allocations: 184 kB / 1.066 GB, free: 5.844 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005904/1.011, allocations: 2.526 MB / 1.069 GB, free: 3.312 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0008854/1.012, allocations: 0.5996 MB / 1.069 GB, free: 2.707 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.001935/1.014, allocations: 1.108 MB / 1.07 GB, free: 1.594 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.006444/1.02, allocations: 3.657 MB / 1.074 GB, free: 13.93 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/1.02, allocations: 0 / 1.074 GB, free: 13.93 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.532e-06/1.021, allocations: 0 / 1.074 GB, free: 13.93 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.377e-05/1.021, allocations: 0 / 1.074 GB, free: 13.93 MB / 0.795 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 348 * Number of variables: 348 Notification: Performance of Generate backend data structure: time 0.004641/1.025, allocations: 2.487 MB / 1.076 GB, free: 11.38 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.754e-05/1.025, allocations: 12.03 kB / 1.076 GB, free: 11.37 MB / 0.795 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002399/1.026, allocations: 202.8 kB / 1.076 GB, free: 11.16 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00171/1.027, allocations: 373.1 kB / 1.077 GB, free: 10.8 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002408/1.03, allocations: 1.386 MB / 1.078 GB, free: 9.355 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.917e-05/1.03, allocations: 110.7 kB / 1.078 GB, free: 9.246 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002042/1.03, allocations: 136 kB / 1.078 GB, free: 9.113 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003102/1.033, allocations: 1.51 MB / 1.08 GB, free: 7.535 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.936e-05/1.033, allocations: 4 kB / 1.08 GB, free: 7.531 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001346/1.033, allocations: 59.94 kB / 1.08 GB, free: 7.473 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-05/1.033, allocations: 54.62 kB / 1.08 GB, free: 7.418 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002357/1.036, allocations: 1.138 MB / 1.081 GB, free: 6.273 MB / 0.795 GB 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.009473/1.045, allocations: 7.247 MB / 1.088 GB, free: 14.46 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001465/1.047, allocations: 0.8232 MB / 1.089 GB, free: 13.6 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007826/1.047, allocations: 445.4 kB / 1.089 GB, free: 13.17 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009749/1.048, allocations: 0.7201 MB / 1.09 GB, free: 12.3 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.898e-05/1.049, allocations: 39.22 kB / 1.09 GB, free: 12.25 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=74): time 3.507e-06/1.049, allocations: 0 / 1.09 GB, free: 12.25 MB / 0.8106 GB Notification: Performance of matching and sorting (n=74): time 0.006825/1.055, allocations: 2.075 MB / 1.092 GB, free: 10.11 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.441e-05/1.055, allocations: 60.06 kB / 1.092 GB, free: 10.04 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001973/1.057, allocations: 1.313 MB / 1.094 GB, free: 8.711 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 9.773e-05/1.058, allocations: 41.7 kB / 1.094 GB, free: 8.664 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006591/1.058, allocations: 0.7977 MB / 1.094 GB, free: 7.855 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002672/1.058, allocations: 256.3 kB / 1.095 GB, free: 7.602 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002655/1.059, allocations: 174.4 kB / 1.095 GB, free: 7.422 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001513/1.059, allocations: 345.9 kB / 1.095 GB, free: 7.078 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006483/1.06, allocations: 328.7 kB / 1.095 GB, free: 6.754 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008358/1.06, allocations: 0.5713 MB / 1.096 GB, free: 6.094 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001412/1.062, allocations: 0.875 MB / 1.097 GB, free: 5.156 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.558e-06/1.062, allocations: 0 / 1.097 GB, free: 5.156 MB / 0.8106 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002725/1.065, allocations: 1.267 MB / 1.098 GB, free: 3.867 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.448e-05/1.065, allocations: 12.06 kB / 1.098 GB, free: 3.855 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.308e-05/1.065, allocations: 4 kB / 1.098 GB, free: 3.852 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001971/1.067, allocations: 410 kB / 1.098 GB, free: 3.441 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006371/1.067, allocations: 147.8 kB / 1.099 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001773/1.069, allocations: 2.051 MB / 1.101 GB, free: 1.168 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001301/1.07, allocations: 119.1 kB / 1.101 GB, free: 1.051 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.845e-05/1.07, allocations: 32 kB / 1.101 GB, free: 1.02 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001234/1.072, allocations: 0.6417 MB / 1.101 GB, free: 388 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008066/1.073, allocations: 0.5551 MB / 1.102 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001346/1.074, allocations: 0.8517 MB / 1.103 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.957e-06/1.074, allocations: 4 kB / 1.103 GB, free: 14.81 MB / 0.8262 GB Notification: Performance of matching and sorting (n=108) (initialization_lambda0): time 0.002494/1.076, allocations: 1.201 MB / 1.104 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/1.076, allocations: 8 kB / 1.104 GB, free: 13.58 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/1.076, allocations: 4.406 kB / 1.104 GB, free: 13.58 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001508/1.078, allocations: 368.6 kB / 1.104 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005981/1.079, allocations: 151.7 kB / 1.104 GB, free: 13.06 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00373/1.082, allocations: 4.208 MB / 1.109 GB, free: 8.559 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001402/1.084, allocations: 90.28 kB / 1.109 GB, free: 8.473 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.956e-05/1.084, allocations: 35.98 kB / 1.109 GB, free: 8.438 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (79): * Single equations (assignments): 75 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,21), (1,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0003299/1.084, allocations: 232.1 kB / 1.109 GB, free: 8.203 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003355/1.085, allocations: 154.1 kB / 1.109 GB, free: 8.051 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002993/1.088, allocations: 1.186 MB / 1.11 GB, free: 6.844 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.844e-05/1.088, allocations: 15.97 kB / 1.11 GB, free: 6.828 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/1.088, allocations: 3.938 kB / 1.11 GB, free: 6.824 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002431/1.09, allocations: 1.279 MB / 1.111 GB, free: 5.453 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004835/1.095, allocations: 2.754 MB / 1.114 GB, free: 2.602 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.854e-06/1.095, allocations: 0 / 1.114 GB, free: 2.602 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004805/1.095, allocations: 107.8 kB / 1.114 GB, free: 2.496 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001493/1.097, allocations: 357.7 kB / 1.115 GB, free: 2.141 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.427e-05/1.097, allocations: 20 kB / 1.115 GB, free: 2.121 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001649/1.099, allocations: 2.035 MB / 1.117 GB, free: 8 kB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/1.099, allocations: 192 / 1.117 GB, free: 8 kB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002275/1.101, allocations: 1.198 MB / 1.118 GB, free: 14.75 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006596/1.102, allocations: 335 kB / 1.118 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001762/1.102, allocations: 12 kB / 1.118 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008463/1.103, allocations: 43.95 kB / 1.118 GB, free: 14.35 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001255/1.103, allocations: 52.42 kB / 1.118 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.666e-05/1.103, allocations: 35.92 kB / 1.118 GB, free: 14.27 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.00123/1.104, allocations: 0.8934 MB / 1.119 GB, free: 13.38 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.51e-07/1.104, allocations: 3.938 kB / 1.119 GB, free: 13.37 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.002106/1.106, allocations: 0.8821 MB / 1.12 GB, free: 12.49 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 simulation (49): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,20), (1,3), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002915/1.109, allocations: 1.993 MB / 1.122 GB, free: 10.44 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.003733/1.113, allocations: 1.731 MB / 1.124 GB, free: 8.688 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 7.484e-06/1.113, allocations: 0 / 1.124 GB, free: 8.688 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001156/1.114, allocations: 474.7 kB / 1.124 GB, free: 8.223 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004687/1.119, allocations: 0.7958 MB / 1.125 GB, free: 7.449 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0235/1.142, allocations: 11.49 MB / 1.136 GB, free: 11.4 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0011/1.143, allocations: 1.344 MB / 1.137 GB, free: 10.03 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.00158/1.145, allocations: 329.4 kB / 1.138 GB, free: 9.711 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008868/1.146, allocations: 0.6437 MB / 1.138 GB, free: 9.066 MB / 0.8575 GB Notification: Performance of SimCode: time 1.383e-06/1.146, allocations: 0 / 1.138 GB, free: 9.066 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09755/1.244, allocations: 45.04 MB / 1.182 GB, free: 12.65 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.72/13.97, allocations: 0 / 1.182 GB, free: 12.65 MB / 0.9044 GB (rm -f Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent_res.csv --start-time 0 --stop-time 600 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HexElementLatent.fmu > Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.pipe 2>&1)