Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Fluid_Storage_Examples_ExpansionVessel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.ExpansionVessel,fileNamePrefix="Buildings_10_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.001451/0.001451, 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.001722/0.001722, allocations: 196 kB / 16.54 MB, free: 6.672 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.271/1.271, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.397/2.397, allocations: 437.1 MB / 0.7104 GB, free: 5.07 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 59.91 kB / 0.8693 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5038/0.5051, allocations: 151.6 MB / 1.017 GB, free: 2.449 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.0146/0.5197, allocations: 14.43 MB / 1.032 GB, free: 3.953 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.004731/0.5245, allocations: 3.646 MB / 1.035 GB, free: 304 kB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003246/0.5248, allocations: 19.88 kB / 1.035 GB, free: 284 kB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0005102/0.5253, allocations: 198.7 kB / 1.035 GB, free: 84 kB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.001158/0.5265, allocations: 0.5947 MB / 1.036 GB, free: 15.48 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007827/0.5273, allocations: 379.5 kB / 1.036 GB, free: 15.12 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.001082/0.5284, allocations: 1.079 MB / 1.037 GB, free: 14.04 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003853/0.5288, allocations: 326.8 kB / 1.038 GB, free: 13.71 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007794/0.5296, allocations: 393.5 kB / 1.038 GB, free: 13.33 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003459/0.53, allocations: 302.7 kB / 1.038 GB, free: 13.04 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 5.781e-05/0.53, allocations: 32 kB / 1.038 GB, free: 13 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005029/0.5306, allocations: 271.4 kB / 1.039 GB, free: 12.74 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001093/0.5307, allocations: 91.67 kB / 1.039 GB, free: 12.65 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0002153/0.5309, allocations: 218.9 kB / 1.039 GB, free: 12.43 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0006691/0.5316, allocations: 0.5687 MB / 1.039 GB, free: 11.86 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 6.171e-06/0.5316, allocations: 7.984 kB / 1.039 GB, free: 11.86 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.393e-06/0.5316, allocations: 0 / 1.039 GB, free: 11.86 MB / 0.795 GB Notification: Performance of Transformations before backend: time 6.933e-06/0.5316, allocations: 0 / 1.039 GB, free: 11.86 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001074/0.5327, allocations: 0.7495 MB / 1.04 GB, free: 11.05 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.116e-05/0.5327, allocations: 8.031 kB / 1.04 GB, free: 11.04 MB / 0.795 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.442e-05/0.5328, allocations: 62.72 kB / 1.04 GB, free: 10.97 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001648/0.533, allocations: 48.47 kB / 1.04 GB, free: 10.93 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006073/0.5336, allocations: 439.7 kB / 1.041 GB, free: 10.45 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.322e-05/0.5336, allocations: 28.69 kB / 1.041 GB, free: 10.42 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.831e-05/0.5337, allocations: 28 kB / 1.041 GB, free: 10.39 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000542/0.5342, allocations: 306.2 kB / 1.041 GB, free: 10.07 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.398e-05/0.5342, allocations: 4 kB / 1.041 GB, free: 10.07 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.932e-05/0.5343, allocations: 8 kB / 1.041 GB, free: 10.06 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.69e-05/0.5343, allocations: 8 kB / 1.041 GB, free: 10.05 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004662/0.5348, allocations: 198.1 kB / 1.041 GB, free: 9.863 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.001707/0.5365, allocations: 1.497 MB / 1.043 GB, free: 8.238 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004211/0.5369, allocations: 154.6 kB / 1.043 GB, free: 8.078 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001829/0.5371, allocations: 68.81 kB / 1.043 GB, free: 8.008 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001231/0.5372, allocations: 89.09 kB / 1.043 GB, free: 7.902 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002804/0.5375, allocations: 120.6 kB / 1.043 GB, free: 7.773 MB / 0.795 GB Notification: Performance of pre-optimization done (n=15): time 1.583e-06/0.5375, allocations: 0 / 1.043 GB, free: 7.773 MB / 0.795 GB Notification: Performance of matching and sorting (n=15): time 0.0006256/0.5382, allocations: 245.9 kB / 1.043 GB, free: 7.527 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.715e-05/0.5382, allocations: 55.41 kB / 1.043 GB, free: 7.461 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003496/0.5386, allocations: 349.6 kB / 1.044 GB, free: 7.109 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.617e-05/0.5386, allocations: 29.7 kB / 1.044 GB, free: 7.074 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001448/0.5388, allocations: 215.7 kB / 1.044 GB, free: 6.859 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 4.735e-05/0.5388, allocations: 55.28 kB / 1.044 GB, free: 6.805 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.816e-05/0.5389, allocations: 53.61 kB / 1.044 GB, free: 6.746 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001305/0.539, allocations: 346.8 kB / 1.044 GB, free: 6.398 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001982/0.5392, allocations: 71.95 kB / 1.044 GB, free: 6.328 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002353/0.5395, allocations: 146.3 kB / 1.045 GB, free: 6.152 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004246/0.5399, allocations: 248.9 kB / 1.045 GB, free: 5.871 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.5399, allocations: 0 / 1.045 GB, free: 5.871 MB / 0.795 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005884/0.5405, allocations: 316.4 kB / 1.045 GB, free: 5.551 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.15e-05/0.5406, allocations: 33.7 kB / 1.045 GB, free: 5.512 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/0.5406, allocations: 7.938 kB / 1.045 GB, free: 5.504 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.387e-05/0.5406, allocations: 7.938 kB / 1.045 GB, free: 5.496 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002248/0.5408, allocations: 51.91 kB / 1.045 GB, free: 5.445 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.709e-06/0.5409, allocations: 7.938 kB / 1.045 GB, free: 5.438 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002481/0.5411, allocations: 35.67 kB / 1.045 GB, free: 5.402 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.19e-05/0.5411, allocations: 15.98 kB / 1.045 GB, free: 5.387 MB / 0.795 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.0001488/0.5413, allocations: 157.9 kB / 1.045 GB, free: 5.223 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.499e-05/0.5414, allocations: 31.62 kB / 1.045 GB, free: 5.191 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004601/0.5418, allocations: 197.5 kB / 1.046 GB, free: 4.996 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.419e-06/0.5418, allocations: 3.938 kB / 1.046 GB, free: 4.992 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.5419, allocations: 0 / 1.046 GB, free: 4.992 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004923/0.5424, allocations: 488.7 kB / 1.046 GB, free: 4.43 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004034/0.5428, allocations: 357.4 kB / 1.046 GB, free: 4.031 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.5428, allocations: 0 / 1.046 GB, free: 4.031 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001689/0.5429, allocations: 27.97 kB / 1.046 GB, free: 4.004 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.543, allocations: 4 kB / 1.046 GB, free: 4 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.57e-05/0.543, allocations: 4 kB / 1.046 GB, free: 3.996 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.543, allocations: 3.938 kB / 1.046 GB, free: 3.992 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.543, allocations: 0 / 1.046 GB, free: 3.992 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006108/0.5436, allocations: 290.5 kB / 1.047 GB, free: 3.691 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001266/0.5437, allocations: 124.8 kB / 1.047 GB, free: 3.551 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.851e-05/0.5438, allocations: 11.94 kB / 1.047 GB, free: 3.539 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002396/0.5441, allocations: 19.92 kB / 1.047 GB, free: 3.52 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.495e-05/0.5441, allocations: 15.97 kB / 1.047 GB, free: 3.504 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.884e-05/0.5441, allocations: 8 kB / 1.047 GB, free: 3.496 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0002434/0.5444, allocations: 251.2 kB / 1.047 GB, free: 3.254 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5444, allocations: 0 / 1.047 GB, free: 3.254 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0004045/0.5448, allocations: 119.8 kB / 1.047 GB, free: 3.137 MB / 0.795 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.5459, allocations: 0.9183 MB / 1.048 GB, free: 2.191 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0004999/0.5464, allocations: 227.2 kB / 1.048 GB, free: 1.957 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.5464, allocations: 0 / 1.048 GB, free: 1.957 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001802/0.5466, allocations: 78.08 kB / 1.048 GB, free: 1.883 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009487/0.5476, allocations: 211.8 kB / 1.049 GB, free: 1.688 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00389/0.5515, allocations: 3.084 MB / 1.052 GB, free: 14.46 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003004/0.5518, allocations: 0.7918 MB / 1.052 GB, free: 13.64 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0002499/0.5521, allocations: 67.17 kB / 1.053 GB, free: 13.58 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001546/0.5522, allocations: 115.4 kB / 1.053 GB, free: 13.46 MB / 0.8106 GB Notification: Performance of SimCode: time 2.71e-07/0.5522, allocations: 3.938 kB / 1.053 GB, free: 13.46 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05179/0.604, allocations: 10.12 MB / 1.063 GB, free: 3.516 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.788/8.392, allocations: 14.94 kB / 1.063 GB, free: 3.508 MB / 0.8106 GB (rm -f Buildings_10_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; mkfifo Buildings_10_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe >> ../files/Buildings_10_Buildings.Fluid.Storage.Examples.ExpansionVessel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Storage.Examples.ExpansionVessel_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Storage_Examples_ExpansionVessel_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Storage_Examples_ExpansionVessel.fmu > Buildings_10_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1)