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.004845/0.004845, allocations: 98.38 kB / 15.73 MB, free: 6.008 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.001258/0.001258, allocations: 191.1 kB / 16.67 MB, free: 5.934 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.274/1.274, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002064/0.002064, allocations: 278.3 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.9126/0.9126, allocations: 169.2 MB / 0.4983 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001656/0.001656, allocations: 91.86 kB / 0.6809 GB, free: 7.5 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3665/0.3682, allocations: 86.98 MB / 0.7659 GB, free: 3.875 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.HAM.Examples.GasGapClosed): time 0.002626/0.3709, allocations: 1.737 MB / 0.7676 GB, free: 2.125 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001418/0.3723, allocations: 1.022 MB / 0.7686 GB, free: 1.098 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.021e-05/0.3724, allocations: 4 kB / 0.7686 GB, free: 1.094 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 4.598e-05/0.3724, allocations: 11.86 kB / 0.7686 GB, free: 1.082 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0001107/0.3726, allocations: 31.7 kB / 0.7686 GB, free: 1.051 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004918/0.3731, allocations: 173.3 kB / 0.7688 GB, free: 0.8828 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001319/0.3732, allocations: 91.53 kB / 0.7689 GB, free: 0.793 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001088/0.3733, allocations: 32.02 kB / 0.7689 GB, free: 0.7617 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 8.569e-05/0.3734, allocations: 43.84 kB / 0.7689 GB, free: 0.7188 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 8.463e-05/0.3735, allocations: 39.78 kB / 0.769 GB, free: 0.6797 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.66e-05/0.3735, allocations: 8 kB / 0.769 GB, free: 0.6719 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003226/0.3739, allocations: 191.8 kB / 0.7692 GB, free: 496 kB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.99e-05/0.3739, allocations: 11.98 kB / 0.7692 GB, free: 484 kB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 4.506e-05/0.3739, allocations: 43.73 kB / 0.7692 GB, free: 440 kB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002928/0.3742, allocations: 200.7 kB / 0.7694 GB, free: 244 kB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.3743, allocations: 4 kB / 0.7694 GB, free: 240 kB / 0.5294 GB Notification: Performance of FrontEnd: time 1.282e-06/0.3743, allocations: 0 / 0.7694 GB, free: 240 kB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.719e-06/0.3743, allocations: 0 / 0.7694 GB, free: 240 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.000493/0.3748, allocations: 430.7 kB / 0.7698 GB, free: 15.77 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.567e-05/0.3748, allocations: 12.03 kB / 0.7698 GB, free: 15.75 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.6e-05/0.3748, allocations: 30.75 kB / 0.7699 GB, free: 15.71 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.983e-05/0.3749, allocations: 8.891 kB / 0.7699 GB, free: 15.71 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001616/0.3751, allocations: 200.2 kB / 0.7701 GB, free: 15.47 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.013e-05/0.3751, allocations: 4.375 kB / 0.7701 GB, free: 15.47 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.198e-05/0.3751, allocations: 4.375 kB / 0.7701 GB, free: 15.46 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001595/0.3752, allocations: 73.8 kB / 0.7701 GB, free: 15.39 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.584e-06/0.3753, allocations: 0 / 0.7701 GB, free: 15.39 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.004e-05/0.3753, allocations: 4 kB / 0.7701 GB, free: 15.38 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.3753, allocations: 0 / 0.7701 GB, free: 15.38 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001292/0.3754, allocations: 47.97 kB / 0.7702 GB, free: 15.34 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004762/0.3759, allocations: 392 kB / 0.7706 GB, free: 14.89 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001116/0.376, allocations: 46.55 kB / 0.7706 GB, free: 14.84 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.26e-05/0.3761, allocations: 36.88 kB / 0.7706 GB, free: 14.8 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001002/0.3762, allocations: 81.11 kB / 0.7707 GB, free: 14.7 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.652e-05/0.3762, allocations: 30.67 kB / 0.7707 GB, free: 14.66 MB / 0.545 GB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.3763, allocations: 3.938 kB / 0.7707 GB, free: 14.66 MB / 0.545 GB Notification: Performance of matching and sorting (n=3): time 0.0002711/0.3765, allocations: 85.61 kB / 0.7708 GB, free: 14.57 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.991e-05/0.3766, allocations: 51.41 kB / 0.7709 GB, free: 14.5 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001142/0.3767, allocations: 142.1 kB / 0.771 GB, free: 14.35 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.346e-05/0.3767, allocations: 29.7 kB / 0.771 GB, free: 14.32 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 4.604e-05/0.3768, allocations: 104.1 kB / 0.7711 GB, free: 14.21 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.919e-05/0.3768, allocations: 3.953 kB / 0.7711 GB, free: 14.21 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.389e-05/0.3768, allocations: 17.72 kB / 0.7712 GB, free: 14.18 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 8.714e-05/0.3769, allocations: 318.8 kB / 0.7715 GB, free: 13.86 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.261e-05/0.377, allocations: 15.92 kB / 0.7715 GB, free: 13.85 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.361e-05/0.377, allocations: 12 kB / 0.7715 GB, free: 13.84 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.732e-05/0.3771, allocations: 48.78 kB / 0.7715 GB, free: 13.79 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.3771, allocations: 0 / 0.7715 GB, free: 13.79 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001452/0.3773, allocations: 69.62 kB / 0.7716 GB, free: 13.71 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.265e-05/0.3773, allocations: 4 kB / 0.7716 GB, free: 13.71 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/0.3773, allocations: 0 / 0.7716 GB, free: 13.71 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.087e-05/0.3773, allocations: 0 / 0.7716 GB, free: 13.71 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.93e-05/0.3774, allocations: 11.98 kB / 0.7716 GB, free: 13.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.042e-06/0.3775, allocations: 3.938 kB / 0.7716 GB, free: 13.69 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.754e-05/0.3775, allocations: 4 kB / 0.7716 GB, free: 13.69 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.504e-06/0.3775, allocations: 11.92 kB / 0.7716 GB, free: 13.68 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 6.807e-05/0.3776, allocations: 117.8 kB / 0.7718 GB, free: 13.55 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.077e-05/0.3776, allocations: 7.953 kB / 0.7718 GB, free: 13.54 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001992/0.3778, allocations: 81.91 kB / 0.7718 GB, free: 13.45 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.3779, allocations: 4 kB / 0.7718 GB, free: 13.45 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-06/0.3779, allocations: 3.938 kB / 0.7718 GB, free: 13.45 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.474e-06/0.3779, allocations: 0 / 0.7718 GB, free: 13.45 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001787/0.3781, allocations: 185.6 kB / 0.772 GB, free: 13.21 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.3781, allocations: 4 kB / 0.772 GB, free: 13.21 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.573e-05/0.3781, allocations: 11.98 kB / 0.772 GB, free: 13.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.073e-06/0.3782, allocations: 0 / 0.772 GB, free: 13.2 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.723e-06/0.3782, allocations: 0 / 0.772 GB, free: 13.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.356e-06/0.3782, allocations: 0 / 0.772 GB, free: 13.2 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/0.3782, allocations: 7.875 kB / 0.772 GB, free: 13.19 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001837/0.3784, allocations: 171.9 kB / 0.7722 GB, free: 13.01 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.718e-05/0.3784, allocations: 96.98 kB / 0.7723 GB, free: 12.89 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.69e-05/0.3784, allocations: 0 / 0.7723 GB, free: 12.89 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.734e-05/0.3785, allocations: 4 kB / 0.7723 GB, free: 12.89 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.609e-05/0.3786, allocations: 7.969 kB / 0.7723 GB, free: 12.88 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.26e-06/0.3786, allocations: 4 kB / 0.7723 GB, free: 12.88 MB / 0.545 GB Notification: Performance of sorting global known variables: time 6.679e-05/0.3786, allocations: 113.3 kB / 0.7724 GB, free: 12.77 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3786, allocations: 4 kB / 0.7724 GB, free: 12.77 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002994/0.3789, allocations: 63.8 kB / 0.7725 GB, free: 12.7 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.0005516/0.3795, allocations: 0.7707 MB / 0.7732 GB, free: 11.91 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001445/0.3797, allocations: 31.98 kB / 0.7733 GB, free: 11.88 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.3797, allocations: 0 / 0.7733 GB, free: 11.88 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 6.142e-05/0.3797, allocations: 23.92 kB / 0.7733 GB, free: 11.85 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002966/0.38, allocations: 26.22 kB / 0.7733 GB, free: 11.83 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001351/0.3814, allocations: 1.484 MB / 0.7748 GB, free: 10.27 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002069/0.3816, allocations: 0.6885 MB / 0.7754 GB, free: 9.551 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.739e-05/0.3817, allocations: 8 kB / 0.7754 GB, free: 9.543 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.17e-05/0.3817, allocations: 27.42 kB / 0.7755 GB, free: 9.516 MB / 0.545 GB Notification: Performance of SimCode: time 2.2e-07/0.3817, allocations: 0 / 0.7755 GB, free: 9.516 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01771/0.3994, allocations: 3.086 MB / 0.7785 GB, free: 6.516 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.307/7.706, allocations: 17.02 kB / 0.7785 GB, free: 6.504 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)