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.005131/0.005131, allocations: 101.9 kB / 15.73 MB, free: 5.516 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.001199/0.001199, allocations: 192.9 kB / 16.67 MB, free: 5.445 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.246/1.246, 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.002048/0.002048, allocations: 289.4 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 0.9057/0.9057, allocations: 169.3 MB / 0.4983 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001709/0.001709, allocations: 91.86 kB / 0.6809 GB, free: 7.492 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3506/0.3523, allocations: 86.96 MB / 0.7658 GB, free: 3.852 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.HAM.Examples.GasGapClosed): time 0.002624/0.355, allocations: 1.745 MB / 0.7676 GB, free: 2.094 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001433/0.3565, allocations: 1.026 MB / 0.7686 GB, free: 1.062 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.483e-05/0.3565, allocations: 0 / 0.7686 GB, free: 1.062 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 4.355e-05/0.3566, allocations: 11.88 kB / 0.7686 GB, free: 1.051 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 9.7e-05/0.3567, allocations: 23.77 kB / 0.7686 GB, free: 1.027 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.000484/0.3572, allocations: 171.4 kB / 0.7688 GB, free: 0.8594 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001392/0.3573, allocations: 99.47 kB / 0.7688 GB, free: 0.7617 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001062/0.3575, allocations: 32.02 kB / 0.7689 GB, free: 0.7305 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 8.535e-05/0.3576, allocations: 35.86 kB / 0.7689 GB, free: 0.6953 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 8.742e-05/0.3576, allocations: 47.78 kB / 0.769 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.53e-05/0.3577, allocations: 4 kB / 0.769 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003249/0.358, allocations: 191.7 kB / 0.7691 GB, free: 468 kB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 2.066e-05/0.358, allocations: 12 kB / 0.7692 GB, free: 456 kB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 4.913e-05/0.3581, allocations: 39.73 kB / 0.7692 GB, free: 416 kB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002992/0.3584, allocations: 212.6 kB / 0.7694 GB, free: 208 kB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.3584, allocations: 0 / 0.7694 GB, free: 208 kB / 0.5294 GB Notification: Performance of FrontEnd: time 1.142e-06/0.3584, allocations: 0 / 0.7694 GB, free: 208 kB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.528e-06/0.3584, 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.0005011/0.3589, allocations: 426.7 kB / 0.7698 GB, free: 15.74 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.168e-05/0.359, allocations: 11.97 kB / 0.7698 GB, free: 15.73 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.987e-05/0.359, allocations: 42.73 kB / 0.7699 GB, free: 15.68 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.104e-05/0.359, allocations: 8.891 kB / 0.7699 GB, free: 15.67 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001713/0.3592, allocations: 184.3 kB / 0.77 GB, free: 15.45 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.036e-05/0.3592, allocations: 8.25 kB / 0.77 GB, free: 15.44 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.276e-05/0.3593, allocations: 8.375 kB / 0.7701 GB, free: 15.43 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001537/0.3594, allocations: 69.8 kB / 0.7701 GB, free: 15.36 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.044e-06/0.3594, allocations: 4 kB / 0.7701 GB, free: 15.36 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.187e-06/0.3594, allocations: 0 / 0.7701 GB, free: 15.36 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.3595, allocations: 4 kB / 0.7701 GB, free: 15.35 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001247/0.3596, allocations: 43.97 kB / 0.7702 GB, free: 15.31 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004682/0.3601, allocations: 403.9 kB / 0.7706 GB, free: 14.85 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001092/0.3602, allocations: 50.56 kB / 0.7706 GB, free: 14.79 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.74e-05/0.3602, allocations: 16.86 kB / 0.7706 GB, free: 14.77 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 9.738e-05/0.3604, allocations: 85.19 kB / 0.7707 GB, free: 14.67 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.153e-05/0.3604, allocations: 34.56 kB / 0.7707 GB, free: 14.63 MB / 0.545 GB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.3604, allocations: 0 / 0.7707 GB, free: 14.63 MB / 0.545 GB Notification: Performance of matching and sorting (n=3): time 0.0002601/0.3607, allocations: 85.56 kB / 0.7708 GB, free: 14.54 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.094e-05/0.3607, allocations: 55.52 kB / 0.7709 GB, free: 14.47 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001044/0.3608, allocations: 144.8 kB / 0.771 GB, free: 14.32 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.689e-05/0.3608, allocations: 33.69 kB / 0.771 GB, free: 14.28 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 4.258e-05/0.3609, allocations: 96.09 kB / 0.7711 GB, free: 14.18 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.47e-05/0.3609, allocations: 3.953 kB / 0.7711 GB, free: 14.18 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.649e-05/0.3609, allocations: 21.7 kB / 0.7712 GB, free: 14.15 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 8.799e-05/0.361, allocations: 322.8 kB / 0.7715 GB, free: 13.83 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.471e-05/0.3611, allocations: 12 kB / 0.7715 GB, free: 13.82 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.497e-05/0.3611, allocations: 19.98 kB / 0.7715 GB, free: 13.8 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.655e-05/0.3612, allocations: 36.78 kB / 0.7715 GB, free: 13.76 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.3613, allocations: 0 / 0.7715 GB, free: 13.76 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001414/0.3614, allocations: 69.62 kB / 0.7716 GB, free: 13.68 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.089e-05/0.3614, allocations: 4 kB / 0.7716 GB, free: 13.68 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.717e-06/0.3614, allocations: 4 kB / 0.7716 GB, free: 13.68 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.008e-05/0.3614, allocations: 0 / 0.7716 GB, free: 13.68 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.407e-05/0.3615, allocations: 11.98 kB / 0.7716 GB, free: 13.66 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.3616, allocations: 7.938 kB / 0.7716 GB, free: 13.66 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.145e-05/0.3616, allocations: 4 kB / 0.7716 GB, free: 13.65 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.941e-06/0.3616, 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 7.446e-05/0.3617, allocations: 120.2 kB / 0.7717 GB, free: 13.53 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.026e-05/0.3617, allocations: 7.953 kB / 0.7717 GB, free: 13.52 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001978/0.3619, allocations: 89.84 kB / 0.7718 GB, free: 13.42 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.3619, allocations: 0 / 0.7718 GB, free: 13.42 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.362, allocations: 3.938 kB / 0.7718 GB, free: 13.42 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.362, allocations: 7.938 kB / 0.7718 GB, free: 13.41 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001773/0.3621, allocations: 185.6 kB / 0.772 GB, free: 13.18 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.3622, allocations: 0 / 0.772 GB, free: 13.18 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.227e-05/0.3622, allocations: 15.98 kB / 0.772 GB, free: 13.16 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.3622, allocations: 0 / 0.772 GB, free: 13.16 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.484e-06/0.3623, allocations: 4 kB / 0.772 GB, free: 13.16 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.3623, allocations: 0 / 0.772 GB, free: 13.16 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.3623, allocations: 3.938 kB / 0.772 GB, free: 13.16 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001904/0.3625, allocations: 179.8 kB / 0.7722 GB, free: 12.96 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.915e-05/0.3625, allocations: 81.06 kB / 0.7723 GB, free: 12.87 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.601e-05/0.3625, allocations: 4 kB / 0.7723 GB, free: 12.86 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.399e-05/0.3626, allocations: 0 / 0.7723 GB, free: 12.86 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.87e-05/0.3626, allocations: 15.86 kB / 0.7723 GB, free: 12.85 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.679e-06/0.3627, allocations: 0 / 0.7723 GB, free: 12.85 MB / 0.545 GB Notification: Performance of sorting global known variables: time 6.424e-05/0.3627, allocations: 113.3 kB / 0.7724 GB, free: 12.74 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3627, allocations: 0 / 0.7724 GB, free: 12.74 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002934/0.363, 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.0005756/0.3636, allocations: 0.7726 MB / 0.7732 GB, free: 11.88 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001502/0.3638, allocations: 39.97 kB / 0.7733 GB, free: 11.84 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.3638, allocations: 0 / 0.7733 GB, free: 11.84 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 5.831e-05/0.3639, allocations: 16 kB / 0.7733 GB, free: 11.83 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002942/0.3642, allocations: 26.27 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.001353/0.3655, allocations: 1.484 MB / 0.7748 GB, free: 10.24 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002097/0.3657, allocations: 0.6924 MB / 0.7754 GB, free: 9.523 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.717e-05/0.3658, allocations: 11.98 kB / 0.7754 GB, free: 9.512 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.55e-05/0.3658, allocations: 23.44 kB / 0.7755 GB, free: 9.488 MB / 0.545 GB Notification: Performance of SimCode: time 4.61e-07/0.3658, allocations: 3.938 kB / 0.7755 GB, free: 9.484 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01831/0.3842, allocations: 3.1 MB / 0.7785 GB, free: 6.477 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.942/7.326, allocations: 8.688 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)