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.001268/0.001268, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001239/0.001239, allocations: 195.9 kB / 16.26 MB, free: 6.629 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.286/1.286, allocations: 222.9 MB / 239.9 MB, free: 4.395 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.459/2.459, allocations: 437 MB / 0.7101 GB, free: 5.289 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 59.91 kB / 0.8689 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5065/0.5078, allocations: 151.6 MB / 1.017 GB, free: 2.703 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.01342/0.5212, allocations: 14.38 MB / 1.031 GB, free: 4.266 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.004156/0.5254, allocations: 3.613 MB / 1.034 GB, free: 0.6406 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002531/0.5257, allocations: 15.88 kB / 1.035 GB, free: 0.625 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0004793/0.5261, allocations: 179.1 kB / 1.035 GB, free: 460 kB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.001008/0.5272, allocations: 0.5483 MB / 1.035 GB, free: 15.9 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007115/0.5279, allocations: 355.3 kB / 1.036 GB, free: 15.55 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.001056/0.529, allocations: 1.103 MB / 1.037 GB, free: 14.45 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000367/0.5293, allocations: 318.8 kB / 1.037 GB, free: 14.14 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007636/0.5301, allocations: 386.8 kB / 1.037 GB, free: 13.76 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000316/0.5304, allocations: 314.6 kB / 1.038 GB, free: 13.45 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 4.819e-05/0.5305, allocations: 32 kB / 1.038 GB, free: 13.42 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004024/0.5309, allocations: 263.5 kB / 1.038 GB, free: 13.16 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 9.806e-05/0.531, allocations: 103.6 kB / 1.038 GB, free: 13.06 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001843/0.5312, allocations: 207 kB / 1.038 GB, free: 12.86 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0005935/0.5318, allocations: 0.5842 MB / 1.039 GB, free: 12.27 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.5318, allocations: 0 / 1.039 GB, free: 12.27 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.805e-06/0.5318, allocations: 0 / 1.039 GB, free: 12.27 MB / 0.795 GB Notification: Performance of Transformations before backend: time 6.302e-06/0.5318, allocations: 7.938 kB / 1.039 GB, free: 12.27 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.001014/0.5329, allocations: 0.7418 MB / 1.039 GB, free: 11.47 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.203e-05/0.5329, allocations: 12.03 kB / 1.039 GB, free: 11.46 MB / 0.795 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.153e-05/0.533, allocations: 62.72 kB / 1.04 GB, free: 11.39 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001626/0.5331, allocations: 44.47 kB / 1.04 GB, free: 11.34 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006528/0.5338, allocations: 483.8 kB / 1.04 GB, free: 10.83 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.262e-05/0.5338, allocations: 20.5 kB / 1.04 GB, free: 10.8 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.614e-05/0.5339, allocations: 31.94 kB / 1.04 GB, free: 10.77 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005436/0.5344, allocations: 310.2 kB / 1.04 GB, free: 10.45 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.384e-05/0.5345, allocations: 0 / 1.04 GB, free: 10.45 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.111e-05/0.5345, allocations: 16 kB / 1.04 GB, free: 10.44 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.506e-05/0.5345, allocations: 4 kB / 1.04 GB, free: 10.43 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004543/0.535, allocations: 194.1 kB / 1.041 GB, free: 10.25 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.00159/0.5366, allocations: 1.481 MB / 1.042 GB, free: 8.637 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004042/0.537, allocations: 158.6 kB / 1.042 GB, free: 8.473 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001746/0.5372, allocations: 68.81 kB / 1.042 GB, free: 8.402 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001241/0.5373, allocations: 85.11 kB / 1.042 GB, free: 8.301 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002886/0.5376, allocations: 127.3 kB / 1.042 GB, free: 8.164 MB / 0.795 GB Notification: Performance of pre-optimization done (n=15): time 1.794e-06/0.5376, allocations: 3.938 kB / 1.042 GB, free: 8.16 MB / 0.795 GB Notification: Performance of matching and sorting (n=15): time 0.0005908/0.5382, allocations: 237.1 kB / 1.043 GB, free: 7.922 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.211e-05/0.5383, allocations: 51.41 kB / 1.043 GB, free: 7.859 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003224/0.5386, allocations: 345.5 kB / 1.043 GB, free: 7.512 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.831e-05/0.5386, allocations: 29.7 kB / 1.043 GB, free: 7.477 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001317/0.5388, allocations: 211.8 kB / 1.043 GB, free: 7.266 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 4.494e-05/0.5388, allocations: 55.28 kB / 1.043 GB, free: 7.211 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.005e-05/0.5389, allocations: 57.61 kB / 1.043 GB, free: 7.148 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001067/0.539, allocations: 342.8 kB / 1.044 GB, free: 6.805 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001921/0.5392, allocations: 71.95 kB / 1.044 GB, free: 6.734 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002261/0.5395, allocations: 149.3 kB / 1.044 GB, free: 6.555 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000397/0.5399, allocations: 248.3 kB / 1.044 GB, free: 6.273 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.5399, allocations: 0 / 1.044 GB, free: 6.273 MB / 0.795 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005614/0.5404, allocations: 312.6 kB / 1.044 GB, free: 5.957 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.359e-05/0.5405, allocations: 37.7 kB / 1.045 GB, free: 5.914 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.5405, allocations: 4 kB / 1.045 GB, free: 5.91 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.5405, allocations: 7.938 kB / 1.045 GB, free: 5.902 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002252/0.5407, allocations: 51.91 kB / 1.045 GB, free: 5.852 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.398e-06/0.5408, allocations: 7.984 kB / 1.045 GB, free: 5.844 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002721/0.541, allocations: 47.86 kB / 1.045 GB, free: 5.797 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.372e-05/0.5411, allocations: 12 kB / 1.045 GB, free: 5.785 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.0001472/0.5412, allocations: 158.2 kB / 1.045 GB, free: 5.621 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.267e-05/0.5413, allocations: 35.62 kB / 1.045 GB, free: 5.586 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004528/0.5417, allocations: 201.6 kB / 1.045 GB, free: 5.387 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/0.5418, allocations: 3.984 kB / 1.045 GB, free: 5.383 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.5418, allocations: 4 kB / 1.045 GB, free: 5.379 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004449/0.5422, allocations: 480.5 kB / 1.045 GB, free: 4.824 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003829/0.5426, allocations: 353.4 kB / 1.046 GB, free: 4.43 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.5426, allocations: 0 / 1.046 GB, free: 4.43 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001715/0.5428, allocations: 31.97 kB / 1.046 GB, free: 4.398 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.5428, allocations: 0 / 1.046 GB, free: 4.398 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.852e-05/0.5428, allocations: 3.938 kB / 1.046 GB, free: 4.395 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.5428, allocations: 7.938 kB / 1.046 GB, free: 4.387 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.5428, allocations: 0 / 1.046 GB, free: 4.387 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005788/0.5434, allocations: 285.1 kB / 1.046 GB, free: 4.09 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001143/0.5436, allocations: 124.7 kB / 1.046 GB, free: 3.949 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.033e-05/0.5436, allocations: 11.88 kB / 1.046 GB, free: 3.938 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002507/0.5439, allocations: 11.98 kB / 1.046 GB, free: 3.926 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.899e-05/0.5439, allocations: 23.97 kB / 1.046 GB, free: 3.902 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.157e-05/0.544, allocations: 12 kB / 1.046 GB, free: 3.891 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0002183/0.5442, allocations: 235.2 kB / 1.047 GB, free: 3.66 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5442, allocations: 0 / 1.047 GB, free: 3.66 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003802/0.5446, allocations: 116 kB / 1.047 GB, free: 3.547 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.001017/0.5456, allocations: 0.9079 MB / 1.048 GB, free: 2.613 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0004875/0.5461, allocations: 239 kB / 1.048 GB, free: 2.367 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.5461, allocations: 0 / 1.048 GB, free: 2.367 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001787/0.5463, allocations: 67.89 kB / 1.048 GB, free: 2.301 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009179/0.5472, allocations: 215.8 kB / 1.048 GB, free: 2.102 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003921/0.5512, allocations: 3.142 MB / 1.051 GB, free: 14.82 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000284/0.5515, allocations: 0.7879 MB / 1.052 GB, free: 14 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0002496/0.5517, allocations: 67.19 kB / 1.052 GB, free: 13.94 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000158/0.5519, allocations: 123.3 kB / 1.052 GB, free: 13.82 MB / 0.8106 GB Notification: Performance of SimCode: time 2.4e-07/0.5519, allocations: 0 / 1.052 GB, free: 13.82 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.105/0.6569, allocations: 9.708 MB / 1.062 GB, free: 4.34 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001784/0.6571, allocations: 196 kB / 1.062 GB, free: 4.086 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.866/2.523, allocations: 0 / 1.062 GB, free: 4.086 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)