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.001852/0.001852, allocations: 108 kB / 15.61 MB, free: 152 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.002155/0.002155, allocations: 197.1 kB / 16.53 MB, free: 6.664 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.563/1.563, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002433/0.002433, allocations: 279 kB / 290.7 MB, free: 1.98 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.591/1.591, allocations: 169.3 MB / 0.4982 GB, free: 13.97 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003283/0.003283, allocations: 94.08 kB / 0.5953 GB, free: 27.76 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.22/0.2233, allocations: 86.98 MB / 0.6803 GB, free: 0.6133 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.HAM.Examples.GasGapClosed): time 0.00476/0.2281, allocations: 1.729 MB / 0.682 GB, free: 14.88 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002742/0.2309, allocations: 1.021 MB / 0.683 GB, free: 13.86 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001029/0.231, allocations: 0 / 0.683 GB, free: 13.86 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 8.375e-05/0.2311, allocations: 15.86 kB / 0.683 GB, free: 13.84 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001726/0.2313, allocations: 27.72 kB / 0.683 GB, free: 13.82 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008371/0.2322, allocations: 167.3 kB / 0.6832 GB, free: 13.65 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002055/0.2324, allocations: 95.53 kB / 0.6833 GB, free: 13.56 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001799/0.2326, allocations: 36.19 kB / 0.6833 GB, free: 13.52 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001397/0.2328, allocations: 43.81 kB / 0.6833 GB, free: 13.48 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001188/0.2329, allocations: 35.84 kB / 0.6834 GB, free: 13.44 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.535e-05/0.2329, allocations: 11.94 kB / 0.6834 GB, free: 13.43 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005292/0.2335, allocations: 187.7 kB / 0.6836 GB, free: 13.25 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.096e-05/0.2335, allocations: 15.94 kB / 0.6836 GB, free: 13.23 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.321e-05/0.2336, allocations: 39.78 kB / 0.6836 GB, free: 13.19 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004645/0.2341, allocations: 207.5 kB / 0.6838 GB, free: 12.99 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.2341, allocations: 0 / 0.6838 GB, free: 12.99 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2341, allocations: 0 / 0.6838 GB, free: 12.99 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.113e-06/0.2341, allocations: 4 kB / 0.6838 GB, free: 12.98 MB / 494.1 MB 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.0007414/0.2349, allocations: 419 kB / 0.6842 GB, free: 12.53 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.871e-05/0.2349, allocations: 8.031 kB / 0.6842 GB, free: 12.52 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.115e-05/0.235, allocations: 38.73 kB / 0.6843 GB, free: 12.47 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.902e-05/0.2351, allocations: 12.84 kB / 0.6843 GB, free: 12.46 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002494/0.2353, allocations: 192.1 kB / 0.6844 GB, free: 12.23 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.186e-05/0.2353, allocations: 384 / 0.6844 GB, free: 12.23 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.926e-05/0.2354, allocations: 4.375 kB / 0.6845 GB, free: 12.23 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002488/0.2356, allocations: 77.8 kB / 0.6845 GB, free: 12.15 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.2357, allocations: 0 / 0.6845 GB, free: 12.15 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.396e-05/0.2357, allocations: 0 / 0.6845 GB, free: 12.15 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.04e-05/0.2357, allocations: 4 kB / 0.6845 GB, free: 12.14 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002057/0.2359, allocations: 47.91 kB / 0.6846 GB, free: 12.1 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007626/0.2367, allocations: 396 kB / 0.685 GB, free: 11.65 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001595/0.2369, allocations: 42.56 kB / 0.685 GB, free: 11.6 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.022e-05/0.237, allocations: 20.86 kB / 0.685 GB, free: 11.57 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001488/0.2371, allocations: 89.19 kB / 0.6851 GB, free: 11.47 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.249e-05/0.2372, allocations: 34.5 kB / 0.6851 GB, free: 11.43 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 2.124e-06/0.2372, allocations: 0 / 0.6851 GB, free: 11.43 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004338/0.2376, allocations: 85.58 kB / 0.6852 GB, free: 11.34 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.98e-05/0.2377, allocations: 51.41 kB / 0.6853 GB, free: 11.27 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001799/0.2379, allocations: 139.3 kB / 0.6854 GB, free: 11.13 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.422e-05/0.2379, allocations: 29.7 kB / 0.6854 GB, free: 11.09 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.711e-05/0.238, allocations: 104 kB / 0.6855 GB, free: 10.99 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.542e-05/0.238, allocations: 7.906 kB / 0.6855 GB, free: 10.98 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.031e-05/0.2381, allocations: 17.7 kB / 0.6855 GB, free: 10.96 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.2383, allocations: 326.8 kB / 0.6859 GB, free: 10.63 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.981e-05/0.2384, allocations: 15.98 kB / 0.6859 GB, free: 10.61 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.395e-05/0.2385, allocations: 12.17 kB / 0.6859 GB, free: 10.6 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001697/0.2387, allocations: 44.86 kB / 0.6859 GB, free: 10.55 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.2387, allocations: 0 / 0.6859 GB, free: 10.55 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002482/0.239, allocations: 69.58 kB / 0.686 GB, free: 10.48 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.986e-05/0.239, allocations: 8 kB / 0.686 GB, free: 10.47 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.239, allocations: 0 / 0.686 GB, free: 10.47 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.239, allocations: 4 kB / 0.686 GB, free: 10.47 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001436/0.2392, allocations: 15.92 kB / 0.686 GB, free: 10.45 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.307e-06/0.2392, allocations: 3.938 kB / 0.686 GB, free: 10.45 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.052e-05/0.2393, allocations: 0 / 0.686 GB, free: 10.45 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.243e-05/0.2393, allocations: 4 kB / 0.686 GB, free: 10.45 MB / 494.1 MB 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 0.0001086/0.2394, allocations: 115.1 kB / 0.6861 GB, free: 10.32 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.83e-05/0.2395, allocations: 8.016 kB / 0.6861 GB, free: 10.32 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003219/0.2398, allocations: 97.83 kB / 0.6862 GB, free: 10.21 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.2398, allocations: 0 / 0.6862 GB, free: 10.21 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.237e-06/0.2399, allocations: 3.938 kB / 0.6862 GB, free: 10.2 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.685e-06/0.2399, allocations: 4 kB / 0.6862 GB, free: 10.2 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003056/0.2402, allocations: 185.6 kB / 0.6864 GB, free: 9.969 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.2402, allocations: 4 kB / 0.6864 GB, free: 9.965 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001211/0.2403, allocations: 11.98 kB / 0.6864 GB, free: 9.953 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.2404, allocations: 0 / 0.6864 GB, free: 9.953 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.289e-05/0.2404, allocations: 4 kB / 0.6864 GB, free: 9.949 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.2404, allocations: 0 / 0.6864 GB, free: 9.949 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/0.2404, allocations: 3.938 kB / 0.6864 GB, free: 9.945 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002951/0.2407, allocations: 175.4 kB / 0.6866 GB, free: 9.758 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.343e-05/0.2408, allocations: 88.95 kB / 0.6867 GB, free: 9.652 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.522e-05/0.2408, allocations: 0 / 0.6867 GB, free: 9.652 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001331/0.241, allocations: 0 / 0.6867 GB, free: 9.652 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.24e-05/0.241, allocations: 11.92 kB / 0.6867 GB, free: 9.641 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.424e-06/0.2411, allocations: 0 / 0.6867 GB, free: 9.641 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001088/0.2412, allocations: 113.2 kB / 0.6868 GB, free: 9.531 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.2412, allocations: 0 / 0.6868 GB, free: 9.531 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0005959/0.2418, allocations: 59.92 kB / 0.6869 GB, free: 9.473 MB / 494.1 MB 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.0009646/0.2428, allocations: 0.763 MB / 0.6876 GB, free: 8.684 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002398/0.243, allocations: 43.97 kB / 0.6877 GB, free: 8.641 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.2431, allocations: 0 / 0.6877 GB, free: 8.641 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000103/0.2432, allocations: 16.28 kB / 0.6877 GB, free: 8.625 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005483/0.2437, allocations: 27.81 kB / 0.6877 GB, free: 8.598 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002222/0.246, allocations: 1.485 MB / 0.6892 GB, free: 7.039 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003477/0.2463, allocations: 0.6963 MB / 0.6898 GB, free: 6.316 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 6.181e-05/0.2464, allocations: 4 kB / 0.6898 GB, free: 6.312 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.798e-05/0.2465, allocations: 27.42 kB / 0.6899 GB, free: 6.285 MB / 494.1 MB Notification: Performance of SimCode: time 4.31e-07/0.2465, allocations: 4 kB / 0.6899 GB, free: 6.281 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02926/0.2758, allocations: 3.057 MB / 0.6929 GB, free: 3.297 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.68/10.95, allocations: 13.91 kB / 0.6929 GB, free: 3.285 MB / 494.1 MB (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)