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: translateModel(BuildingSystems.HAM.Examples.GasGapClosed,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed") translateModel(BuildingSystems.HAM.Examples.GasGapClosed,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001331/0.001331, allocations: 109.4 kB / 16.41 MB, free: 6.496 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.001365/0.001365, allocations: 185.5 kB / 17.34 MB, free: 5.762 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.235/1.235, allocations: 222.9 MB / 241 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.0021/0.0021, allocations: 287.6 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8743/0.8743, allocations: 169.3 MB / 0.499 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001733/0.001733, allocations: 95.84 kB / 0.6821 GB, free: 6.996 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4209/0.4227, allocations: 86.97 MB / 0.767 GB, free: 3.945 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.HAM.Examples.GasGapClosed): time 0.003083/0.4258, allocations: 1.737 MB / 0.7687 GB, free: 2.195 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.00159/0.4274, allocations: 1.026 MB / 0.7697 GB, free: 1.164 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.681e-05/0.4275, allocations: 4 kB / 0.7697 GB, free: 1.16 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 5.458e-05/0.4276, allocations: 11.86 kB / 0.7697 GB, free: 1.148 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0001145/0.4277, allocations: 27.77 kB / 0.7697 GB, free: 1.121 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005874/0.4283, allocations: 174.3 kB / 0.7699 GB, free: 0.9531 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001484/0.4285, allocations: 91.59 kB / 0.77 GB, free: 0.8633 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001285/0.4286, allocations: 35.81 kB / 0.77 GB, free: 0.8281 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 9.568e-05/0.4287, allocations: 43.84 kB / 0.7701 GB, free: 0.7852 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 8.618e-05/0.4288, allocations: 35.86 kB / 0.7701 GB, free: 0.75 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.643e-05/0.4289, allocations: 11.94 kB / 0.7701 GB, free: 0.7383 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003536/0.4292, allocations: 187.7 kB / 0.7703 GB, free: 0.5547 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 2.009e-05/0.4292, allocations: 15.98 kB / 0.7703 GB, free: 0.5391 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 5.091e-05/0.4293, allocations: 39.81 kB / 0.7703 GB, free: 0.5 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0003216/0.4296, allocations: 206 kB / 0.7705 GB, free: 308 kB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.992e-06/0.4296, allocations: 4 kB / 0.7705 GB, free: 304 kB / 0.5294 GB Notification: Performance of FrontEnd: time 1.432e-06/0.4296, allocations: 0 / 0.7705 GB, free: 304 kB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.19e-06/0.4297, allocations: 0 / 0.7705 GB, free: 304 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.0005586/0.4302, allocations: 415.1 kB / 0.7709 GB, free: 15.84 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.397e-05/0.4303, allocations: 16.03 kB / 0.771 GB, free: 15.83 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.801e-05/0.4303, allocations: 8.844 kB / 0.771 GB, free: 15.82 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000184/0.4305, allocations: 192.1 kB / 0.7711 GB, free: 15.59 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.078e-05/0.4305, allocations: 8.312 kB / 0.7712 GB, free: 15.59 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.674e-05/0.4305, allocations: 4.375 kB / 0.7712 GB, free: 15.58 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001691/0.4307, allocations: 69.98 kB / 0.7712 GB, free: 15.51 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.4307, allocations: 0 / 0.7712 GB, free: 15.51 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.309e-05/0.4307, allocations: 4 kB / 0.7712 GB, free: 15.5 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.782e-06/0.4308, allocations: 4 kB / 0.7712 GB, free: 15.5 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001283/0.4309, allocations: 47.97 kB / 0.7713 GB, free: 15.45 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005267/0.4314, allocations: 392 kB / 0.7717 GB, free: 15.01 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001183/0.4316, allocations: 42.56 kB / 0.7717 GB, free: 14.96 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.7e-05/0.4316, allocations: 20.84 kB / 0.7717 GB, free: 14.93 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001085/0.4317, allocations: 89.17 kB / 0.7718 GB, free: 14.83 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.518e-05/0.4318, allocations: 38.56 kB / 0.7718 GB, free: 14.78 MB / 0.545 GB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.4318, allocations: 0 / 0.7718 GB, free: 14.78 MB / 0.545 GB Notification: Performance of matching and sorting (n=3): time 0.0002835/0.4321, allocations: 89.52 kB / 0.7719 GB, free: 14.69 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.111e-05/0.4321, allocations: 51.41 kB / 0.772 GB, free: 14.62 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000127/0.4322, allocations: 140.5 kB / 0.7721 GB, free: 14.48 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.542e-05/0.4323, allocations: 25.7 kB / 0.7721 GB, free: 14.45 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 5.126e-05/0.4323, allocations: 104.1 kB / 0.7722 GB, free: 14.34 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.829e-05/0.4323, allocations: 11.91 kB / 0.7722 GB, free: 14.33 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.564e-05/0.4324, allocations: 17.7 kB / 0.7723 GB, free: 14.3 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001178/0.4325, allocations: 318.8 kB / 0.7726 GB, free: 13.98 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.145e-05/0.4326, allocations: 15.98 kB / 0.7726 GB, free: 13.97 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.3e-05/0.4326, allocations: 15.98 kB / 0.7726 GB, free: 13.95 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.631e-05/0.4327, allocations: 36.78 kB / 0.7726 GB, free: 13.91 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.4327, allocations: 3.938 kB / 0.7726 GB, free: 13.91 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001521/0.4329, allocations: 77.58 kB / 0.7727 GB, free: 13.83 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.307e-05/0.4329, allocations: 4 kB / 0.7727 GB, free: 13.82 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.4329, allocations: 4 kB / 0.7727 GB, free: 13.82 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.066e-05/0.4329, allocations: 0 / 0.7727 GB, free: 13.82 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.898e-05/0.433, allocations: 7.984 kB / 0.7727 GB, free: 13.81 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.433, allocations: 0 / 0.7727 GB, free: 13.81 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.638e-05/0.4331, allocations: 15.88 kB / 0.7727 GB, free: 13.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.052e-06/0.4331, allocations: 0 / 0.7727 GB, free: 13.8 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 9.414e-05/0.4332, allocations: 117.8 kB / 0.7728 GB, free: 13.67 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.113e-05/0.4332, allocations: 7.906 kB / 0.7729 GB, free: 13.66 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002047/0.4335, allocations: 89.84 kB / 0.7729 GB, free: 13.57 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.4335, allocations: 0 / 0.7729 GB, free: 13.57 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.4335, allocations: 0 / 0.7729 GB, free: 13.57 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.531e-06/0.4335, allocations: 3.938 kB / 0.7729 GB, free: 13.56 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002042/0.4337, allocations: 185.6 kB / 0.7731 GB, free: 13.33 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.4337, allocations: 0 / 0.7731 GB, free: 13.33 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.067e-05/0.4338, allocations: 11.98 kB / 0.7731 GB, free: 13.32 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.4338, allocations: 8 kB / 0.7731 GB, free: 13.31 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.466e-06/0.4338, allocations: 0 / 0.7731 GB, free: 13.31 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.4338, allocations: 0 / 0.7731 GB, free: 13.31 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.4338, allocations: 0 / 0.7731 GB, free: 13.31 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000201/0.434, allocations: 175.3 kB / 0.7733 GB, free: 13.12 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.319e-05/0.4341, allocations: 81.44 kB / 0.7734 GB, free: 13.03 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.893e-05/0.4341, allocations: 8 kB / 0.7734 GB, free: 13.02 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.989e-05/0.4342, allocations: 0 / 0.7734 GB, free: 13.02 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.68e-05/0.4342, allocations: 15.92 kB / 0.7734 GB, free: 13 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.907e-06/0.4342, allocations: 0 / 0.7734 GB, free: 13 MB / 0.545 GB Notification: Performance of sorting global known variables: time 7.566e-05/0.4343, allocations: 103.3 kB / 0.7735 GB, free: 12.9 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.61e-07/0.4343, allocations: 3.938 kB / 0.7735 GB, free: 12.9 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003272/0.4347, allocations: 63.92 kB / 0.7736 GB, free: 12.84 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.0002856/0.435, allocations: 163.1 kB / 0.7737 GB, free: 12.67 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001524/0.4351, allocations: 31.98 kB / 0.7738 GB, free: 12.64 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.4351, allocations: 4 kB / 0.7738 GB, free: 12.63 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 7.774e-05/0.4352, allocations: 31.92 kB / 0.7738 GB, free: 12.6 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000312/0.4355, allocations: 11.92 kB / 0.7738 GB, free: 12.59 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004058/0.4359, allocations: 240.6 kB / 0.774 GB, free: 12.32 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002634/0.4362, allocations: 0.6924 MB / 0.7747 GB, free: 11.6 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.23e-05/0.4363, allocations: 15.42 kB / 0.7747 GB, free: 11.59 MB / 0.545 GB Notification: Performance of SimCode: time 3.41e-07/0.4363, allocations: 0 / 0.7747 GB, free: 11.59 MB / 0.545 GB Notification: Performance of Templates: time 0.003235/0.4395, allocations: 1.682 MB / 0.7764 GB, free: 9.91 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.makefile (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 & ./BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.pipe 2>&1)