Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Storage.Examples.ExpansionVessel.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.Storage.Examples.ExpansionVessel,fileNamePrefix="Buildings_8_Buildings_Fluid_Storage_Examples_ExpansionVessel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.ExpansionVessel,fileNamePrefix="Buildings_8_Buildings_Fluid_Storage_Examples_ExpansionVessel",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.001167/0.001167, 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.001239/0.001239, allocations: 193.6 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.475/1.475, allocations: 205.1 MB / 222.4 MB, free: 4.605 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.704/1.704, allocations: 292.3 MB / 0.5489 GB, free: 12.81 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.00141/0.00141, allocations: 75.28 kB / 0.6716 GB, free: 26.2 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2181/0.2195, allocations: 114.5 MB / 0.7835 GB, free: 13.39 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.01553/0.2351, allocations: 14.44 MB / 0.7976 GB, free: 14.88 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.005253/0.2404, allocations: 3.613 MB / 0.8011 GB, free: 11.25 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004716/0.2409, allocations: 15.88 kB / 0.8011 GB, free: 11.24 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.0008202/0.2418, allocations: 206.7 kB / 0.8013 GB, free: 11.04 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.001538/0.2434, allocations: 0.5752 MB / 0.8019 GB, free: 10.46 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.001055/0.2444, allocations: 390.3 kB / 0.8022 GB, free: 10.08 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.001293/0.2457, allocations: 1.074 MB / 0.8033 GB, free: 9.004 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004806/0.2462, allocations: 319.8 kB / 0.8036 GB, free: 8.688 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001106/0.2473, allocations: 375.5 kB / 0.804 GB, free: 8.32 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004359/0.2478, allocations: 314.6 kB / 0.8043 GB, free: 8.012 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 6.401e-05/0.2479, allocations: 32 kB / 0.8043 GB, free: 7.98 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006772/0.2485, allocations: 255.5 kB / 0.8045 GB, free: 7.73 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0001259/0.2487, allocations: 91.73 kB / 0.8046 GB, free: 7.641 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.0002333/0.2489, allocations: 214.9 kB / 0.8048 GB, free: 7.43 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.0008277/0.2498, allocations: 0.5842 MB / 0.8054 GB, free: 6.844 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.2498, allocations: 0 / 0.8054 GB, free: 6.844 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.423e-06/0.2498, allocations: 3.938 kB / 0.8054 GB, free: 6.84 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 8.947e-06/0.2498, allocations: 0 / 0.8054 GB, free: 6.84 MB / 0.6231 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001225/0.251, allocations: 0.7418 MB / 0.8061 GB, free: 6.043 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.293e-05/0.2511, allocations: 8.031 kB / 0.8061 GB, free: 6.035 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.453e-05/0.2511, allocations: 58.73 kB / 0.8062 GB, free: 5.969 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001781/0.2513, allocations: 52.44 kB / 0.8062 GB, free: 5.918 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006166/0.252, allocations: 435 kB / 0.8067 GB, free: 5.457 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.337e-05/0.252, allocations: 24.67 kB / 0.8067 GB, free: 5.434 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.239e-05/0.2521, allocations: 28 kB / 0.8067 GB, free: 5.406 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005257/0.2526, allocations: 310.2 kB / 0.807 GB, free: 5.078 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.407e-05/0.2526, allocations: 0 / 0.807 GB, free: 5.078 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.203e-05/0.2526, allocations: 15.98 kB / 0.807 GB, free: 5.062 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.803e-05/0.2527, allocations: 4 kB / 0.807 GB, free: 5.059 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004539/0.2531, allocations: 202.1 kB / 0.8072 GB, free: 4.863 MB / 0.6231 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.001743/0.2549, allocations: 1.493 MB / 0.8087 GB, free: 3.242 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004329/0.2553, allocations: 150.6 kB / 0.8088 GB, free: 3.086 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001823/0.2555, allocations: 69.06 kB / 0.8089 GB, free: 3.016 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001522/0.2557, allocations: 93.11 kB / 0.809 GB, free: 2.906 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002926/0.256, allocations: 135.2 kB / 0.8091 GB, free: 2.762 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=15): time 1.623e-06/0.256, allocations: 0 / 0.8091 GB, free: 2.762 MB / 0.6231 GB Notification: Performance of matching and sorting (n=15): time 0.0006297/0.2566, allocations: 227.8 kB / 0.8093 GB, free: 2.535 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.385e-05/0.2567, allocations: 67.33 kB / 0.8094 GB, free: 2.457 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003399/0.257, allocations: 341.7 kB / 0.8097 GB, free: 2.117 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 2.977e-05/0.2571, allocations: 33.7 kB / 0.8097 GB, free: 2.078 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001524/0.2572, allocations: 211.7 kB / 0.8099 GB, free: 1.863 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 5.197e-05/0.2573, allocations: 55.28 kB / 0.81 GB, free: 1.809 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.322e-05/0.2574, allocations: 53.61 kB / 0.81 GB, free: 1.75 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001203/0.2575, allocations: 342.8 kB / 0.8104 GB, free: 1.406 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001903/0.2577, allocations: 71.95 kB / 0.8104 GB, free: 1.336 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002252/0.2579, allocations: 153.3 kB / 0.8106 GB, free: 1.152 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003974/0.2583, allocations: 243 kB / 0.8108 GB, free: 0.875 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.2584, allocations: 4 kB / 0.8108 GB, free: 0.8711 MB / 0.6231 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005872/0.2589, allocations: 313.7 kB / 0.8111 GB, free: 0.5547 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 3.578e-05/0.259, allocations: 40.39 kB / 0.8112 GB, free: 0.5117 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/0.259, allocations: 0 / 0.8112 GB, free: 0.5117 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.274e-05/0.259, allocations: 7.938 kB / 0.8112 GB, free: 0.5039 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002205/0.2593, allocations: 63.89 kB / 0.8112 GB, free: 452 kB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.072e-05/0.2593, allocations: 4 kB / 0.8112 GB, free: 448 kB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002439/0.2595, allocations: 31.77 kB / 0.8113 GB, free: 416 kB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.714e-05/0.2596, allocations: 8 kB / 0.8113 GB, free: 408 kB / 0.6231 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 1 * 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.0001627/0.2597, allocations: 161.8 kB / 0.8114 GB, free: 236 kB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.511e-05/0.2598, allocations: 31.62 kB / 0.8115 GB, free: 204 kB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004723/0.2603, allocations: 200.3 kB / 0.8116 GB, free: 15.99 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.019e-06/0.2603, allocations: 7.875 kB / 0.8116 GB, free: 15.98 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.2603, allocations: 0 / 0.8116 GB, free: 15.98 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004811/0.2608, allocations: 479 kB / 0.8121 GB, free: 15.43 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003872/0.2612, allocations: 361.3 kB / 0.8125 GB, free: 15.03 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.2612, allocations: 4 kB / 0.8125 GB, free: 15.03 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001583/0.2614, allocations: 31.91 kB / 0.8125 GB, free: 15 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.496e-06/0.2614, allocations: 4 kB / 0.8125 GB, free: 14.99 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.557e-05/0.2614, allocations: 4 kB / 0.8125 GB, free: 14.99 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.2614, allocations: 3.938 kB / 0.8125 GB, free: 14.98 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.2614, allocations: 0 / 0.8125 GB, free: 14.98 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000581/0.262, allocations: 284.6 kB / 0.8128 GB, free: 14.69 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001152/0.2621, allocations: 120.8 kB / 0.8129 GB, free: 14.55 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.829e-05/0.2622, allocations: 4 kB / 0.8129 GB, free: 14.55 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000226/0.2624, allocations: 23.91 kB / 0.8129 GB, free: 14.52 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.742e-05/0.2625, allocations: 15.98 kB / 0.8129 GB, free: 14.51 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.709e-05/0.2625, allocations: 4 kB / 0.8129 GB, free: 14.5 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0002296/0.2628, allocations: 243.2 kB / 0.8132 GB, free: 14.27 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.8e-07/0.2628, allocations: 4 kB / 0.8132 GB, free: 14.26 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.000427/0.2632, allocations: 123.8 kB / 0.8133 GB, free: 14.14 MB / 0.6387 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (expVes.m,expVes.H,vol.dynBal.U) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001132/0.2643, allocations: 0.9125 MB / 0.8142 GB, free: 13.2 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.0004974/0.2648, allocations: 239.1 kB / 0.8144 GB, free: 12.95 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 4.438e-06/0.2649, allocations: 4 kB / 0.8144 GB, free: 12.95 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0001728/0.265, allocations: 66.16 kB / 0.8145 GB, free: 12.89 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009248/0.266, allocations: 223.3 kB / 0.8147 GB, free: 12.68 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004183/0.2702, allocations: 3.037 MB / 0.8176 GB, free: 9.5 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003329/0.2705, allocations: 0.7918 MB / 0.8184 GB, free: 8.684 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.0002711/0.2708, allocations: 63.25 kB / 0.8185 GB, free: 8.625 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001647/0.271, allocations: 119.3 kB / 0.8186 GB, free: 8.508 MB / 0.6387 GB Notification: Performance of SimCode: time 3.81e-07/0.271, allocations: 0 / 0.8186 GB, free: 8.508 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03484/0.3058, allocations: 10.08 MB / 0.8284 GB, free: 14.6 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.008/8.314, allocations: 12.33 kB / 0.8284 GB, free: 14.59 MB / 0.6544 GB (rm -f Buildings_8_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; mkfifo Buildings_8_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe >> ../files/Buildings_8_Buildings.Fluid.Storage.Examples.ExpansionVessel.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Fluid.Storage.Examples.ExpansionVessel_res.csv --start-time 0 --stop-time 7200 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Fluid_Storage_Examples_ExpansionVessel.fmu > Buildings_8_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1)