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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0009298/0.0009297, allocations: 92 kB / 15.36 MB, free: 0.7383 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.007207/0.007207, allocations: 170.6 kB / 16.26 MB, free: 6.613 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.301/1.301, allocations: 223.3 MB / 240.3 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.191/2.191, allocations: 390.9 MB / 0.6664 GB, free: 2.328 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003005/0.0003006, allocations: 12 kB / 0.8161 GB, free: 13.11 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5261/0.5264, allocations: 142.4 MB / 0.9552 GB, free: 7.688 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.01195/0.5384, allocations: 13.9 MB / 0.9687 GB, free: 12.53 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.004819/0.5432, allocations: 3.616 MB / 0.9723 GB, free: 9.609 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004693/0.5437, allocations: 17.88 kB / 0.9723 GB, free: 9.602 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.000529/0.5443, allocations: 168.3 kB / 0.9724 GB, free: 9.461 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.001327/0.5456, allocations: 0.5415 MB / 0.973 GB, free: 9.031 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008568/0.5465, allocations: 358 kB / 0.9733 GB, free: 8.766 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.001664/0.5481, allocations: 1.452 MB / 0.9747 GB, free: 7.965 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004421/0.5486, allocations: 268.9 kB / 0.975 GB, free: 7.797 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005743/0.5492, allocations: 310.5 kB / 0.9753 GB, free: 7.637 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004616/0.5496, allocations: 302.8 kB / 0.9756 GB, free: 7.461 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 4.732e-05/0.5497, allocations: 17.25 kB / 0.9756 GB, free: 7.457 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000539/0.5502, allocations: 244.4 kB / 0.9758 GB, free: 7.324 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 9.912e-05/0.5504, allocations: 72.45 kB / 0.9759 GB, free: 7.273 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.000242/0.5506, allocations: 213.3 kB / 0.9761 GB, free: 7.129 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0007247/0.5513, allocations: 0.5604 MB / 0.9766 GB, free: 6.762 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 2.886e-06/0.5513, allocations: 0 / 0.9766 GB, free: 6.762 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.273e-06/0.5514, allocations: 0 / 0.9766 GB, free: 6.762 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 9.918e-06/0.5514, allocations: 1.188 kB / 0.9766 GB, free: 6.762 MB / 0.7325 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.00105/0.5524, allocations: 0.6812 MB / 0.9773 GB, free: 6.145 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.5525, allocations: 10.25 kB / 0.9773 GB, free: 6.145 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.895e-05/0.5526, allocations: 59.58 kB / 0.9774 GB, free: 6.086 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001723/0.5527, allocations: 48.73 kB / 0.9774 GB, free: 6.062 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000737/0.5535, allocations: 477.5 kB / 0.9779 GB, free: 5.648 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.822e-05/0.5535, allocations: 23.88 kB / 0.9779 GB, free: 5.633 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.156e-05/0.5536, allocations: 33.42 kB / 0.9779 GB, free: 5.617 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005843/0.5542, allocations: 309.6 kB / 0.9782 GB, free: 5.41 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.446e-05/0.5542, allocations: 5.219 kB / 0.9782 GB, free: 5.406 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.099e-05/0.5542, allocations: 11.5 kB / 0.9782 GB, free: 5.398 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.969e-05/0.5543, allocations: 10.45 kB / 0.9782 GB, free: 5.395 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004983/0.5548, allocations: 204.4 kB / 0.9784 GB, free: 5.305 MB / 0.7325 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.001785/0.5565, allocations: 1.491 MB / 0.9799 GB, free: 3.918 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004455/0.557, allocations: 168.2 kB / 0.9801 GB, free: 3.828 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001904/0.5572, allocations: 74.88 kB / 0.9801 GB, free: 3.789 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001498/0.5574, allocations: 88.62 kB / 0.9802 GB, free: 3.691 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002866/0.5577, allocations: 133.3 kB / 0.9803 GB, free: 3.598 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=15): time 1.623e-06/0.5577, allocations: 4 kB / 0.9803 GB, free: 3.594 MB / 0.7325 GB Notification: Performance of matching and sorting (n=15): time 0.0006416/0.5583, allocations: 247.7 kB / 0.9806 GB, free: 3.469 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.688e-05/0.5584, allocations: 62.45 kB / 0.9806 GB, free: 3.398 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003589/0.5587, allocations: 337.6 kB / 0.981 GB, free: 3.176 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.969e-05/0.5588, allocations: 32.52 kB / 0.981 GB, free: 3.141 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001564/0.5589, allocations: 212.6 kB / 0.9812 GB, free: 2.949 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 5.037e-05/0.559, allocations: 50.55 kB / 0.9812 GB, free: 2.906 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.473e-05/0.559, allocations: 28.95 kB / 0.9813 GB, free: 2.879 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001312/0.5592, allocations: 343 kB / 0.9816 GB, free: 2.543 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002063/0.5594, allocations: 78.2 kB / 0.9817 GB, free: 2.508 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002346/0.5596, allocations: 147.2 kB / 0.9818 GB, free: 2.379 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004503/0.5601, allocations: 260.3 kB / 0.9821 GB, free: 2.176 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.5601, allocations: 1.062 kB / 0.9821 GB, free: 2.176 MB / 0.7325 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006134/0.5607, allocations: 330.9 kB / 0.9824 GB, free: 1.984 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.268e-05/0.5608, allocations: 31.95 kB / 0.9824 GB, free: 1.953 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.5608, allocations: 3.375 kB / 0.9824 GB, free: 1.953 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.523e-05/0.5608, allocations: 11.84 kB / 0.9824 GB, free: 1.945 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000241/0.5611, allocations: 57 kB / 0.9825 GB, free: 1.934 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.908e-06/0.5611, allocations: 10.7 kB / 0.9825 GB, free: 1.926 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002852/0.5614, allocations: 37.39 kB / 0.9825 GB, free: 1.906 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.541e-05/0.5614, allocations: 13.66 kB / 0.9825 GB, free: 1.902 MB / 0.7325 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.0001581/0.5616, allocations: 158.4 kB / 0.9827 GB, free: 1.758 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.795e-05/0.5616, allocations: 35.98 kB / 0.9827 GB, free: 1.738 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004789/0.5621, allocations: 210.2 kB / 0.9829 GB, free: 1.613 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.5621, allocations: 6.531 kB / 0.9829 GB, free: 1.609 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.5621, allocations: 3.984 kB / 0.9829 GB, free: 1.605 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004887/0.5626, allocations: 485.8 kB / 0.9834 GB, free: 1.121 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004128/0.5631, allocations: 358.1 kB / 0.9837 GB, free: 0.7969 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.5631, allocations: 0 / 0.9837 GB, free: 0.7969 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001722/0.5632, allocations: 37.95 kB / 0.9838 GB, free: 0.7852 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.5633, allocations: 1.125 kB / 0.9838 GB, free: 0.7852 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.952e-05/0.5633, allocations: 13.02 kB / 0.9838 GB, free: 0.7734 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.936e-06/0.5633, allocations: 1.5 kB / 0.9838 GB, free: 0.7734 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.5633, allocations: 3.938 kB / 0.9838 GB, free: 0.7695 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006175/0.5639, allocations: 297.3 kB / 0.9841 GB, free: 0.5977 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001199/0.564, allocations: 126.2 kB / 0.9842 GB, free: 480 kB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.8e-05/0.5641, allocations: 9.25 kB / 0.9842 GB, free: 472 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002492/0.5644, allocations: 24.05 kB / 0.9842 GB, free: 460 kB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.55e-05/0.5644, allocations: 18.88 kB / 0.9842 GB, free: 448 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.888e-05/0.5645, allocations: 9.234 kB / 0.9843 GB, free: 444 kB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002226/0.5647, allocations: 233.7 kB / 0.9845 GB, free: 292 kB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5647, allocations: 1.312 kB / 0.9845 GB, free: 292 kB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004211/0.5651, allocations: 118.5 kB / 0.9846 GB, free: 264 kB / 0.7325 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.001072/0.5662, allocations: 0.9177 MB / 0.9855 GB, free: 15.51 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0004808/0.5667, allocations: 248.2 kB / 0.9857 GB, free: 15.29 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.5667, allocations: 0 / 0.9857 GB, free: 15.29 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001933/0.5669, allocations: 71.89 kB / 0.9858 GB, free: 15.22 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009973/0.5679, allocations: 204.5 kB / 0.986 GB, free: 15.03 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004185/0.5721, allocations: 3.254 MB / 0.9892 GB, free: 11.62 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003384/0.5725, allocations: 0.7879 MB / 0.9899 GB, free: 10.81 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0002414/0.5727, allocations: 71.23 kB / 0.99 GB, free: 10.74 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001557/0.5729, allocations: 111.4 kB / 0.9901 GB, free: 10.63 MB / 0.7481 GB Notification: Performance of SimCode: time 2.61e-07/0.5729, allocations: 0 / 0.9901 GB, free: 10.63 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6564/1.229, allocations: 9.336 MB / 0.9992 GB, free: 1.52 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001906/1.229, allocations: 189.4 kB / 0.9994 GB, free: 1.27 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.955/3.184, allocations: 0 / 0.9994 GB, free: 1.27 MB / 0.7481 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)