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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9154/0.9154, allocations: 141.8 MB / 149.3 MB, free: 9.246 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001052/0.001052, allocations: 179.8 kB / 182.2 MB, free: 9.473 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.389/1.389, allocations: 221.5 MB / 436.4 MB, free: 13.35 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009505/0.0009504, allocations: 86.64 kB / 0.5074 GB, free: 10.19 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002609/0.002609, allocations: 287.8 kB / 0.5889 GB, free: 54.68 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.674e-05/2.676e-05, allocations: 4 kB / 0.6765 GB, free: 12.87 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4151/0.4151, allocations: 82.77 MB / 0.7574 GB, free: 32.03 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1405/0.5557, allocations: 110.8 MB / 0.8656 GB, free: 1.074 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000213/0.556, allocations: 75.83 kB / 0.8656 GB, free: 1.004 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.0126/0.5686, allocations: 4.195 MB / 0.8697 GB, free: 12.8 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.563e-06/0.5686, allocations: 0 / 0.8697 GB, free: 12.8 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.066e-05/0.5686, allocations: 0 / 0.8697 GB, free: 12.8 MB / 0.5417 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.0004233/0.5691, allocations: 398.2 kB / 0.8701 GB, free: 12.37 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.5691, allocations: 12.03 kB / 0.8701 GB, free: 12.36 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.848e-05/0.5692, allocations: 11.91 kB / 0.8701 GB, free: 12.35 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001882/0.5694, allocations: 194.8 kB / 0.8703 GB, free: 12.12 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.195e-05/0.5694, allocations: 3.953 kB / 0.8703 GB, free: 12.11 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.375e-05/0.5694, allocations: 4 kB / 0.8703 GB, free: 12.11 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001016/0.5695, allocations: 35.94 kB / 0.8704 GB, free: 12.07 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001048/0.5696, allocations: 57.67 kB / 0.8704 GB, free: 12.01 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.5696, allocations: 0 / 0.8704 GB, free: 12.01 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.899e-06/0.5697, allocations: 0 / 0.8704 GB, free: 12.01 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.5697, allocations: 0 / 0.8704 GB, free: 12.01 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005094/0.5702, allocations: 368.5 kB / 0.8708 GB, free: 11.6 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 8.457e-05/0.5703, allocations: 42.58 kB / 0.8708 GB, free: 11.55 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.486e-05/0.5703, allocations: 16.8 kB / 0.8708 GB, free: 11.53 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001167/0.5704, allocations: 89.19 kB / 0.8709 GB, free: 11.43 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.429e-05/0.5705, allocations: 34.56 kB / 0.8709 GB, free: 11.38 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=3): time 1.212e-06/0.5705, allocations: 0 / 0.8709 GB, free: 11.38 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3): time 0.008414/0.5789, allocations: 429.2 kB / 0.8714 GB, free: 10.96 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.843e-05/0.579, allocations: 59.34 kB / 0.8714 GB, free: 10.89 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001198/0.5791, allocations: 115 kB / 0.8715 GB, free: 10.77 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.631e-05/0.5791, allocations: 25.7 kB / 0.8716 GB, free: 10.73 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 5.364e-05/0.5792, allocations: 96.05 kB / 0.8716 GB, free: 10.64 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 2.022e-05/0.5792, allocations: 11.89 kB / 0.8717 GB, free: 10.62 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.078e-06/0.5792, allocations: 4 kB / 0.8717 GB, free: 10.62 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001116/0.5793, allocations: 318.8 kB / 0.872 GB, free: 10.3 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.54e-05/0.5794, allocations: 8 kB / 0.872 GB, free: 10.29 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.432e-05/0.5794, allocations: 12.11 kB / 0.872 GB, free: 10.28 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008172/0.5876, allocations: 387.5 kB / 0.8723 GB, free: 9.902 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.5876, allocations: 0 / 0.8723 GB, free: 9.902 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.008161/0.5958, allocations: 429.2 kB / 0.8728 GB, free: 9.477 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.171e-05/0.5958, allocations: 8 kB / 0.8728 GB, free: 9.469 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.5958, allocations: 0 / 0.8728 GB, free: 9.469 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.553e-05/0.5959, allocations: 0 / 0.8728 GB, free: 9.469 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001091/0.596, allocations: 11.98 kB / 0.8728 GB, free: 9.457 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.596, allocations: 0 / 0.8728 GB, free: 9.457 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7e-05/0.5961, allocations: 11.88 kB / 0.8728 GB, free: 9.445 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.032e-05/0.5961, allocations: 3.984 kB / 0.8728 GB, free: 9.441 MB / 0.5417 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 7.183e-05/0.5962, allocations: 104.9 kB / 0.8729 GB, free: 9.332 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.192e-05/0.5962, allocations: 11.91 kB / 0.8729 GB, free: 9.32 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008287/0.6045, allocations: 449.8 kB / 0.8733 GB, free: 8.867 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.6045, allocations: 0 / 0.8733 GB, free: 8.867 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.713e-06/0.6046, allocations: 4 kB / 0.8733 GB, free: 8.863 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.6046, allocations: 0 / 0.8733 GB, free: 8.863 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002193/0.6048, allocations: 170.1 kB / 0.8735 GB, free: 8.66 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.644e-06/0.6048, allocations: 0 / 0.8735 GB, free: 8.66 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.483e-05/0.6049, allocations: 11.98 kB / 0.8735 GB, free: 8.648 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.112e-06/0.6049, allocations: 0 / 0.8735 GB, free: 8.648 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.947e-06/0.6049, allocations: 4 kB / 0.8735 GB, free: 8.645 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.6049, allocations: 4 kB / 0.8735 GB, free: 8.641 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.6049, allocations: 0 / 0.8735 GB, free: 8.641 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008251/0.6132, allocations: 0.5224 MB / 0.874 GB, free: 8.102 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 5.89e-05/0.6133, allocations: 84.95 kB / 0.8741 GB, free: 8 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.353e-05/0.6133, allocations: 0 / 0.8741 GB, free: 8 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.144e-05/0.6134, allocations: 4 kB / 0.8741 GB, free: 7.996 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.303e-05/0.6135, allocations: 7.984 kB / 0.8741 GB, free: 7.988 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.131e-05/0.6135, allocations: 4 kB / 0.8741 GB, free: 7.984 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 7.399e-05/0.6136, allocations: 96.84 kB / 0.8742 GB, free: 7.891 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6136, allocations: 0 / 0.8742 GB, free: 7.891 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0004422/0.614, allocations: 75.7 kB / 0.8743 GB, free: 7.816 MB / 0.5417 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.0003654/0.6144, allocations: 163.1 kB / 0.8744 GB, free: 7.648 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0001321/0.6145, allocations: 31.92 kB / 0.8745 GB, free: 7.617 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.6146, allocations: 0 / 0.8745 GB, free: 7.617 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 3.513e-05/0.6146, allocations: 20 kB / 0.8745 GB, free: 7.598 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002532/0.6149, allocations: 8 kB / 0.8745 GB, free: 7.59 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003378/0.6152, allocations: 105.5 kB / 0.8746 GB, free: 7.461 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003158/0.6155, allocations: 0.6963 MB / 0.8753 GB, free: 6.738 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 4.175e-05/0.6156, allocations: 8 kB / 0.8753 GB, free: 6.73 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.027e-05/0.6156, allocations: 15.44 kB / 0.8753 GB, free: 6.715 MB / 0.5417 GB Notification: Performance of SimCode: time 2.4e-07/0.6156, allocations: 0 / 0.8753 GB, free: 6.715 MB / 0.5417 GB Notification: Performance of Templates: time 0.00436/0.62, allocations: 1.439 MB / 0.8767 GB, free: 5.305 MB / 0.5417 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)