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.001247/0.001247, allocations: 110.9 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.001204/0.001205, allocations: 187 kB / 17.34 MB, free: 5.766 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.248/1.248, 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.002134/0.002133, allocations: 288.7 kB / 291.5 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9032/0.9032, allocations: 169.3 MB / 0.499 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001691/0.001691, allocations: 91.84 kB / 0.6821 GB, free: 7.02 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3931/0.3948, allocations: 86.98 MB / 0.767 GB, free: 3.922 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.HAM.Examples.GasGapClosed): time 0.002487/0.3973, allocations: 1.722 MB / 0.7687 GB, free: 2.188 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001344/0.3987, allocations: 1.034 MB / 0.7697 GB, free: 1.148 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.713e-05/0.3987, allocations: 4 kB / 0.7697 GB, free: 1.145 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 3.901e-05/0.3988, allocations: 7.938 kB / 0.7697 GB, free: 1.137 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 9.28e-05/0.3989, allocations: 31.7 kB / 0.7697 GB, free: 1.105 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004527/0.3993, allocations: 174.9 kB / 0.7699 GB, free: 0.9375 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001278/0.3995, allocations: 95.47 kB / 0.77 GB, free: 0.8438 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001087/0.3996, allocations: 31.88 kB / 0.77 GB, free: 0.8125 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 7.993e-05/0.3997, allocations: 35.92 kB / 0.7701 GB, free: 0.7773 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 9.527e-05/0.3998, allocations: 43.78 kB / 0.7701 GB, free: 0.7344 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.927e-05/0.3998, allocations: 8 kB / 0.7701 GB, free: 0.7266 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003091/0.4001, allocations: 183.7 kB / 0.7703 GB, free: 0.5469 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.668e-05/0.4001, allocations: 12 kB / 0.7703 GB, free: 0.5352 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 4.508e-05/0.4002, allocations: 51.67 kB / 0.7703 GB, free: 496 kB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002635/0.4005, allocations: 202.1 kB / 0.7705 GB, free: 296 kB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.4005, allocations: 0 / 0.7705 GB, free: 296 kB / 0.5294 GB Notification: Performance of FrontEnd: time 1.392e-06/0.4005, allocations: 0 / 0.7705 GB, free: 296 kB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.25e-06/0.4005, allocations: 8 kB / 0.7705 GB, free: 288 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.0005006/0.401, allocations: 411.1 kB / 0.7709 GB, free: 15.83 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.171e-05/0.401, allocations: 15.97 kB / 0.771 GB, free: 15.82 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.696e-05/0.4011, allocations: 8.844 kB / 0.771 GB, free: 15.81 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001639/0.4012, allocations: 192.1 kB / 0.7711 GB, free: 15.58 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.001e-05/0.4013, allocations: 4.375 kB / 0.7711 GB, free: 15.58 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.186e-05/0.4013, allocations: 4.375 kB / 0.7712 GB, free: 15.57 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001515/0.4014, allocations: 73.98 kB / 0.7712 GB, free: 15.5 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/0.4014, allocations: 0 / 0.7712 GB, free: 15.5 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.359e-05/0.4015, allocations: 11.92 kB / 0.7712 GB, free: 15.48 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.321e-06/0.4015, allocations: 4 kB / 0.7712 GB, free: 15.48 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001183/0.4016, allocations: 43.97 kB / 0.7713 GB, free: 15.44 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004627/0.4021, allocations: 388 kB / 0.7716 GB, free: 15 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001066/0.4022, allocations: 50.5 kB / 0.7717 GB, free: 14.94 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.863e-05/0.4022, allocations: 20.94 kB / 0.7717 GB, free: 14.91 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000102/0.4024, allocations: 81.11 kB / 0.7718 GB, free: 14.82 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.455e-05/0.4024, allocations: 42.55 kB / 0.7718 GB, free: 14.77 MB / 0.545 GB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.4024, allocations: 0 / 0.7718 GB, free: 14.77 MB / 0.545 GB Notification: Performance of matching and sorting (n=3): time 0.0002689/0.4027, allocations: 81.52 kB / 0.7719 GB, free: 14.68 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.296e-05/0.4027, allocations: 59.41 kB / 0.772 GB, free: 14.61 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001103/0.4028, allocations: 141 kB / 0.7721 GB, free: 14.46 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.651e-05/0.4029, allocations: 29.64 kB / 0.7721 GB, free: 14.43 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 4.54e-05/0.4029, allocations: 108 kB / 0.7722 GB, free: 14.32 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.476e-05/0.4029, allocations: 3.906 kB / 0.7722 GB, free: 14.31 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.225e-05/0.403, allocations: 17.7 kB / 0.7723 GB, free: 14.29 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.697e-05/0.4031, allocations: 318.8 kB / 0.7726 GB, free: 13.97 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.952e-05/0.4031, allocations: 15.98 kB / 0.7726 GB, free: 13.95 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.971e-05/0.4032, allocations: 16 kB / 0.7726 GB, free: 13.94 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.023e-05/0.4033, allocations: 40.83 kB / 0.7726 GB, free: 13.89 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.4033, allocations: 0 / 0.7726 GB, free: 13.89 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001334/0.4034, allocations: 73.53 kB / 0.7727 GB, free: 13.82 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.131e-05/0.4034, allocations: 6.656 kB / 0.7727 GB, free: 13.81 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.4034, allocations: 3.984 kB / 0.7727 GB, free: 13.81 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.002e-05/0.4034, allocations: 4 kB / 0.7727 GB, free: 13.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.33e-05/0.4035, allocations: 4 kB / 0.7727 GB, free: 13.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.638e-06/0.4036, allocations: 4 kB / 0.7727 GB, free: 13.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.719e-05/0.4036, allocations: 15.86 kB / 0.7727 GB, free: 13.78 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.121e-06/0.4036, allocations: 0 / 0.7727 GB, free: 13.78 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.236e-05/0.4037, allocations: 113.8 kB / 0.7728 GB, free: 13.66 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.854e-05/0.4037, allocations: 7.906 kB / 0.7729 GB, free: 13.65 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000187/0.4039, allocations: 85.91 kB / 0.7729 GB, free: 13.56 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.993e-06/0.4039, allocations: 3.938 kB / 0.7729 GB, free: 13.55 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.4039, allocations: 0 / 0.7729 GB, free: 13.55 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.404, allocations: 8.312 kB / 0.7729 GB, free: 13.55 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001672/0.4041, allocations: 181.6 kB / 0.7731 GB, free: 13.32 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.4041, allocations: 3.984 kB / 0.7731 GB, free: 13.32 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.893e-05/0.4042, allocations: 8 kB / 0.7731 GB, free: 13.31 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.4042, allocations: 0 / 0.7731 GB, free: 13.31 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.736e-06/0.4042, allocations: 4 kB / 0.7731 GB, free: 13.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.4042, allocations: 3.984 kB / 0.7731 GB, free: 13.3 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.4042, allocations: 3.984 kB / 0.7731 GB, free: 13.3 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001806/0.4044, allocations: 179.4 kB / 0.7733 GB, free: 13.11 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.934e-05/0.4045, allocations: 85.02 kB / 0.7734 GB, free: 13 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.839e-05/0.4045, allocations: 4 kB / 0.7734 GB, free: 13 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.913e-05/0.4046, allocations: 0 / 0.7734 GB, free: 13 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.867e-05/0.4046, allocations: 7.938 kB / 0.7734 GB, free: 12.99 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.582e-06/0.4046, allocations: 7.922 kB / 0.7734 GB, free: 12.98 MB / 0.545 GB Notification: Performance of sorting global known variables: time 5.766e-05/0.4047, allocations: 109.6 kB / 0.7735 GB, free: 12.88 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4047, allocations: 0 / 0.7735 GB, free: 12.88 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002797/0.405, allocations: 63.92 kB / 0.7736 GB, free: 12.82 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.0002214/0.4052, allocations: 167.1 kB / 0.7737 GB, free: 12.64 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001418/0.4053, allocations: 31.98 kB / 0.7738 GB, free: 12.61 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.4054, allocations: 0 / 0.7738 GB, free: 12.61 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 5.893e-05/0.4054, allocations: 27.98 kB / 0.7738 GB, free: 12.59 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002859/0.4057, allocations: 12 kB / 0.7738 GB, free: 12.57 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003524/0.4061, allocations: 244.5 kB / 0.774 GB, free: 12.3 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002174/0.4063, allocations: 0.6924 MB / 0.7747 GB, free: 11.58 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.859e-05/0.4063, allocations: 11.44 kB / 0.7747 GB, free: 11.57 MB / 0.545 GB Notification: Performance of SimCode: time 2.1e-07/0.4063, allocations: 0 / 0.7747 GB, free: 11.57 MB / 0.545 GB Notification: Performance of Templates: time 0.002977/0.4093, allocations: 1.691 MB / 0.7764 GB, free: 9.883 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)