Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HACoilInside.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.HeatExchangers.BaseClasses.Examples.HACoilInside,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_BaseClasses_Examples_HACoilInside",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HACoilInside,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_BaseClasses_Examples_HACoilInside",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.006372/0.006372, allocations: 98.25 kB / 15.73 MB, free: 6.445 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.001215/0.001215, allocations: 196.6 kB / 16.68 MB, free: 6.352 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.279/1.279, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002106/0.002106, allocations: 274.5 kB / 290.8 MB, free: 1.902 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9059/0.9059, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001616/0.001616, allocations: 92.28 kB / 0.681 GB, free: 15.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.153/0.1546, allocations: 86.97 MB / 0.7659 GB, free: 8.93 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HACoilInside): time 0.002406/0.1571, allocations: 1.564 MB / 0.7674 GB, free: 7.355 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001242/0.1583, allocations: 0.9167 MB / 0.7683 GB, free: 6.43 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.609e-05/0.1584, allocations: 4 kB / 0.7683 GB, free: 6.426 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.945e-05/0.1584, allocations: 3.938 kB / 0.7683 GB, free: 6.422 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0001859/0.1586, allocations: 23.78 kB / 0.7684 GB, free: 6.398 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003233/0.159, allocations: 143.6 kB / 0.7685 GB, free: 6.258 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001307/0.1591, allocations: 79.64 kB / 0.7686 GB, free: 6.18 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 8.341e-05/0.1592, allocations: 12.27 kB / 0.7686 GB, free: 6.168 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 7.444e-05/0.1593, allocations: 31.92 kB / 0.7686 GB, free: 6.137 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001184/0.1594, allocations: 47.77 kB / 0.7687 GB, free: 6.09 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.566e-05/0.1594, allocations: 8 kB / 0.7687 GB, free: 6.082 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003417/0.1598, allocations: 279.6 kB / 0.7689 GB, free: 5.809 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.998e-05/0.1598, allocations: 15.92 kB / 0.769 GB, free: 5.793 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.499e-05/0.1598, allocations: 27.81 kB / 0.769 GB, free: 5.766 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002209/0.1601, allocations: 151.5 kB / 0.7691 GB, free: 5.617 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.1601, allocations: 4 kB / 0.7691 GB, free: 5.613 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.322e-06/0.1601, allocations: 0 / 0.7691 GB, free: 5.613 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.879e-06/0.1601, allocations: 0 / 0.7691 GB, free: 5.613 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005181/0.1606, allocations: 414.8 kB / 0.7695 GB, free: 5.16 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.36e-05/0.1607, allocations: 8.031 kB / 0.7695 GB, free: 5.152 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.968e-05/0.1607, allocations: 34.73 kB / 0.7696 GB, free: 5.109 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001063/0.1608, allocations: 16.89 kB / 0.7696 GB, free: 5.094 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001901/0.161, allocations: 184.2 kB / 0.7698 GB, free: 4.875 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.615e-06/0.161, allocations: 4.375 kB / 0.7698 GB, free: 4.871 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.429e-05/0.161, allocations: 4.375 kB / 0.7698 GB, free: 4.867 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001624/0.1612, allocations: 69.72 kB / 0.7698 GB, free: 4.793 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.053e-06/0.1612, allocations: 4 kB / 0.7698 GB, free: 4.789 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.003e-05/0.1612, allocations: 0 / 0.7698 GB, free: 4.789 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.007e-06/0.1612, allocations: 0 / 0.7698 GB, free: 4.789 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001357/0.1614, allocations: 39.97 kB / 0.7699 GB, free: 4.75 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003976/0.1618, allocations: 300.8 kB / 0.7702 GB, free: 4.406 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001291/0.1619, allocations: 62.48 kB / 0.7702 GB, free: 4.336 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.4e-05/0.162, allocations: 28.95 kB / 0.7703 GB, free: 4.305 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.761e-05/0.162, allocations: 4.062 kB / 0.7703 GB, free: 4.301 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.051e-05/0.1621, allocations: 38.56 kB / 0.7703 GB, free: 4.254 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=5): time 2.474e-06/0.1621, allocations: 0 / 0.7703 GB, free: 4.254 MB / 0.5606 GB Notification: Performance of matching and sorting (n=5): time 0.0003441/0.1624, allocations: 109.7 kB / 0.7704 GB, free: 4.141 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.812e-05/0.1625, allocations: 51.41 kB / 0.7704 GB, free: 4.078 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001033/0.1626, allocations: 135.8 kB / 0.7706 GB, free: 3.938 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.427e-05/0.1626, allocations: 25.7 kB / 0.7706 GB, free: 3.906 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.777e-05/0.1626, allocations: 100.1 kB / 0.7707 GB, free: 3.805 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.852e-05/0.1627, allocations: 19.84 kB / 0.7707 GB, free: 3.785 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.924e-05/0.1627, allocations: 21.64 kB / 0.7707 GB, free: 3.758 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.048e-05/0.1628, allocations: 318.8 kB / 0.771 GB, free: 3.438 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.457e-05/0.1629, allocations: 28.05 kB / 0.7711 GB, free: 3.41 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.494e-05/0.163, allocations: 31.97 kB / 0.7711 GB, free: 3.379 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001411/0.1631, allocations: 44.84 kB / 0.7711 GB, free: 3.332 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.1631, allocations: 4 kB / 0.7711 GB, free: 3.328 MB / 0.5606 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000201/0.1633, allocations: 89.61 kB / 0.7712 GB, free: 3.234 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.112e-05/0.1633, allocations: 8 kB / 0.7712 GB, free: 3.227 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.507e-06/0.1634, allocations: 0 / 0.7712 GB, free: 3.227 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.133e-05/0.1634, allocations: 0 / 0.7712 GB, free: 3.227 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001091/0.1635, allocations: 19.92 kB / 0.7713 GB, free: 3.207 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.659e-06/0.1635, allocations: 0 / 0.7713 GB, free: 3.207 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.218e-05/0.1636, allocations: 15.94 kB / 0.7713 GB, free: 3.191 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.192e-06/0.1636, allocations: 0 / 0.7713 GB, free: 3.191 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * 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 6.927e-05/0.1636, allocations: 118.4 kB / 0.7714 GB, free: 3.066 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.034e-05/0.1637, allocations: 7.953 kB / 0.7714 GB, free: 3.059 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002337/0.1639, allocations: 97.95 kB / 0.7715 GB, free: 2.957 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.1639, allocations: 4 kB / 0.7715 GB, free: 2.953 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.164, allocations: 0 / 0.7715 GB, free: 2.953 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.164, allocations: 0 / 0.7715 GB, free: 2.953 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001661/0.1641, allocations: 185.5 kB / 0.7717 GB, free: 2.723 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.1641, allocations: 0 / 0.7717 GB, free: 2.723 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.375e-05/0.1642, allocations: 15.98 kB / 0.7717 GB, free: 2.707 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.1642, allocations: 256 / 0.7717 GB, free: 2.707 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.766e-06/0.1642, allocations: 8 kB / 0.7717 GB, free: 2.699 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.235e-06/0.1643, allocations: 4 kB / 0.7717 GB, free: 2.695 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.1643, allocations: 4 kB / 0.7717 GB, free: 2.691 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002333/0.1645, allocations: 183.4 kB / 0.7719 GB, free: 2.496 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.465e-05/0.1645, allocations: 85 kB / 0.772 GB, free: 2.395 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.099e-05/0.1646, allocations: 8 kB / 0.772 GB, free: 2.387 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.413e-05/0.1647, allocations: 7.922 kB / 0.772 GB, free: 2.379 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.528e-05/0.1647, allocations: 8 kB / 0.772 GB, free: 2.371 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.901e-06/0.1647, allocations: 3.984 kB / 0.772 GB, free: 2.367 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 5.826e-05/0.1648, allocations: 109.2 kB / 0.7721 GB, free: 2.262 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.41e-07/0.1648, allocations: 0 / 0.7721 GB, free: 2.262 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002267/0.165, allocations: 16 kB / 0.7721 GB, free: 2.246 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0005256/0.1655, allocations: 0.7397 MB / 0.7728 GB, free: 1.48 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001976/0.1657, allocations: 63.89 kB / 0.7729 GB, free: 1.418 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.1658, allocations: 0 / 0.7729 GB, free: 1.418 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 7.7e-05/0.1658, allocations: 23.98 kB / 0.7729 GB, free: 1.395 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002722/0.1661, allocations: 21.8 kB / 0.7729 GB, free: 1.375 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2945/0.4606, allocations: 1.447 MB / 0.7743 GB, free: 13.64 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001192/0.4608, allocations: 0.69 MB / 0.775 GB, free: 12.94 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 7.25e-05/0.4609, allocations: 9.844 kB / 0.775 GB, free: 12.94 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.023e-05/0.4609, allocations: 22.81 kB / 0.775 GB, free: 12.93 MB / 0.5606 GB Notification: Performance of SimCode: time 8.22e-07/0.4609, allocations: 0 / 0.775 GB, free: 12.93 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01898/0.4799, allocations: 2.323 MB / 0.7773 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.01/7.49, allocations: 13.53 kB / 0.7773 GB, free: 12.64 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HACoilInside.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HACoilInside.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HACoilInside.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HACoilInside.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HACoilInside_res.csv --start-time 0 --stop-time 15 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.006 BuildingSystems_BuildingSystems_Fluid_HeatExchangers_BaseClasses_Examples_HACoilInside.fmu > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HACoilInside.pipe 2>&1)