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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007391/0.0007391, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0007801/0.0007801, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8932/0.8932, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.001394/0.001394, allocations: 226.6 kB / 259.4 MB, free: 13.03 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 0.6662/0.6662, allocations: 138.4 MB / 454.3 MB, free: 29.96 MB / 410.7 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.823e-06/1.823e-06, allocations: 0 / 0.6462 GB, free: 1.934 MB / 0.5573 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.657e-05/2.839e-05, allocations: 4.953 kB / 0.6462 GB, free: 1.93 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(BuildingSystems.HAM.Examples.GasGapClosed): time 0.002435/0.002463, allocations: 1.74 MB / 0.6479 GB, free: 176 kB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.2562/0.2587, allocations: 1.003 MB / 0.6489 GB, free: 55.85 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001002/0.2588, allocations: 2.281 kB / 0.6489 GB, free: 55.85 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 4.883e-05/0.2588, allocations: 12.28 kB / 0.6489 GB, free: 55.84 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0001093/0.2589, allocations: 32.72 kB / 0.6489 GB, free: 55.84 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005821/0.2595, allocations: 186.2 kB / 0.6491 GB, free: 55.81 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.0001627/0.2597, allocations: 99.67 kB / 0.6492 GB, free: 55.78 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001276/0.2598, allocations: 22.52 kB / 0.6492 GB, free: 55.77 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001805/0.26, allocations: 63.33 kB / 0.6493 GB, free: 55.77 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 7.89e-05/0.2601, allocations: 31.62 kB / 0.6493 GB, free: 55.76 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 2.118e-05/0.2601, allocations: 6.594 kB / 0.6493 GB, free: 55.76 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003328/0.2604, allocations: 188.6 kB / 0.6495 GB, free: 55.76 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 1.96e-05/0.2604, allocations: 19.36 kB / 0.6495 GB, free: 55.75 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 4.151e-05/0.2605, allocations: 25.78 kB / 0.6496 GB, free: 55.75 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.0003577/0.2608, allocations: 251.3 kB / 0.6498 GB, free: 55.72 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.2608, allocations: 0.9375 kB / 0.6498 GB, free: 55.72 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.563e-06/0.2608, allocations: 0 / 0.6498 GB, free: 55.72 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 5.17e-06/0.2609, allocations: 0.7188 kB / 0.6498 GB, free: 55.72 MB / 0.5573 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.000451/0.2613, allocations: 346.1 kB / 0.6501 GB, free: 55.42 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.862e-05/0.2613, allocations: 12.7 kB / 0.6501 GB, free: 55.42 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.145e-05/0.2614, allocations: 39.12 kB / 0.6502 GB, free: 55.38 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000118/0.2615, allocations: 18.5 kB / 0.6502 GB, free: 55.38 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002233/0.2617, allocations: 138.2 kB / 0.6503 GB, free: 55.24 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.19e-05/0.2617, allocations: 5.969 kB / 0.6503 GB, free: 55.24 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.135e-05/0.2617, allocations: 3.344 kB / 0.6503 GB, free: 55.24 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001428/0.2619, allocations: 72.61 kB / 0.6504 GB, free: 55.21 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.983e-06/0.2619, allocations: 192 / 0.6504 GB, free: 55.21 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.162e-05/0.2619, allocations: 8.062 kB / 0.6504 GB, free: 55.2 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.211e-06/0.2619, allocations: 3.25 kB / 0.6504 GB, free: 55.2 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.345e-05/0.262, allocations: 46.92 kB / 0.6505 GB, free: 55.2 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003755/0.2624, allocations: 297.5 kB / 0.6507 GB, free: 54.96 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001035/0.2625, allocations: 50.78 kB / 0.6508 GB, free: 54.93 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.788e-05/0.2625, allocations: 22.98 kB / 0.6508 GB, free: 54.92 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 8.196e-05/0.2626, allocations: 7.828 kB / 0.6508 GB, free: 54.92 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.577e-05/0.2626, allocations: 34.52 kB / 0.6509 GB, free: 54.88 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=3): time 1.363e-06/0.2626, allocations: 0.6562 kB / 0.6509 GB, free: 54.88 MB / 0.5573 GB Notification: Performance of matching and sorting (n=3): time 0.0002093/0.2628, allocations: 83.92 kB / 0.6509 GB, free: 54.85 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.307e-05/0.2629, allocations: 57.69 kB / 0.651 GB, free: 54.78 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.732e-05/0.2629, allocations: 136.5 kB / 0.6511 GB, free: 54.68 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 7.605e-06/0.263, allocations: 27.98 kB / 0.6512 GB, free: 54.65 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 3.412e-05/0.263, allocations: 100.7 kB / 0.6512 GB, free: 54.57 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 1.879e-05/0.263, allocations: 10.83 kB / 0.6513 GB, free: 54.56 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.004e-05/0.263, allocations: 18.45 kB / 0.6513 GB, free: 54.55 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 4.064e-05/0.2631, allocations: 326.8 kB / 0.6516 GB, free: 54.23 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.504e-05/0.2631, allocations: 14.81 kB / 0.6516 GB, free: 54.23 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.773e-05/0.2631, allocations: 14.98 kB / 0.6516 GB, free: 54.23 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.843e-05/0.2632, allocations: 38.2 kB / 0.6517 GB, free: 54.22 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.2632, allocations: 0 / 0.6517 GB, free: 54.22 MB / 0.5573 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.397e-05/0.2633, allocations: 77.27 kB / 0.6517 GB, free: 54.18 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.442e-05/0.2633, allocations: 5.688 kB / 0.6517 GB, free: 54.18 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.2633, allocations: 1.078 kB / 0.6517 GB, free: 54.18 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.386e-05/0.2633, allocations: 0 / 0.6517 GB, free: 54.18 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.518e-05/0.2634, allocations: 11.39 kB / 0.6517 GB, free: 54.18 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/0.2634, allocations: 1.219 kB / 0.6517 GB, free: 54.18 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.396e-05/0.2635, allocations: 6 kB / 0.6518 GB, free: 54.18 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.392e-06/0.2635, allocations: 5.656 kB / 0.6518 GB, free: 54.18 MB / 0.5573 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 4.489e-05/0.2635, allocations: 117.1 kB / 0.6519 GB, free: 54.06 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.649e-05/0.2635, allocations: 11.14 kB / 0.6519 GB, free: 54.05 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001551/0.2637, allocations: 83.17 kB / 0.652 GB, free: 54.02 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.2637, allocations: 1.719 kB / 0.652 GB, free: 54.02 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.2637, allocations: 0 / 0.652 GB, free: 54.02 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.2637, allocations: 0.5625 kB / 0.652 GB, free: 54.02 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001234/0.2638, allocations: 158.1 kB / 0.6521 GB, free: 53.86 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.2638, allocations: 0 / 0.6521 GB, free: 53.86 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.97e-05/0.2639, allocations: 17.5 kB / 0.6521 GB, free: 53.86 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.437e-06/0.2639, allocations: 1.688 kB / 0.6521 GB, free: 53.86 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.384e-06/0.2639, allocations: 1.266 kB / 0.6521 GB, free: 53.86 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.424e-06/0.2639, allocations: 1.812 kB / 0.6521 GB, free: 53.86 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.2639, allocations: 0 / 0.6521 GB, free: 53.86 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001075/0.264, allocations: 175 kB / 0.6523 GB, free: 53.72 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 1.383e-05/0.264, allocations: 7.547 kB / 0.6523 GB, free: 53.71 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.529e-05/0.264, allocations: 0 / 0.6523 GB, free: 53.71 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.546e-05/0.264, allocations: 8.828 kB / 0.6523 GB, free: 53.71 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.293e-05/0.2641, allocations: 3.422 kB / 0.6523 GB, free: 53.71 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.65e-06/0.2641, allocations: 3.344 kB / 0.6523 GB, free: 53.71 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 4.209e-05/0.2641, allocations: 113.9 kB / 0.6524 GB, free: 53.64 MB / 0.5573 GB Notification: Performance of sort global known variables: time 5e-08/0.2641, allocations: 2.062 kB / 0.6524 GB, free: 53.64 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0002683/0.2644, allocations: 67.31 kB / 0.6525 GB, free: 53.62 MB / 0.5573 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.0003925/0.2648, allocations: 0.78 MB / 0.6533 GB, free: 52.94 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0001187/0.2649, allocations: 43.44 kB / 0.6533 GB, free: 52.94 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.2649, allocations: 0 / 0.6533 GB, free: 52.94 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 3.297e-05/0.2649, allocations: 24.28 kB / 0.6533 GB, free: 52.93 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002302/0.2652, allocations: 11.03 kB / 0.6533 GB, free: 52.93 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009626/0.2661, allocations: 1.483 MB / 0.6548 GB, free: 51.72 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.73e-05/0.2662, allocations: 78.92 kB / 0.6549 GB, free: 51.65 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 3.927e-05/0.2662, allocations: 5.719 kB / 0.6549 GB, free: 51.65 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.322e-05/0.2663, allocations: 30.3 kB / 0.6549 GB, free: 51.65 MB / 0.5573 GB Notification: Performance of SimCode: time 8.72e-07/0.2663, allocations: 0 / 0.6549 GB, free: 51.65 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01663/0.2829, allocations: 3.958 MB / 0.6588 GB, free: 50.65 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.289/6.572, allocations: 6.453 kB / 0.6588 GB, free: 50.65 MB / 0.5573 GB " [Timeout remaining time 653] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.241768579930067] Failed to read output from testmodel.py, exit status != 0: 6.649343119934201 6.656164041 6.393833337 Calling exit ...