Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Storage_Examples_ExpansionVessel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel,fileNamePrefix="BuildingSystems_BuildingSystems_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.001068/0.001068, 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.00104/0.00104, allocations: 193.1 kB / 16.53 MB, free: 6.391 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.236/1.236, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002028/0.002028, allocations: 286.9 kB / 290.7 MB, free: 2.012 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8903/0.8903, allocations: 169.2 MB / 0.4982 GB, free: 13.96 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001705/0.001705, allocations: 105 kB / 0.5953 GB, free: 27.81 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1252, allocations: 86.98 MB / 0.6803 GB, free: 0.6016 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel): time 0.01343/0.1386, allocations: 14.41 MB / 0.6944 GB, free: 2.145 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004263/0.1429, allocations: 3.651 MB / 0.6979 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003218/0.1433, allocations: 19.88 kB / 0.6979 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0005521/0.1438, allocations: 202.7 kB / 0.6981 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.001219/0.1451, allocations: 0.5868 MB / 0.6987 GB, free: 13.67 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008176/0.1459, allocations: 382.5 kB / 0.6991 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001038/0.147, allocations: 1.086 MB / 0.7001 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003639/0.1473, allocations: 316.5 kB / 0.7004 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007579/0.1481, allocations: 382.2 kB / 0.7008 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000341/0.1485, allocations: 302.7 kB / 0.7011 GB, free: 11.24 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 5.549e-05/0.1485, allocations: 32 kB / 0.7011 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005014/0.149, allocations: 271.5 kB / 0.7014 GB, free: 10.94 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.78e-05/0.1491, allocations: 99.61 kB / 0.7015 GB, free: 10.84 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001828/0.1493, allocations: 207 kB / 0.7017 GB, free: 10.64 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0006224/0.15, allocations: 0.5803 MB / 0.7022 GB, free: 10.06 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.15, allocations: 0 / 0.7022 GB, free: 10.06 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.142e-06/0.15, allocations: 0 / 0.7022 GB, free: 10.06 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.582e-06/0.15, allocations: 0 / 0.7022 GB, free: 10.06 MB / 0.4981 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.001007/0.151, allocations: 0.7553 MB / 0.703 GB, free: 9.246 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.289e-05/0.151, allocations: 12.03 kB / 0.703 GB, free: 9.234 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.333e-05/0.1511, allocations: 66.72 kB / 0.703 GB, free: 9.16 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001602/0.1513, allocations: 44.47 kB / 0.7031 GB, free: 9.117 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005816/0.1519, allocations: 447.6 kB / 0.7035 GB, free: 8.637 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.501e-05/0.1519, allocations: 32.66 kB / 0.7035 GB, free: 8.605 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.435e-05/0.1519, allocations: 24 kB / 0.7036 GB, free: 8.582 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005128/0.1525, allocations: 306.2 kB / 0.7039 GB, free: 8.266 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/0.1525, allocations: 0 / 0.7039 GB, free: 8.266 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.156e-05/0.1525, allocations: 15.98 kB / 0.7039 GB, free: 8.25 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.92e-05/0.1526, allocations: 8 kB / 0.7039 GB, free: 8.242 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004501/0.153, allocations: 198 kB / 0.7041 GB, free: 8.051 MB / 0.4981 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.001616/0.1546, allocations: 1.489 MB / 0.7055 GB, free: 6.43 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004099/0.1551, allocations: 150.6 kB / 0.7057 GB, free: 6.273 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001715/0.1552, allocations: 72.81 kB / 0.7057 GB, free: 6.199 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001211/0.1554, allocations: 85.09 kB / 0.7058 GB, free: 6.098 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002845/0.1557, allocations: 135.5 kB / 0.706 GB, free: 5.953 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.673e-06/0.1557, allocations: 0 / 0.706 GB, free: 5.953 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.0006052/0.1563, allocations: 231.7 kB / 0.7062 GB, free: 5.723 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.741e-05/0.1563, allocations: 59.33 kB / 0.7062 GB, free: 5.652 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003259/0.1567, allocations: 349.6 kB / 0.7066 GB, free: 5.305 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.875e-05/0.1567, allocations: 37.69 kB / 0.7066 GB, free: 5.262 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001303/0.1568, allocations: 215.8 kB / 0.7068 GB, free: 5.047 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.538e-05/0.1569, allocations: 63.12 kB / 0.7069 GB, free: 4.984 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.761e-05/0.157, allocations: 49.7 kB / 0.7069 GB, free: 4.93 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001015/0.1571, allocations: 338.8 kB / 0.7072 GB, free: 4.59 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001909/0.1573, allocations: 71.94 kB / 0.7073 GB, free: 4.52 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002199/0.1575, allocations: 149.4 kB / 0.7074 GB, free: 4.34 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003956/0.1579, allocations: 243 kB / 0.7077 GB, free: 4.062 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.1579, allocations: 8 kB / 0.7077 GB, free: 4.055 MB / 0.4981 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005733/0.1585, allocations: 312.5 kB / 0.708 GB, free: 3.738 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.031e-05/0.1585, allocations: 33.7 kB / 0.708 GB, free: 3.699 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.1586, allocations: 0 / 0.708 GB, free: 3.699 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.1586, allocations: 8.25 kB / 0.708 GB, free: 3.691 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002227/0.1588, allocations: 63.91 kB / 0.7081 GB, free: 3.629 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.644e-06/0.1588, allocations: 4 kB / 0.7081 GB, free: 3.625 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002407/0.1591, allocations: 35.67 kB / 0.7081 GB, free: 3.59 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.089e-05/0.1591, allocations: 8 kB / 0.7081 GB, free: 3.582 MB / 0.4981 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.0001408/0.1592, allocations: 158.4 kB / 0.7083 GB, free: 3.418 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.286e-05/0.1593, allocations: 31.62 kB / 0.7083 GB, free: 3.387 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004505/0.1598, allocations: 200.4 kB / 0.7085 GB, free: 3.188 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.1598, allocations: 7.938 kB / 0.7085 GB, free: 3.18 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.1598, allocations: 3.938 kB / 0.7085 GB, free: 3.176 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000455/0.1602, allocations: 481.7 kB / 0.709 GB, free: 2.621 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003655/0.1606, allocations: 357.3 kB / 0.7093 GB, free: 2.223 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.1606, allocations: 4 kB / 0.7093 GB, free: 2.219 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001693/0.1608, allocations: 43.91 kB / 0.7094 GB, free: 2.176 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.1608, allocations: 0 / 0.7094 GB, free: 2.176 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.48e-05/0.1608, allocations: 4 kB / 0.7094 GB, free: 2.172 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.132e-06/0.1608, allocations: 3.938 kB / 0.7094 GB, free: 2.168 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.1608, allocations: 0 / 0.7094 GB, free: 2.168 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005741/0.1614, allocations: 284.5 kB / 0.7096 GB, free: 1.871 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001086/0.1615, allocations: 124.8 kB / 0.7098 GB, free: 1.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.844e-05/0.1616, allocations: 4 kB / 0.7098 GB, free: 1.727 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002309/0.1618, allocations: 15.92 kB / 0.7098 GB, free: 1.711 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.652e-05/0.1619, allocations: 27.84 kB / 0.7098 GB, free: 1.684 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.64e-05/0.1619, allocations: 4 kB / 0.7098 GB, free: 1.68 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002337/0.1622, allocations: 251.2 kB / 0.71 GB, free: 1.438 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1622, allocations: 0 / 0.71 GB, free: 1.438 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003784/0.1626, allocations: 123.8 kB / 0.7102 GB, free: 1.316 MB / 0.4981 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.0009884/0.1636, allocations: 0.9108 MB / 0.7111 GB, free: 384 kB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004698/0.164, allocations: 231.2 kB / 0.7113 GB, free: 140 kB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.164, allocations: 4 kB / 0.7113 GB, free: 136 kB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001769/0.1642, allocations: 71.89 kB / 0.7113 GB, free: 64 kB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009238/0.1652, allocations: 228.2 kB / 0.7116 GB, free: 15.85 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003738/0.1689, allocations: 3.066 MB / 0.7146 GB, free: 12.65 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002826/0.1692, allocations: 0.7879 MB / 0.7153 GB, free: 11.84 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0002533/0.1695, allocations: 67.23 kB / 0.7154 GB, free: 11.77 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001502/0.1696, allocations: 115.4 kB / 0.7155 GB, free: 11.65 MB / 0.5137 GB Notification: Performance of SimCode: time 2.7e-07/0.1696, allocations: 0 / 0.7155 GB, free: 11.65 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0278/0.1974, allocations: 10.14 MB / 0.7254 GB, free: 1.715 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.21/11.41, allocations: 16.38 kB / 0.7254 GB, free: 1.699 MB / 0.5137 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Storage_Examples_ExpansionVessel_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Storage_Examples_ExpansionVessel.fmu > BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1)