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.001399/0.001399, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001619/0.001619, allocations: 188.9 kB / 16.25 MB, free: 6.633 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.201/1.201, allocations: 222.9 MB / 239.9 MB, free: 4.492 MB / 190.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.084/2.084, allocations: 390.2 MB / 0.6644 GB, free: 0.5547 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 63.89 kB / 0.8122 GB, free: 14.69 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5103/0.5115, allocations: 140.4 MB / 0.9492 GB, free: 9.066 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.01169/0.5233, allocations: 14.38 MB / 0.9633 GB, free: 13.53 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.004352/0.5276, allocations: 3.61 MB / 0.9668 GB, free: 10.6 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000445/0.5281, allocations: 18 kB / 0.9668 GB, free: 10.59 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0005529/0.5287, allocations: 169.3 kB / 0.967 GB, free: 10.45 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.001313/0.53, allocations: 0.5545 MB / 0.9675 GB, free: 10.02 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000803/0.5308, allocations: 352.9 kB / 0.9679 GB, free: 9.758 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.00128/0.5321, allocations: 1.098 MB / 0.9689 GB, free: 9.121 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004413/0.5326, allocations: 320 kB / 0.9692 GB, free: 8.918 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009494/0.5335, allocations: 384.1 kB / 0.9696 GB, free: 8.707 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003432/0.5339, allocations: 321.2 kB / 0.9699 GB, free: 8.512 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 4.859e-05/0.5339, allocations: 31.66 kB / 0.9699 GB, free: 8.512 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004717/0.5344, allocations: 265.5 kB / 0.9702 GB, free: 8.375 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 9.44e-05/0.5345, allocations: 91.77 kB / 0.9703 GB, free: 8.305 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001943/0.5347, allocations: 214 kB / 0.9705 GB, free: 8.168 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0006252/0.5353, allocations: 0.5837 MB / 0.9711 GB, free: 7.781 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.5354, allocations: 0 / 0.9711 GB, free: 7.781 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.092e-06/0.5354, allocations: 1.062 kB / 0.9711 GB, free: 7.781 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.238e-05/0.5354, allocations: 0 / 0.9711 GB, free: 7.781 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.001002/0.5364, allocations: 0.7464 MB / 0.9718 GB, free: 7.121 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.198e-05/0.5364, allocations: 8.938 kB / 0.9718 GB, free: 7.121 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.394e-05/0.5365, allocations: 63.5 kB / 0.9718 GB, free: 7.059 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001614/0.5367, allocations: 49.22 kB / 0.9719 GB, free: 7.035 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00068/0.5373, allocations: 481.6 kB / 0.9724 GB, free: 6.617 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.345e-05/0.5374, allocations: 24.22 kB / 0.9724 GB, free: 6.602 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.641e-05/0.5374, allocations: 32.84 kB / 0.9724 GB, free: 6.586 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005304/0.538, allocations: 305.3 kB / 0.9727 GB, free: 6.379 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.471e-05/0.538, allocations: 1.219 kB / 0.9727 GB, free: 6.379 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.883e-05/0.538, allocations: 10.09 kB / 0.9727 GB, free: 6.371 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.668e-05/0.538, allocations: 7.125 kB / 0.9727 GB, free: 6.371 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004324/0.5385, allocations: 198.7 kB / 0.9729 GB, free: 6.277 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.001572/0.5401, allocations: 1.484 MB / 0.9744 GB, free: 4.891 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000382/0.5405, allocations: 162 kB / 0.9745 GB, free: 4.797 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001571/0.5406, allocations: 67.55 kB / 0.9746 GB, free: 4.762 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001185/0.5408, allocations: 91.91 kB / 0.9747 GB, free: 4.66 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000273/0.541, allocations: 121.6 kB / 0.9748 GB, free: 4.57 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=15): time 1.523e-06/0.541, allocations: 0 / 0.9748 GB, free: 4.57 MB / 0.7325 GB Notification: Performance of matching and sorting (n=15): time 0.0005588/0.5416, allocations: 237.7 kB / 0.975 GB, free: 4.441 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.342e-05/0.5417, allocations: 54.25 kB / 0.9751 GB, free: 4.379 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003158/0.542, allocations: 339.8 kB / 0.9754 GB, free: 4.152 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.813e-05/0.542, allocations: 35.06 kB / 0.9754 GB, free: 4.113 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001307/0.5421, allocations: 207.7 kB / 0.9756 GB, free: 3.926 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.857e-05/0.5422, allocations: 63.08 kB / 0.9757 GB, free: 3.871 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.638e-05/0.5423, allocations: 52.67 kB / 0.9757 GB, free: 3.832 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001104/0.5424, allocations: 338.5 kB / 0.976 GB, free: 3.5 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001845/0.5426, allocations: 73.06 kB / 0.9761 GB, free: 3.465 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002092/0.5428, allocations: 147.5 kB / 0.9763 GB, free: 3.332 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003813/0.5432, allocations: 248.3 kB / 0.9765 GB, free: 3.129 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.5432, allocations: 0.8438 kB / 0.9765 GB, free: 3.129 MB / 0.7325 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005542/0.5438, allocations: 313.5 kB / 0.9768 GB, free: 2.945 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.84e-05/0.5438, allocations: 40.39 kB / 0.9768 GB, free: 2.906 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.5438, allocations: 3.188 kB / 0.9768 GB, free: 2.906 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.343e-05/0.5438, allocations: 7.531 kB / 0.9768 GB, free: 2.902 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002078/0.5441, allocations: 54.62 kB / 0.9769 GB, free: 2.891 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.784e-06/0.5441, allocations: 3.375 kB / 0.9769 GB, free: 2.891 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002587/0.5443, allocations: 41.94 kB / 0.9769 GB, free: 2.863 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.344e-05/0.5444, allocations: 13.41 kB / 0.977 GB, free: 2.859 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.0001478/0.5445, allocations: 158.5 kB / 0.9771 GB, free: 2.715 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.371e-05/0.5446, allocations: 31.88 kB / 0.9771 GB, free: 2.699 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000434/0.545, allocations: 203.9 kB / 0.9773 GB, free: 2.566 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.545, allocations: 1.094 kB / 0.9773 GB, free: 2.566 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.545, allocations: 0 / 0.9773 GB, free: 2.566 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000441/0.5455, allocations: 486.5 kB / 0.9778 GB, free: 2.074 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003766/0.5459, allocations: 354.4 kB / 0.9781 GB, free: 1.754 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.5459, allocations: 0 / 0.9781 GB, free: 1.754 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001609/0.546, allocations: 27.95 kB / 0.9782 GB, free: 1.75 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.5461, allocations: 1.125 kB / 0.9782 GB, free: 1.75 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.026e-05/0.5461, allocations: 13.02 kB / 0.9782 GB, free: 1.738 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.5461, allocations: 1.062 kB / 0.9782 GB, free: 1.738 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.205e-06/0.5461, allocations: 3.938 kB / 0.9782 GB, free: 1.734 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005703/0.5467, allocations: 280.5 kB / 0.9784 GB, free: 1.562 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001139/0.5468, allocations: 121.5 kB / 0.9786 GB, free: 1.438 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.05e-05/0.5468, allocations: 13.05 kB / 0.9786 GB, free: 1.426 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002359/0.5471, allocations: 21.52 kB / 0.9786 GB, free: 1.414 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.574e-05/0.5472, allocations: 10.92 kB / 0.9786 GB, free: 1.41 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.154e-05/0.5472, allocations: 13.39 kB / 0.9786 GB, free: 1.402 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002262/0.5474, allocations: 242 kB / 0.9788 GB, free: 1.246 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.71e-07/0.5474, allocations: 0 / 0.9788 GB, free: 1.246 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003776/0.5478, allocations: 115.5 kB / 0.979 GB, free: 1.223 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.0009631/0.5488, allocations: 0.9073 MB / 0.9798 GB, free: 484 kB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004682/0.5493, allocations: 246.8 kB / 0.9801 GB, free: 328 kB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.053e-06/0.5493, allocations: 1.562 kB / 0.9801 GB, free: 328 kB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001668/0.5494, allocations: 63.91 kB / 0.9801 GB, free: 304 kB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000862/0.5503, allocations: 208.6 kB / 0.9803 GB, free: 200 kB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003964/0.5543, allocations: 3.147 MB / 0.9834 GB, free: 13.78 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002952/0.5546, allocations: 0.7999 MB / 0.9842 GB, free: 13.02 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0002583/0.5549, allocations: 59.48 kB / 0.9842 GB, free: 13 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001542/0.555, allocations: 114 kB / 0.9844 GB, free: 12.91 MB / 0.7481 GB Notification: Performance of SimCode: time 1.743e-06/0.555, allocations: 0 / 0.9844 GB, free: 12.91 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7106/1.266, allocations: 9.713 MB / 0.9938 GB, free: 3.691 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001981/1.266, allocations: 203.1 kB / 0.994 GB, free: 3.43 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.459/3.725, allocations: 3.938 kB / 0.994 GB, free: 3.426 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)