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.004442/0.004442, allocations: 98.36 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.001253/0.001253, allocations: 193.6 kB / 16.68 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.338/1.338, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002457/0.002457, allocations: 293.4 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.969/0.969, allocations: 169.3 MB / 0.4983 GB, free: 4.422 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002629/0.002629, allocations: 99.84 kB / 0.6809 GB, free: 7.484 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3514/0.3541, allocations: 86.98 MB / 0.7659 GB, free: 3.84 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.HAM.Examples.GasGapClosed): time 0.002762/0.3569, allocations: 1.733 MB / 0.7676 GB, free: 2.094 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001485/0.3584, allocations: 1.022 MB / 0.7686 GB, free: 1.066 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.913e-05/0.3584, allocations: 0 / 0.7686 GB, free: 1.066 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 4.442e-05/0.3585, allocations: 15.86 kB / 0.7686 GB, free: 1.051 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0001108/0.3586, allocations: 31.7 kB / 0.7686 GB, free: 1.02 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.000442/0.3591, allocations: 163.4 kB / 0.7688 GB, free: 0.8594 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001514/0.3592, allocations: 103.5 kB / 0.7689 GB, free: 0.7578 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001072/0.3593, allocations: 32.02 kB / 0.7689 GB, free: 0.7266 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 8.333e-05/0.3594, allocations: 35.91 kB / 0.7689 GB, free: 0.6914 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 9.289e-05/0.3595, allocations: 47.78 kB / 0.769 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.786e-05/0.3596, allocations: 4 kB / 0.769 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004164/0.36, allocations: 191.7 kB / 0.7692 GB, free: 464 kB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 2.26e-05/0.36, allocations: 12 kB / 0.7692 GB, free: 452 kB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 5.176e-05/0.3601, allocations: 43.73 kB / 0.7692 GB, free: 408 kB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0003228/0.3604, allocations: 204.6 kB / 0.7694 GB, free: 208 kB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.3604, allocations: 0 / 0.7694 GB, free: 208 kB / 0.5294 GB Notification: Performance of FrontEnd: time 1.233e-06/0.3604, allocations: 0 / 0.7694 GB, free: 208 kB / 0.5294 GB Notification: Performance of Transformations before backend: time 3.998e-06/0.3604, allocations: 0 / 0.7694 GB, free: 208 kB / 0.5294 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.000584/0.361, allocations: 426.7 kB / 0.7698 GB, free: 15.74 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.46e-05/0.3611, allocations: 12.03 kB / 0.7698 GB, free: 15.73 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.337e-05/0.3611, allocations: 42.73 kB / 0.7699 GB, free: 15.68 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.932e-05/0.3611, allocations: 12.83 kB / 0.7699 GB, free: 15.66 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002711/0.3614, allocations: 190.8 kB / 0.7701 GB, free: 15.44 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.249e-06/0.3614, allocations: 384 / 0.7701 GB, free: 15.44 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.863e-05/0.3614, allocations: 8.375 kB / 0.7701 GB, free: 15.43 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001678/0.3616, allocations: 69.8 kB / 0.7701 GB, free: 15.36 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.769e-06/0.3616, allocations: 4 kB / 0.7701 GB, free: 15.36 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.937e-06/0.3617, allocations: 0 / 0.7701 GB, free: 15.36 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.693e-06/0.3617, allocations: 4 kB / 0.7701 GB, free: 15.35 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001424/0.3618, allocations: 51.91 kB / 0.7702 GB, free: 15.3 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005239/0.3623, allocations: 388 kB / 0.7706 GB, free: 14.86 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000112/0.3625, allocations: 50.5 kB / 0.7706 GB, free: 14.8 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.917e-05/0.3625, allocations: 20.94 kB / 0.7706 GB, free: 14.78 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001201/0.3627, allocations: 93.09 kB / 0.7707 GB, free: 14.67 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.502e-05/0.3627, allocations: 30.67 kB / 0.7707 GB, free: 14.63 MB / 0.545 GB Notification: Performance of pre-optimization done (n=3): time 1.513e-06/0.3627, allocations: 3.938 kB / 0.7707 GB, free: 14.62 MB / 0.545 GB Notification: Performance of matching and sorting (n=3): time 0.0002654/0.363, allocations: 81.62 kB / 0.7708 GB, free: 14.54 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.995e-05/0.363, allocations: 51.41 kB / 0.7709 GB, free: 14.48 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001265/0.3632, allocations: 144.7 kB / 0.771 GB, free: 14.32 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.523e-05/0.3632, allocations: 25.7 kB / 0.771 GB, free: 14.29 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 6.498e-05/0.3633, allocations: 104.1 kB / 0.7711 GB, free: 14.19 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.565e-05/0.3633, allocations: 11.88 kB / 0.7711 GB, free: 14.18 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.756e-05/0.3633, allocations: 25.64 kB / 0.7712 GB, free: 14.14 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001395/0.3635, allocations: 318.8 kB / 0.7715 GB, free: 13.82 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.563e-05/0.3635, allocations: 15.98 kB / 0.7715 GB, free: 13.81 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.544e-05/0.3636, allocations: 15.98 kB / 0.7715 GB, free: 13.79 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001061/0.3637, allocations: 32.84 kB / 0.7715 GB, free: 13.76 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.3637, allocations: 4 kB / 0.7715 GB, free: 13.75 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001456/0.3639, allocations: 69.62 kB / 0.7716 GB, free: 13.68 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.24e-05/0.3639, allocations: 8 kB / 0.7716 GB, free: 13.67 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.186e-06/0.3639, allocations: 0 / 0.7716 GB, free: 13.67 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.353e-05/0.3639, allocations: 0 / 0.7716 GB, free: 13.67 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.461e-05/0.364, allocations: 12.25 kB / 0.7716 GB, free: 13.66 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.041e-05/0.364, allocations: 7.938 kB / 0.7716 GB, free: 13.65 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.243e-05/0.3641, allocations: 0 / 0.7716 GB, free: 13.65 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.86e-06/0.3641, allocations: 0 / 0.7716 GB, free: 13.65 MB / 0.545 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.82e-05/0.3642, allocations: 121.8 kB / 0.7717 GB, free: 13.52 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.966e-05/0.3642, allocations: 7.953 kB / 0.7718 GB, free: 13.52 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002136/0.3644, allocations: 89.89 kB / 0.7718 GB, free: 13.42 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.983e-06/0.3644, allocations: 0 / 0.7718 GB, free: 13.42 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/0.3644, allocations: 3.938 kB / 0.7718 GB, free: 13.41 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.3645, allocations: 0 / 0.7718 GB, free: 13.41 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002111/0.3647, allocations: 189.6 kB / 0.772 GB, free: 13.18 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.3647, allocations: 0 / 0.772 GB, free: 13.18 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.184e-05/0.3648, allocations: 15.94 kB / 0.772 GB, free: 13.16 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.3648, allocations: 4 kB / 0.772 GB, free: 13.16 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.087e-06/0.3648, allocations: 3.984 kB / 0.772 GB, free: 13.16 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.193e-06/0.3648, allocations: 0 / 0.772 GB, free: 13.16 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/0.3648, allocations: 3.938 kB / 0.7721 GB, free: 13.15 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002248/0.365, allocations: 167.5 kB / 0.7722 GB, free: 12.97 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.112e-05/0.3651, allocations: 89 kB / 0.7723 GB, free: 12.87 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.534e-05/0.3651, allocations: 0 / 0.7723 GB, free: 12.87 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.36e-05/0.3652, allocations: 8 kB / 0.7723 GB, free: 12.86 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.359e-05/0.3652, allocations: 11.92 kB / 0.7723 GB, free: 12.85 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.242e-06/0.3652, allocations: 4 kB / 0.7723 GB, free: 12.84 MB / 0.545 GB Notification: Performance of sorting global known variables: time 8.304e-05/0.3653, allocations: 107.2 kB / 0.7724 GB, free: 12.74 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3653, allocations: 0 / 0.7724 GB, free: 12.74 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002936/0.3656, allocations: 59.8 kB / 0.7725 GB, free: 12.68 MB / 0.545 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.0007125/0.3663, allocations: 0.7745 MB / 0.7732 GB, free: 11.88 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001611/0.3665, allocations: 35.98 kB / 0.7733 GB, free: 11.84 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.3665, allocations: 0 / 0.7733 GB, free: 11.84 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 6.28e-05/0.3666, allocations: 27.92 kB / 0.7733 GB, free: 11.82 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002786/0.3669, allocations: 15.92 kB / 0.7733 GB, free: 11.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001546/0.3684, allocations: 1.48 MB / 0.7748 GB, free: 10.24 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003613/0.3688, allocations: 0.6924 MB / 0.7754 GB, free: 9.523 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.357e-05/0.3689, allocations: 4.328 kB / 0.7754 GB, free: 9.52 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.538e-05/0.3689, allocations: 27.42 kB / 0.7755 GB, free: 9.492 MB / 0.545 GB Notification: Performance of SimCode: time 3.2e-07/0.369, allocations: 4 kB / 0.7755 GB, free: 9.488 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02223/0.3912, allocations: 3.098 MB / 0.7785 GB, free: 6.48 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.484/7.875, allocations: 13.27 kB / 0.7785 GB, free: 6.469 MB / 0.545 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)