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.001271/0.001271, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001246/0.001246, allocations: 193.1 kB / 16.14 MB, free: 6.711 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.261/1.261, allocations: 222.9 MB / 239.8 MB, free: 4.539 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.161/2.161, allocations: 390.2 MB / 0.6643 GB, free: 0.6367 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 55.91 kB / 0.812 GB, free: 14.84 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4737/0.4749, allocations: 140.4 MB / 0.949 GB, free: 9.098 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.01057/0.4855, allocations: 14.39 MB / 0.9631 GB, free: 13.57 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.004085/0.4896, allocations: 3.685 MB / 0.9667 GB, free: 10.6 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002291/0.4898, allocations: 17.91 kB / 0.9667 GB, free: 10.59 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0004454/0.4903, allocations: 173.6 kB / 0.9669 GB, free: 10.45 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.000904/0.4912, allocations: 0.5444 MB / 0.9674 GB, free: 10.01 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006263/0.4919, allocations: 354.8 kB / 0.9677 GB, free: 9.75 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.001177/0.493, allocations: 1.452 MB / 0.9692 GB, free: 8.949 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003181/0.4934, allocations: 273.3 kB / 0.9694 GB, free: 8.777 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003496/0.4937, allocations: 326 kB / 0.9697 GB, free: 8.605 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003094/0.494, allocations: 304 kB / 0.97 GB, free: 8.43 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 4.553e-05/0.4941, allocations: 17.66 kB / 0.97 GB, free: 8.43 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004292/0.4945, allocations: 252.1 kB / 0.9703 GB, free: 8.293 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 9.489e-05/0.4946, allocations: 79.69 kB / 0.9704 GB, free: 8.234 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001919/0.4948, allocations: 194 kB / 0.9705 GB, free: 8.117 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0006094/0.4954, allocations: 0.5709 MB / 0.9711 GB, free: 7.738 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.4955, allocations: 1.094 kB / 0.9711 GB, free: 7.738 MB / 0.7325 GB Notification: Performance of FrontEnd: time 8.01e-07/0.4955, allocations: 0 / 0.9711 GB, free: 7.738 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.913e-06/0.4955, allocations: 4 kB / 0.9711 GB, free: 7.734 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.001005/0.4965, allocations: 0.7458 MB / 0.9718 GB, free: 7.074 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.236e-05/0.4965, allocations: 9.531 kB / 0.9718 GB, free: 7.074 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.292e-05/0.4966, allocations: 64.19 kB / 0.9719 GB, free: 7.012 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001605/0.4968, allocations: 48.66 kB / 0.972 GB, free: 6.988 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006189/0.4974, allocations: 482.2 kB / 0.9724 GB, free: 6.57 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.651e-05/0.4974, allocations: 26.72 kB / 0.9724 GB, free: 6.551 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.363e-05/0.4975, allocations: 26.47 kB / 0.9725 GB, free: 6.543 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005321/0.498, allocations: 308.7 kB / 0.9728 GB, free: 6.332 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.252e-05/0.498, allocations: 1.094 kB / 0.9728 GB, free: 6.332 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.093e-05/0.4981, allocations: 19.27 kB / 0.9728 GB, free: 6.316 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.691e-05/0.4981, allocations: 6.781 kB / 0.9728 GB, free: 6.316 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004341/0.4985, allocations: 190 kB / 0.973 GB, free: 6.23 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.001545/0.5001, allocations: 1.481 MB / 0.9744 GB, free: 4.852 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003752/0.5005, allocations: 150.1 kB / 0.9746 GB, free: 4.77 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001643/0.5006, allocations: 77.23 kB / 0.9746 GB, free: 4.723 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001415/0.5008, allocations: 92.19 kB / 0.9747 GB, free: 4.621 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002607/0.5011, allocations: 124 kB / 0.9748 GB, free: 4.531 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=15): time 2.845e-06/0.5011, allocations: 0 / 0.9748 GB, free: 4.531 MB / 0.7325 GB Notification: Performance of matching and sorting (n=15): time 0.000568/0.5017, allocations: 241 kB / 0.9751 GB, free: 4.398 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.255e-05/0.5017, allocations: 53.72 kB / 0.9751 GB, free: 4.336 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003129/0.502, allocations: 339.5 kB / 0.9754 GB, free: 4.109 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.497e-05/0.502, allocations: 31.2 kB / 0.9755 GB, free: 4.074 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001331/0.5022, allocations: 216 kB / 0.9757 GB, free: 3.879 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.083e-05/0.5022, allocations: 51.08 kB / 0.9757 GB, free: 3.836 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.111e-05/0.5023, allocations: 57.06 kB / 0.9758 GB, free: 3.793 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001043/0.5024, allocations: 341.9 kB / 0.9761 GB, free: 3.457 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001852/0.5026, allocations: 72.61 kB / 0.9762 GB, free: 3.422 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002187/0.5028, allocations: 147.5 kB / 0.9763 GB, free: 3.289 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004089/0.5033, allocations: 248.2 kB / 0.9766 GB, free: 3.086 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.5033, allocations: 1 kB / 0.9766 GB, free: 3.086 MB / 0.7325 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005558/0.5038, allocations: 313.6 kB / 0.9769 GB, free: 2.902 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.114e-05/0.5039, allocations: 36.75 kB / 0.9769 GB, free: 2.867 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.5039, allocations: 3.344 kB / 0.9769 GB, free: 2.867 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.257e-05/0.5039, allocations: 7.656 kB / 0.9769 GB, free: 2.863 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002152/0.5041, allocations: 57.5 kB / 0.977 GB, free: 2.848 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.854e-06/0.5041, allocations: 4.281 kB / 0.977 GB, free: 2.848 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002552/0.5044, allocations: 42.3 kB / 0.977 GB, free: 2.82 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.215e-05/0.5044, allocations: 8.75 kB / 0.977 GB, free: 2.82 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.0001375/0.5046, allocations: 158.9 kB / 0.9772 GB, free: 2.676 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.146e-05/0.5046, allocations: 31.56 kB / 0.9772 GB, free: 2.66 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004258/0.5051, allocations: 202 kB / 0.9774 GB, free: 2.535 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.5051, allocations: 1.594 kB / 0.9774 GB, free: 2.535 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.387e-06/0.5051, allocations: 4 kB / 0.9774 GB, free: 2.531 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004198/0.5055, allocations: 479.3 kB / 0.9778 GB, free: 2.043 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003603/0.5059, allocations: 350.8 kB / 0.9782 GB, free: 1.727 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.534e-06/0.5059, allocations: 3.984 kB / 0.9782 GB, free: 1.723 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001542/0.506, allocations: 27.17 kB / 0.9782 GB, free: 1.719 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.5061, allocations: 1.375 kB / 0.9782 GB, free: 1.719 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.799e-05/0.5061, allocations: 13.09 kB / 0.9782 GB, free: 1.707 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.184e-06/0.5061, allocations: 8.656 kB / 0.9782 GB, free: 1.699 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.5061, allocations: 1 kB / 0.9782 GB, free: 1.699 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005411/0.5066, allocations: 289.2 kB / 0.9785 GB, free: 1.52 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001098/0.5068, allocations: 120.8 kB / 0.9786 GB, free: 1.395 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.573e-05/0.5068, allocations: 6.125 kB / 0.9786 GB, free: 1.391 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002271/0.5071, allocations: 24.44 kB / 0.9786 GB, free: 1.375 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.165e-05/0.5071, allocations: 15.92 kB / 0.9787 GB, free: 1.367 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.968e-05/0.5071, allocations: 9.297 kB / 0.9787 GB, free: 1.363 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002199/0.5074, allocations: 237 kB / 0.9789 GB, free: 1.211 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.954e-06/0.5074, allocations: 1.344 kB / 0.9789 GB, free: 1.211 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003456/0.5077, allocations: 117.9 kB / 0.979 GB, free: 1.184 MB / 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.0009238/0.5086, allocations: 0.9044 MB / 0.9799 GB, free: 448 kB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004182/0.5091, allocations: 229 kB / 0.9801 GB, free: 308 kB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.5091, allocations: 0 / 0.9801 GB, free: 308 kB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001676/0.5093, allocations: 68.42 kB / 0.9802 GB, free: 280 kB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000829/0.5101, allocations: 204 kB / 0.9804 GB, free: 184 kB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003696/0.5138, allocations: 3.153 MB / 0.9835 GB, free: 13.75 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002733/0.5141, allocations: 0.7907 MB / 0.9842 GB, free: 13.01 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0002271/0.5143, allocations: 63.97 kB / 0.9843 GB, free: 12.98 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001401/0.5145, allocations: 117.2 kB / 0.9844 GB, free: 12.88 MB / 0.7481 GB Notification: Performance of SimCode: time 2.1e-07/0.5145, allocations: 1.469 kB / 0.9844 GB, free: 12.88 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.414/0.9285, allocations: 9.427 MB / 0.9936 GB, free: 3.801 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001864/0.9287, allocations: 188.9 kB / 0.9938 GB, free: 3.551 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.886/2.815, allocations: 11.94 kB / 0.9938 GB, free: 3.539 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)