Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HADryCoil.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.HADryCoil,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_BaseClasses_Examples_HADryCoil",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HADryCoil,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_BaseClasses_Examples_HADryCoil",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.004297/0.004297, allocations: 98.38 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.0009918/0.0009918, allocations: 201 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.257/1.257, allocations: 222.9 MB / 240.4 MB, free: 4.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001968/0.001968, allocations: 282.5 kB / 290.8 MB, free: 1.895 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8908/0.8908, allocations: 169.3 MB / 0.4983 GB, free: 13.78 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001662/0.001662, allocations: 92.08 kB / 0.681 GB, free: 15.95 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1543/0.156, allocations: 86.98 MB / 0.7659 GB, free: 8.895 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HADryCoil): time 0.003027/0.1591, allocations: 2.111 MB / 0.768 GB, free: 6.773 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001628/0.1607, allocations: 1.045 MB / 0.769 GB, free: 5.719 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001611/0.1609, allocations: 4 kB / 0.769 GB, free: 5.715 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 6.608e-05/0.161, allocations: 23.67 kB / 0.769 GB, free: 5.691 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0003217/0.1613, allocations: 87.22 kB / 0.7691 GB, free: 5.605 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004517/0.1618, allocations: 183.6 kB / 0.7693 GB, free: 5.426 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0003308/0.1621, allocations: 298.8 kB / 0.7696 GB, free: 5.133 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001668/0.1623, allocations: 64.91 kB / 0.7696 GB, free: 5.07 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001504/0.1625, allocations: 111.5 kB / 0.7697 GB, free: 4.961 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002182/0.1627, allocations: 143.4 kB / 0.7699 GB, free: 4.82 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 3.787e-05/0.1627, allocations: 20 kB / 0.7699 GB, free: 4.801 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000387/0.1631, allocations: 299.7 kB / 0.7702 GB, free: 4.508 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 4.532e-05/0.1632, allocations: 51.75 kB / 0.7702 GB, free: 4.457 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001084/0.1633, allocations: 119.3 kB / 0.7703 GB, free: 4.34 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003831/0.1637, allocations: 334.5 kB / 0.7707 GB, free: 4.012 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.1637, allocations: 0 / 0.7707 GB, free: 4.012 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.583e-06/0.1637, allocations: 0 / 0.7707 GB, free: 4.012 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.363e-05/0.1637, allocations: 0 / 0.7707 GB, free: 4.012 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.001029/0.1647, allocations: 0.6323 MB / 0.7713 GB, free: 3.332 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.1648, allocations: 12.03 kB / 0.7713 GB, free: 3.32 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.263e-05/0.1649, allocations: 46.73 kB / 0.7713 GB, free: 3.266 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002075/0.1651, allocations: 40.75 kB / 0.7714 GB, free: 3.227 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003597/0.1654, allocations: 287.7 kB / 0.7716 GB, free: 2.906 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.433e-05/0.1655, allocations: 12.66 kB / 0.7717 GB, free: 2.895 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.466e-05/0.1655, allocations: 12.38 kB / 0.7717 GB, free: 2.883 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004981/0.166, allocations: 236.7 kB / 0.7719 GB, free: 2.629 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.166, allocations: 0 / 0.7719 GB, free: 2.629 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.741e-05/0.166, allocations: 8 kB / 0.7719 GB, free: 2.621 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.486e-06/0.166, allocations: 4 kB / 0.7719 GB, free: 2.617 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006338/0.1667, allocations: 203.7 kB / 0.7721 GB, free: 2.418 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001058/0.1677, allocations: 0.9307 MB / 0.773 GB, free: 1.418 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007401/0.1685, allocations: 245.2 kB / 0.7732 GB, free: 1.16 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003167/0.1688, allocations: 109.5 kB / 0.7733 GB, free: 1.047 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.512e-05/0.1689, allocations: 7.938 kB / 0.7734 GB, free: 1.039 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.29e-05/0.1689, allocations: 30.56 kB / 0.7734 GB, free: 1 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=16): time 1.372e-06/0.1689, allocations: 4 kB / 0.7734 GB, free: 0.9961 MB / 0.5606 GB Notification: Performance of matching and sorting (n=16): time 0.001125/0.17, allocations: 350 kB / 0.7737 GB, free: 0.6484 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.452e-05/0.1701, allocations: 81.11 kB / 0.7738 GB, free: 0.5508 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002322/0.1703, allocations: 267 kB / 0.7741 GB, free: 292 kB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.816e-05/0.1703, allocations: 25.7 kB / 0.7741 GB, free: 260 kB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 9.294e-05/0.1704, allocations: 160.3 kB / 0.7742 GB, free: 96 kB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.78e-05/0.1705, allocations: 59.52 kB / 0.7743 GB, free: 36 kB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.3091/0.4795, allocations: 41.91 kB / 0.7743 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001002/0.4797, allocations: 338.6 kB / 0.7747 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00039/0.4801, allocations: 86.64 kB / 0.7747 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003536/0.4804, allocations: 141.4 kB / 0.7749 GB, free: 14.48 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006803/0.4811, allocations: 240.7 kB / 0.7751 GB, free: 14.42 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.4811, allocations: 0 / 0.7751 GB, free: 14.42 MB / 0.5606 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000882/0.482, allocations: 291.3 kB / 0.7754 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.915e-05/0.4821, allocations: 7.844 kB / 0.7754 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.4821, allocations: 3.297 kB / 0.7754 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.958e-05/0.4821, allocations: 2.781 kB / 0.7754 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002977/0.4824, allocations: 64.44 kB / 0.7755 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.248e-06/0.4824, allocations: 5.953 kB / 0.7755 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002363/0.4827, allocations: 42.48 kB / 0.7755 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.886e-05/0.4827, allocations: 7.281 kB / 0.7755 GB, free: 14.39 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (23): * Single equations (assignments): 23 * 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 9.992e-05/0.4828, allocations: 135.3 kB / 0.7756 GB, free: 14.28 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001094/0.4829, allocations: 28.03 kB / 0.7757 GB, free: 14.28 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007956/0.4837, allocations: 289.1 kB / 0.7759 GB, free: 14.23 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.4837, allocations: 3.062 kB / 0.7759 GB, free: 14.23 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.4837, allocations: 5.156 kB / 0.7759 GB, free: 14.23 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.4837, allocations: 0.7031 kB / 0.7759 GB, free: 14.23 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003289/0.4841, allocations: 294 kB / 0.7762 GB, free: 14.04 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.4841, allocations: 5.031 kB / 0.7762 GB, free: 14.04 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002599/0.4843, allocations: 57.83 kB / 0.7763 GB, free: 14.04 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-06/0.4844, allocations: 5.094 kB / 0.7763 GB, free: 14.04 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.335e-05/0.4844, allocations: 4.781 kB / 0.7763 GB, free: 14.04 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.028e-06/0.4844, allocations: 2.969 kB / 0.7763 GB, free: 14.04 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.4844, allocations: 4.703 kB / 0.7763 GB, free: 14.03 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007578/0.4852, allocations: 439 kB / 0.7767 GB, free: 13.82 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.698e-05/0.4852, allocations: 108.1 kB / 0.7768 GB, free: 13.71 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.573e-05/0.4853, allocations: 9.016 kB / 0.7768 GB, free: 13.71 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002569/0.4855, allocations: 27.7 kB / 0.7769 GB, free: 13.71 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.834e-05/0.4856, allocations: 24.78 kB / 0.7769 GB, free: 13.7 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.421e-05/0.4856, allocations: 4.969 kB / 0.7769 GB, free: 13.7 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001688/0.4858, allocations: 191.6 kB / 0.7771 GB, free: 13.62 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4858, allocations: 0 / 0.7771 GB, free: 13.62 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003622/0.4862, allocations: 57.64 kB / 0.7771 GB, free: 13.62 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (20): * Single equations (assignments): 20 * 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.001063/0.4872, allocations: 0.9954 MB / 0.7781 GB, free: 12.88 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0007713/0.488, allocations: 226.7 kB / 0.7783 GB, free: 12.87 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.225e-06/0.488, allocations: 480 / 0.7783 GB, free: 12.87 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0003664/0.4884, allocations: 122.2 kB / 0.7784 GB, free: 12.86 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005447/0.4889, allocations: 79.41 kB / 0.7785 GB, free: 12.85 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003732/0.4927, allocations: 2.702 MB / 0.7811 GB, free: 11.12 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002074/0.4929, allocations: 0.7509 MB / 0.7819 GB, free: 10.42 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001483/0.4931, allocations: 31.94 kB / 0.7819 GB, free: 10.41 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001201/0.4932, allocations: 92.45 kB / 0.782 GB, free: 10.35 MB / 0.5606 GB Notification: Performance of SimCode: time 1.212e-06/0.4932, allocations: 0 / 0.782 GB, free: 10.35 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02409/0.5173, allocations: 6.586 MB / 0.7884 GB, free: 9.73 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.282/7.799, allocations: 12.19 kB / 0.7884 GB, free: 9.727 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HADryCoil.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HADryCoil.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HADryCoil.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HADryCoil.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HADryCoil_res.csv --start-time 0 --stop-time 80 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.032 BuildingSystems_BuildingSystems_Fluid_HeatExchangers_BaseClasses_Examples_HADryCoil.fmu > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HADryCoil.pipe 2>&1)