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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7647/0.7647, allocations: 141.8 MB / 149.1 MB, free: 12.36 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001059/0.001059, allocations: 178.1 kB / 181.9 MB, free: 9.094 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.39/1.39, allocations: 221.3 MB / 436 MB, free: 1.465 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001007/0.001007, allocations: 95.83 kB / 0.507 GB, free: 10.3 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001763/0.001763, allocations: 272.2 kB / 0.5884 GB, free: 7.129 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 8.365e-06/8.836e-06, allocations: 0 / 0.6759 GB, free: 13.5 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4442/0.4442, allocations: 82.77 MB / 0.7567 GB, free: 138.3 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1211/0.5654, allocations: 110.8 MB / 0.8649 GB, free: 27.38 MB / 0.5575 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000171/0.5656, allocations: 63.97 kB / 0.8649 GB, free: 27.32 MB / 0.5575 GB Notification: Performance of FrontEnd: time 0.01107/0.5767, allocations: 3.902 MB / 0.8687 GB, free: 23.46 MB / 0.5575 GB Notification: Performance of Transformations before backend: time 1.315e-05/0.5767, allocations: 4 kB / 0.8687 GB, free: 23.46 MB / 0.5575 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.0003783/0.5771, allocations: 398.1 kB / 0.8691 GB, free: 23.02 MB / 0.5575 GB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/0.5771, allocations: 12.03 kB / 0.8691 GB, free: 23.01 MB / 0.5575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.853e-05/0.5772, allocations: 7.906 kB / 0.8691 GB, free: 23 MB / 0.5575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001638/0.5773, allocations: 190.9 kB / 0.8693 GB, free: 22.78 MB / 0.5575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.436e-06/0.5774, allocations: 4 kB / 0.8693 GB, free: 22.77 MB / 0.5575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.333e-05/0.5774, allocations: 3.906 kB / 0.8693 GB, free: 22.77 MB / 0.5575 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.684e-05/0.5775, allocations: 39.92 kB / 0.8694 GB, free: 22.73 MB / 0.5575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.383e-05/0.5776, allocations: 54.34 kB / 0.8694 GB, free: 22.67 MB / 0.5575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.275e-06/0.5776, allocations: 0 / 0.8694 GB, free: 22.67 MB / 0.5575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.128e-05/0.5776, allocations: 0 / 0.8694 GB, free: 22.67 MB / 0.5575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.234e-06/0.5776, allocations: 4 kB / 0.8694 GB, free: 22.67 MB / 0.5575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000441/0.5781, allocations: 376.4 kB / 0.8698 GB, free: 22.25 MB / 0.5575 GB Notification: Performance of preOpt comSubExp (simulation): time 6.922e-05/0.5782, allocations: 38.56 kB / 0.8698 GB, free: 22.2 MB / 0.5575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.158e-05/0.5782, allocations: 20.86 kB / 0.8698 GB, free: 22.18 MB / 0.5575 GB Notification: Performance of preOpt evalFunc (simulation): time 8.84e-05/0.5783, allocations: 81.11 kB / 0.8699 GB, free: 22.08 MB / 0.5575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.719e-05/0.5783, allocations: 34.56 kB / 0.87 GB, free: 22.04 MB / 0.5575 GB Notification: Performance of pre-optimization done (n=3): time 1.333e-06/0.5783, allocations: 0 / 0.87 GB, free: 22.04 MB / 0.5575 GB Notification: Performance of matching and sorting (n=3): time 0.009423/0.5877, allocations: 449.2 kB / 0.8704 GB, free: 21.59 MB / 0.5575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.098e-05/0.5878, allocations: 51.41 kB / 0.8704 GB, free: 21.53 MB / 0.5575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.639e-05/0.5879, allocations: 116.5 kB / 0.8705 GB, free: 21.41 MB / 0.5575 GB Notification: Performance of collectPreVariables (initialization): time 1.399e-05/0.5879, allocations: 33.64 kB / 0.8706 GB, free: 21.37 MB / 0.5575 GB Notification: Performance of collectInitialEqns (initialization): time 2.823e-05/0.588, allocations: 100 kB / 0.8707 GB, free: 21.27 MB / 0.5575 GB Notification: Performance of collectInitialBindings (initialization): time 2.254e-05/0.588, allocations: 11.81 kB / 0.8707 GB, free: 21.26 MB / 0.5575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.468e-06/0.588, allocations: 4 kB / 0.8707 GB, free: 21.25 MB / 0.5575 GB Notification: Performance of setup shared object (initialization): time 4.958e-05/0.588, allocations: 314.8 kB / 0.871 GB, free: 20.94 MB / 0.5575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.426e-05/0.5881, allocations: 8 kB / 0.871 GB, free: 20.93 MB / 0.5575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.995e-05/0.5881, allocations: 12 kB / 0.871 GB, free: 20.92 MB / 0.5575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009088/0.5972, allocations: 403.5 kB / 0.8714 GB, free: 20.52 MB / 0.5575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.5972, allocations: 4 kB / 0.8714 GB, free: 20.52 MB / 0.5575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.009005/0.6062, allocations: 449.1 kB / 0.8718 GB, free: 20.07 MB / 0.5575 GB Notification: Performance of prepare postOptimizeDAE: time 1.461e-05/0.6063, allocations: 4 kB / 0.8718 GB, free: 20.07 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.742e-06/0.6063, allocations: 0 / 0.8718 GB, free: 20.07 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.276e-05/0.6063, allocations: 0 / 0.8718 GB, free: 20.07 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001068/0.6064, allocations: 11.98 kB / 0.8718 GB, free: 20.06 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.317e-06/0.6064, allocations: 4 kB / 0.8718 GB, free: 20.05 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.232e-05/0.6065, allocations: 7.938 kB / 0.8718 GB, free: 20.05 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.447e-06/0.6065, allocations: 7.984 kB / 0.8719 GB, free: 20.04 MB / 0.5575 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.657e-05/0.6066, allocations: 108.8 kB / 0.872 GB, free: 19.93 MB / 0.5575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.327e-05/0.6066, allocations: 11.91 kB / 0.872 GB, free: 19.91 MB / 0.5575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009293/0.6159, allocations: 463.5 kB / 0.8724 GB, free: 19.46 MB / 0.5575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.642e-06/0.616, allocations: 4 kB / 0.8724 GB, free: 19.45 MB / 0.5575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.616, allocations: 0 / 0.8724 GB, free: 19.45 MB / 0.5575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.616, allocations: 0 / 0.8724 GB, free: 19.45 MB / 0.5575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001666/0.6161, allocations: 170.2 kB / 0.8726 GB, free: 19.25 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.6162, allocations: 3.938 kB / 0.8726 GB, free: 19.25 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.691e-05/0.6163, allocations: 15.98 kB / 0.8726 GB, free: 19.23 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.6163, allocations: 0 / 0.8726 GB, free: 19.23 MB / 0.5575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.678e-06/0.6163, allocations: 0 / 0.8726 GB, free: 19.23 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.6163, allocations: 0 / 0.8726 GB, free: 19.23 MB / 0.5575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.6163, allocations: 0 / 0.8726 GB, free: 19.23 MB / 0.5575 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009281/0.6256, allocations: 0.5419 MB / 0.8731 GB, free: 18.67 MB / 0.5575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.421e-05/0.6256, allocations: 81.02 kB / 0.8732 GB, free: 18.57 MB / 0.5575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.351e-05/0.6257, allocations: 4.281 kB / 0.8732 GB, free: 18.57 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.363e-05/0.6258, allocations: 3.984 kB / 0.8732 GB, free: 18.57 MB / 0.5575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.503e-05/0.6258, allocations: 7.906 kB / 0.8732 GB, free: 18.56 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.363e-06/0.6258, allocations: 4 kB / 0.8732 GB, free: 18.55 MB / 0.5575 GB Notification: Performance of sort global known variables: time 5.387e-05/0.6259, allocations: 95.27 kB / 0.8733 GB, free: 18.46 MB / 0.5575 GB Notification: Performance of remove unused functions: time 0.0003627/0.6263, allocations: 63.94 kB / 0.8734 GB, free: 18.4 MB / 0.5575 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003059/0.6266, allocations: 175 kB / 0.8735 GB, free: 18.22 MB / 0.5575 GB Notification: Performance of simCode: created initialization part: time 0.0001079/0.6267, allocations: 31.92 kB / 0.8736 GB, free: 18.19 MB / 0.5575 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.6267, allocations: 0 / 0.8736 GB, free: 18.19 MB / 0.5575 GB Notification: Performance of simCode: created simulation system equations: time 2.895e-05/0.6267, allocations: 15.94 kB / 0.8736 GB, free: 18.17 MB / 0.5575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002212/0.627, allocations: 12.28 kB / 0.8736 GB, free: 18.16 MB / 0.5575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00029/0.6273, allocations: 95.67 kB / 0.8737 GB, free: 18.05 MB / 0.5575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001507/0.6274, allocations: 0.711 MB / 0.8744 GB, free: 17.31 MB / 0.5575 GB Notification: Performance of SimCode: time 9.92e-07/0.6274, allocations: 0 / 0.8744 GB, free: 17.31 MB / 0.5575 GB Notification: Performance of Templates: time 0.003617/0.6311, allocations: 1.537 MB / 0.8759 GB, free: 15.81 MB / 0.5575 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)