Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.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.HAM.Examples.GasGapClosed,fileNamePrefix="BuildingSystems_BuildingSystems_HAM_Examples_GasGapClosed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.HAM.Examples.GasGapClosed,fileNamePrefix="BuildingSystems_BuildingSystems_HAM_Examples_GasGapClosed",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.004592/0.004592, allocations: 100.9 kB / 15.73 MB, free: 6.055 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.001321/0.001321, allocations: 192.5 kB / 16.67 MB, free: 5.969 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.404/1.404, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002544/0.002544, allocations: 291.5 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.193/1.193, allocations: 178.6 MB / 0.5074 GB, free: 12.64 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002735/0.002735, allocations: 91.84 kB / 0.6942 GB, free: 15.23 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3666/0.3694, allocations: 89.14 MB / 0.7813 GB, free: 1.148 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildingSystems.HAM.Examples.GasGapClosed): time 0.002394/0.3718, allocations: 1.741 MB / 0.783 GB, free: 15.78 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001585/0.3734, allocations: 1.019 MB / 0.784 GB, free: 14.97 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.157e-05/0.3735, allocations: 2.156 kB / 0.784 GB, free: 14.97 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 4.414e-05/0.3735, allocations: 12.94 kB / 0.784 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.000104/0.3736, allocations: 26.44 kB / 0.784 GB, free: 14.94 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004926/0.3741, allocations: 179.6 kB / 0.7842 GB, free: 14.81 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.000137/0.3743, allocations: 88.66 kB / 0.7843 GB, free: 14.76 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001176/0.3744, allocations: 29.5 kB / 0.7843 GB, free: 14.74 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 8.658e-05/0.3745, allocations: 40.33 kB / 0.7843 GB, free: 14.71 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001009/0.3746, allocations: 45.86 kB / 0.7844 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.809e-05/0.3746, allocations: 6.719 kB / 0.7844 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003468/0.375, allocations: 186 kB / 0.7846 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 2.097e-05/0.375, allocations: 14.41 kB / 0.7846 GB, free: 14.58 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 5.192e-05/0.3751, allocations: 45.92 kB / 0.7846 GB, free: 14.55 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003219/0.3754, allocations: 210 kB / 0.7848 GB, free: 14.43 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.3754, allocations: 1.438 kB / 0.7848 GB, free: 14.43 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.152e-06/0.3754, allocations: 0 / 0.7848 GB, free: 14.43 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.839e-06/0.3754, allocations: 0 / 0.7848 GB, free: 14.43 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005728/0.376, allocations: 424.6 kB / 0.7852 GB, free: 14 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.281e-05/0.3761, allocations: 10.34 kB / 0.7852 GB, free: 14 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.406e-05/0.3761, allocations: 40.33 kB / 0.7853 GB, free: 13.95 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.142e-05/0.3761, allocations: 8.766 kB / 0.7853 GB, free: 13.95 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002095/0.3764, allocations: 196.5 kB / 0.7855 GB, free: 13.73 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.232e-05/0.3764, allocations: 5.906 kB / 0.7855 GB, free: 13.72 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.277e-05/0.3764, allocations: 8.125 kB / 0.7855 GB, free: 13.72 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001759/0.3766, allocations: 70.17 kB / 0.7856 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.617e-06/0.3766, allocations: 0 / 0.7856 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.468e-06/0.3766, allocations: 0 / 0.7856 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.359e-06/0.3766, allocations: 2.188 kB / 0.7856 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000135/0.3768, allocations: 52.44 kB / 0.7856 GB, free: 13.64 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005466/0.3773, allocations: 391.8 kB / 0.786 GB, free: 13.23 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001247/0.3775, allocations: 47.22 kB / 0.786 GB, free: 13.19 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.87e-05/0.3775, allocations: 21.11 kB / 0.7861 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001163/0.3776, allocations: 86.91 kB / 0.7861 GB, free: 13.08 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.725e-05/0.3777, allocations: 35.81 kB / 0.7862 GB, free: 13.04 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 1.173e-06/0.3777, allocations: 0 / 0.7862 GB, free: 13.04 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.0002809/0.378, allocations: 80.34 kB / 0.7862 GB, free: 12.98 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.086e-05/0.378, allocations: 52.53 kB / 0.7863 GB, free: 12.92 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001369/0.3782, allocations: 143 kB / 0.7864 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.931e-05/0.3782, allocations: 29.69 kB / 0.7865 GB, free: 12.75 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 6.052e-05/0.3783, allocations: 101 kB / 0.7866 GB, free: 12.65 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.734e-05/0.3783, allocations: 9.078 kB / 0.7866 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.701e-05/0.3783, allocations: 20.67 kB / 0.7866 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001421/0.3785, allocations: 321 kB / 0.7869 GB, free: 12.3 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.479e-05/0.3785, allocations: 15.78 kB / 0.7869 GB, free: 12.29 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.807e-05/0.3786, allocations: 16.42 kB / 0.7869 GB, free: 12.29 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001019/0.3787, allocations: 33.44 kB / 0.787 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.3787, allocations: 1.188 kB / 0.787 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001571/0.3789, allocations: 69.59 kB / 0.787 GB, free: 12.21 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.183e-05/0.3789, allocations: 9.844 kB / 0.787 GB, free: 12.21 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.838e-06/0.3789, allocations: 0 / 0.787 GB, free: 12.21 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.073e-05/0.3789, allocations: 0 / 0.787 GB, free: 12.21 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001017/0.379, allocations: 10.38 kB / 0.787 GB, free: 12.21 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.143e-05/0.3791, allocations: 9.062 kB / 0.7871 GB, free: 12.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.799e-05/0.3791, allocations: 6.266 kB / 0.7871 GB, free: 12.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.799e-06/0.3791, allocations: 5.281 kB / 0.7871 GB, free: 12.19 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 (3): * Single equations (assignments): 3 * 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 8.944e-05/0.3792, allocations: 113.3 kB / 0.7872 GB, free: 12.07 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.298e-05/0.3793, allocations: 15.11 kB / 0.7872 GB, free: 12.06 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002165/0.3795, allocations: 89.23 kB / 0.7873 GB, free: 11.99 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.3795, allocations: 0 / 0.7873 GB, free: 11.99 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.972e-06/0.3795, allocations: 5.156 kB / 0.7873 GB, free: 11.99 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.3795, allocations: 0 / 0.7873 GB, free: 11.99 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002192/0.3797, allocations: 203 kB / 0.7875 GB, free: 11.76 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.81e-07/0.3797, allocations: 0 / 0.7875 GB, free: 11.76 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.73e-05/0.3798, allocations: 11.89 kB / 0.7875 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.3798, allocations: 0 / 0.7875 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.125e-05/0.3799, allocations: 0 / 0.7875 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.3799, allocations: 9.281 kB / 0.7875 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.3799, allocations: 3.938 kB / 0.7875 GB, free: 11.74 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002148/0.3801, allocations: 167.2 kB / 0.7877 GB, free: 11.59 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.319e-05/0.3802, allocations: 84.03 kB / 0.7877 GB, free: 11.49 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.982e-05/0.3802, allocations: 4 kB / 0.7877 GB, free: 11.49 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.658e-05/0.3803, allocations: 2.812 kB / 0.7877 GB, free: 11.49 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.824e-05/0.3803, allocations: 13.39 kB / 0.7878 GB, free: 11.48 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.44e-06/0.3803, allocations: 5.406 kB / 0.7878 GB, free: 11.47 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 8.297e-05/0.3804, allocations: 104.4 kB / 0.7879 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3804, allocations: 1.531 kB / 0.7879 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003247/0.3807, allocations: 59.2 kB / 0.7879 GB, free: 11.37 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 (4): * Single equations (assignments): 4 * 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.0006819/0.3814, allocations: 0.771 MB / 0.7887 GB, free: 10.65 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001562/0.3816, allocations: 38.53 kB / 0.7887 GB, free: 10.64 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.744e-06/0.3816, allocations: 0 / 0.7887 GB, free: 10.64 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 6.44e-05/0.3817, allocations: 25.19 kB / 0.7887 GB, free: 10.62 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002904/0.382, allocations: 16.55 kB / 0.7887 GB, free: 10.62 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001576/0.3836, allocations: 1.477 MB / 0.7902 GB, free: 9.27 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003119/0.3839, allocations: 0.6911 MB / 0.7909 GB, free: 8.566 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 4.167e-05/0.3839, allocations: 16.55 kB / 0.7909 GB, free: 8.555 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.24e-05/0.384, allocations: 23.56 kB / 0.7909 GB, free: 8.535 MB / 0.5606 GB Notification: Performance of SimCode: time 2.6e-07/0.384, allocations: 0 / 0.7909 GB, free: 8.535 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02409/0.4081, allocations: 3.102 MB / 0.7939 GB, free: 6.902 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.838/8.246, allocations: 7.156 kB / 0.7939 GB, free: 6.898 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.pipe ; mkfifo BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.pipe >> ../files/BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed_res.csv --start-time 0 --stop-time 7200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 2.88 BuildingSystems_BuildingSystems_HAM_Examples_GasGapClosed.fmu > BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.pipe 2>&1)