Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_9_Buildings_Fluid_Storage_Examples_ExpansionVessel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.ExpansionVessel,fileNamePrefix="Buildings_9_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.004964/0.004964, allocations: 103.2 kB / 15.73 MB, free: 6.059 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.001241/0.001241, allocations: 190.5 kB / 16.67 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.227/1.227, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.006/2.006, allocations: 390.3 MB / 0.6648 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001142/0.001143, allocations: 63.91 kB / 0.9504 GB, free: 8.188 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.61/0.6112, allocations: 140.4 MB / 1.087 GB, free: 5.293 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.01305/0.6243, allocations: 14.44 MB / 1.102 GB, free: 10.95 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.004568/0.6289, allocations: 3.644 MB / 1.105 GB, free: 8.352 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002578/0.6291, allocations: 20.44 kB / 1.105 GB, free: 8.344 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.0005161/0.6297, allocations: 200.6 kB / 1.105 GB, free: 8.227 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.001136/0.6308, allocations: 0.5781 MB / 1.106 GB, free: 7.887 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007824/0.6316, allocations: 406.3 kB / 1.106 GB, free: 7.66 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.001134/0.6328, allocations: 1.083 MB / 1.107 GB, free: 7.152 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004467/0.6332, allocations: 327.8 kB / 1.108 GB, free: 7 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008652/0.6341, allocations: 380.6 kB / 1.108 GB, free: 6.84 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003627/0.6345, allocations: 310.2 kB / 1.108 GB, free: 6.699 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 5.287e-05/0.6345, allocations: 40.78 kB / 1.108 GB, free: 6.691 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004709/0.635, allocations: 259.7 kB / 1.109 GB, free: 6.59 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0001024/0.6351, allocations: 85.86 kB / 1.109 GB, free: 6.543 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0002089/0.6353, allocations: 218 kB / 1.109 GB, free: 6.414 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.0007138/0.6361, allocations: 0.5855 MB / 1.109 GB, free: 6.191 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.6361, allocations: 1.312 kB / 1.109 GB, free: 6.191 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.052e-06/0.6361, allocations: 0 / 1.109 GB, free: 6.191 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 6.372e-06/0.6361, allocations: 0 / 1.109 GB, free: 6.191 MB / 0.8731 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.001075/0.6372, allocations: 0.7522 MB / 1.11 GB, free: 5.582 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.132e-05/0.6372, allocations: 9.062 kB / 1.11 GB, free: 5.582 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.67e-05/0.6373, allocations: 62.38 kB / 1.11 GB, free: 5.527 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001676/0.6374, allocations: 46.7 kB / 1.11 GB, free: 5.508 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006913/0.6381, allocations: 466.5 kB / 1.111 GB, free: 5.172 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.572e-05/0.6382, allocations: 24.14 kB / 1.111 GB, free: 5.156 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.018e-05/0.6382, allocations: 26.06 kB / 1.111 GB, free: 5.148 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005694/0.6388, allocations: 312.2 kB / 1.111 GB, free: 4.984 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.419e-05/0.6388, allocations: 1.094 kB / 1.111 GB, free: 4.984 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.22e-05/0.6389, allocations: 10.53 kB / 1.111 GB, free: 4.977 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.649e-05/0.6389, allocations: 8.203 kB / 1.111 GB, free: 4.977 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004748/0.6394, allocations: 190.1 kB / 1.111 GB, free: 4.922 MB / 0.8731 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.001712/0.6411, allocations: 1.496 MB / 1.113 GB, free: 3.715 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004218/0.6415, allocations: 148.5 kB / 1.113 GB, free: 3.656 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000178/0.6417, allocations: 68.59 kB / 1.113 GB, free: 3.629 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000119/0.6418, allocations: 86.56 kB / 1.113 GB, free: 3.535 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002834/0.6421, allocations: 130.9 kB / 1.113 GB, free: 3.461 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=15): time 1.653e-06/0.6422, allocations: 0 / 1.113 GB, free: 3.461 MB / 0.8731 GB Notification: Performance of matching and sorting (n=15): time 0.0006439/0.6428, allocations: 232.4 kB / 1.113 GB, free: 3.367 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.194e-05/0.6428, allocations: 54.2 kB / 1.113 GB, free: 3.305 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003607/0.6432, allocations: 354.9 kB / 1.114 GB, free: 3.113 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.949e-05/0.6432, allocations: 31.86 kB / 1.114 GB, free: 3.078 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001473/0.6434, allocations: 216.4 kB / 1.114 GB, free: 2.898 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 5.241e-05/0.6435, allocations: 59.06 kB / 1.114 GB, free: 2.852 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.049e-05/0.6435, allocations: 49.55 kB / 1.114 GB, free: 2.82 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.000109/0.6437, allocations: 341.4 kB / 1.114 GB, free: 2.496 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001993/0.6439, allocations: 69 kB / 1.115 GB, free: 2.477 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002426/0.6441, allocations: 156.9 kB / 1.115 GB, free: 2.352 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004168/0.6445, allocations: 245.7 kB / 1.115 GB, free: 2.168 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.6446, allocations: 1.031 kB / 1.115 GB, free: 2.168 MB / 0.8731 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005949/0.6452, allocations: 315.7 kB / 1.115 GB, free: 2.012 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 3.218e-05/0.6452, allocations: 32.84 kB / 1.115 GB, free: 1.98 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.6452, allocations: 6.906 kB / 1.115 GB, free: 1.977 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.436e-05/0.6452, allocations: 13.03 kB / 1.115 GB, free: 1.969 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002289/0.6455, allocations: 59.06 kB / 1.115 GB, free: 1.961 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.205e-06/0.6455, allocations: 4.016 kB / 1.115 GB, free: 1.961 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002506/0.6457, allocations: 36.05 kB / 1.115 GB, free: 1.941 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.218e-05/0.6458, allocations: 9.719 kB / 1.115 GB, free: 1.941 MB / 0.8731 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.0001456/0.6459, allocations: 156.5 kB / 1.115 GB, free: 1.801 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.651e-05/0.646, allocations: 32.77 kB / 1.116 GB, free: 1.785 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000465/0.6465, allocations: 200.1 kB / 1.116 GB, free: 1.695 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.6465, allocations: 5.641 kB / 1.116 GB, free: 1.691 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.6465, allocations: 1.25 kB / 1.116 GB, free: 1.691 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000482/0.647, allocations: 479.4 kB / 1.116 GB, free: 1.227 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004012/0.6474, allocations: 358.5 kB / 1.117 GB, free: 0.9648 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.6474, allocations: 0 / 1.117 GB, free: 0.9648 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001748/0.6476, allocations: 42.3 kB / 1.117 GB, free: 0.9531 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.6476, allocations: 0 / 1.117 GB, free: 0.9531 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.492e-05/0.6476, allocations: 2.75 kB / 1.117 GB, free: 0.9531 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.828e-06/0.6476, allocations: 5.281 kB / 1.117 GB, free: 0.9492 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.6476, allocations: 0 / 1.117 GB, free: 0.9492 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006117/0.6482, allocations: 286.3 kB / 1.117 GB, free: 0.8086 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001317/0.6484, allocations: 121.8 kB / 1.117 GB, free: 0.6914 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.543e-05/0.6484, allocations: 1.828 kB / 1.117 GB, free: 0.6914 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002432/0.6487, allocations: 21.12 kB / 1.117 GB, free: 0.6836 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.706e-05/0.6487, allocations: 16.38 kB / 1.117 GB, free: 0.6797 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.934e-05/0.6488, allocations: 11.41 kB / 1.117 GB, free: 0.6758 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0002498/0.649, allocations: 251.1 kB / 1.117 GB, free: 0.5391 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.4e-07/0.649, allocations: 0 / 1.117 GB, free: 0.5391 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003967/0.6494, allocations: 123.9 kB / 1.117 GB, free: 0.5117 MB / 0.8731 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.0011/0.6505, allocations: 0.9192 MB / 1.118 GB, free: 15.8 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.000536/0.6511, allocations: 228.8 kB / 1.118 GB, free: 15.69 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.6511, allocations: 0 / 1.118 GB, free: 15.69 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0001936/0.6513, allocations: 72.23 kB / 1.119 GB, free: 15.67 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009562/0.6523, allocations: 221.9 kB / 1.119 GB, free: 15.6 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003916/0.6562, allocations: 3.041 MB / 1.122 GB, free: 13.57 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003108/0.6565, allocations: 0.7908 MB / 1.123 GB, free: 12.87 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0002152/0.6567, allocations: 60.7 kB / 1.123 GB, free: 12.85 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001597/0.6569, allocations: 122.2 kB / 1.123 GB, free: 12.76 MB / 0.8887 GB Notification: Performance of SimCode: time 2.5e-07/0.6569, allocations: 0 / 1.123 GB, free: 12.76 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.042/1.699, allocations: 10.21 MB / 1.133 GB, free: 11.7 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.48/17.18, allocations: 7.641 kB / 1.133 GB, free: 11.7 MB / 0.8887 GB (rm -f Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Storage_Examples_ExpansionVessel_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Storage_Examples_ExpansionVessel.fmu > Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1)