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: "" <> 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/BuildingSystems 2.0.0-master/package.mo): time 0.7357/0.7357, allocations: 141.7 MB / 154.3 MB, free: 15.48 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009863/0.0009864, allocations: 184.2 kB / 187.3 MB, free: 11.88 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.355/1.355, allocations: 221.3 MB / 441.4 MB, free: 4.609 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.0009064/0.0009066, allocations: 90.39 kB / 0.5124 GB, free: 24.2 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001895/0.001895, allocations: 270.4 kB / 0.5939 GB, free: 7.984 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 5.585e-05/5.607e-05, allocations: 4 kB / 0.6835 GB, free: 12.19 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4274/0.4275, allocations: 82.77 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1236/0.5511, allocations: 111.5 MB / 0.8732 GB, free: 13.07 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002171/0.5514, allocations: 76.69 kB / 0.8733 GB, free: 13 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.01301/0.5644, allocations: 4.221 MB / 0.8774 GB, free: 8.793 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.954e-06/0.5644, allocations: 0 / 0.8774 GB, free: 8.793 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.557e-05/0.5645, allocations: 4 kB / 0.8774 GB, free: 8.789 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.0005446/0.565, allocations: 406.2 kB / 0.8778 GB, free: 8.348 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.113e-05/0.5651, allocations: 12.03 kB / 0.8778 GB, free: 8.336 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.114e-05/0.5651, allocations: 34.56 kB / 0.8779 GB, free: 8.293 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.202e-05/0.5652, allocations: 11.91 kB / 0.8779 GB, free: 8.281 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002541/0.5654, allocations: 194.8 kB / 0.8781 GB, free: 8.051 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.067e-05/0.5655, allocations: 0 / 0.8781 GB, free: 8.051 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.485e-05/0.5655, allocations: 8 kB / 0.8781 GB, free: 8.043 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001437/0.5656, allocations: 61.69 kB / 0.8781 GB, free: 7.977 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.5657, allocations: 3.938 kB / 0.8781 GB, free: 7.973 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.959e-06/0.5657, allocations: 0 / 0.8781 GB, free: 7.973 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.5657, allocations: 0 / 0.8781 GB, free: 7.973 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.465e-05/0.5658, allocations: 39.94 kB / 0.8782 GB, free: 7.934 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005441/0.5663, allocations: 396 kB / 0.8785 GB, free: 7.484 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 9.099e-05/0.5664, allocations: 42.58 kB / 0.8786 GB, free: 7.434 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.127e-05/0.5665, allocations: 24.8 kB / 0.8786 GB, free: 7.406 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001085/0.5666, allocations: 85.19 kB / 0.8787 GB, free: 7.305 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.196e-05/0.5666, allocations: 30.56 kB / 0.8787 GB, free: 7.266 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=3): time 1.383e-06/0.5666, allocations: 0 / 0.8787 GB, free: 7.266 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3): time 0.0001913/0.5668, allocations: 61.59 kB / 0.8788 GB, free: 7.199 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.281e-05/0.5669, allocations: 59.3 kB / 0.8788 GB, free: 7.129 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001162/0.567, allocations: 127 kB / 0.8789 GB, free: 6.996 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.44e-05/0.567, allocations: 25.7 kB / 0.879 GB, free: 6.965 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 5.415e-05/0.5671, allocations: 104 kB / 0.8791 GB, free: 6.859 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 2.143e-05/0.5671, allocations: 7.906 kB / 0.8791 GB, free: 6.852 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.647e-06/0.5671, allocations: 0 / 0.8791 GB, free: 6.852 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001117/0.5672, allocations: 318.8 kB / 0.8794 GB, free: 6.531 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.54e-05/0.5673, allocations: 8 kB / 0.8794 GB, free: 6.523 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.237e-05/0.5673, allocations: 12 kB / 0.8794 GB, free: 6.512 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.153e-05/0.5673, allocations: 8 kB / 0.8794 GB, free: 6.504 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.5673, allocations: 0 / 0.8794 GB, free: 6.504 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001114/0.5675, allocations: 61.59 kB / 0.8795 GB, free: 6.438 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.5675, allocations: 8 kB / 0.8795 GB, free: 6.43 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.5675, allocations: 0 / 0.8795 GB, free: 6.43 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.597e-05/0.5675, allocations: 0 / 0.8795 GB, free: 6.43 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001098/0.5676, allocations: 19.88 kB / 0.8795 GB, free: 6.41 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.5676, allocations: 0 / 0.8795 GB, free: 6.41 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.527e-05/0.5677, allocations: 15.92 kB / 0.8795 GB, free: 6.395 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.207e-05/0.5677, allocations: 4.109 kB / 0.8795 GB, free: 6.391 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 6.23e-05/0.5678, allocations: 104.9 kB / 0.8796 GB, free: 6.281 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.992e-05/0.5678, allocations: 12.09 kB / 0.8796 GB, free: 6.27 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001735/0.568, allocations: 73.69 kB / 0.8797 GB, free: 6.188 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.568, allocations: 4 kB / 0.8797 GB, free: 6.184 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.568, allocations: 3.953 kB / 0.8797 GB, free: 6.18 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.397e-06/0.568, allocations: 0 / 0.8797 GB, free: 6.18 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002036/0.5682, allocations: 189.6 kB / 0.8799 GB, free: 5.945 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.5683, allocations: 0 / 0.8799 GB, free: 5.945 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.506e-05/0.5683, allocations: 11.94 kB / 0.8799 GB, free: 5.934 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.5684, allocations: 0 / 0.8799 GB, free: 5.934 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.237e-06/0.5684, allocations: 7.984 kB / 0.8799 GB, free: 5.926 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.038e-06/0.5684, allocations: 8 kB / 0.8799 GB, free: 5.918 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.5684, allocations: 0 / 0.8799 GB, free: 5.918 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001595/0.5686, allocations: 159.4 kB / 0.8801 GB, free: 5.746 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 4.195e-05/0.5686, allocations: 88.95 kB / 0.8802 GB, free: 5.641 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.654e-05/0.5686, allocations: 0 / 0.8802 GB, free: 5.641 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.506e-05/0.5687, allocations: 4 kB / 0.8802 GB, free: 5.637 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.597e-05/0.5687, allocations: 7.984 kB / 0.8802 GB, free: 5.629 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.753e-06/0.5688, allocations: 4 kB / 0.8802 GB, free: 5.625 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 7.439e-05/0.5688, allocations: 113.6 kB / 0.8803 GB, free: 5.516 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.1e-07/0.5688, allocations: 0 / 0.8803 GB, free: 5.516 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003422/0.5692, allocations: 71.78 kB / 0.8803 GB, free: 5.445 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.0006574/0.5699, allocations: 0.7669 MB / 0.8811 GB, free: 4.652 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 9.717e-05/0.57, allocations: 24 kB / 0.8811 GB, free: 4.629 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.57, allocations: 0 / 0.8811 GB, free: 4.629 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 3.518e-05/0.57, allocations: 19.94 kB / 0.8811 GB, free: 4.609 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002202/0.5702, allocations: 21.12 kB / 0.8812 GB, free: 4.59 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004391/0.5707, allocations: 163.5 kB / 0.8813 GB, free: 4.391 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002604/0.571, allocations: 0.7004 MB / 0.882 GB, free: 3.664 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 4.052e-05/0.571, allocations: 4.188 kB / 0.882 GB, free: 3.656 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.071e-05/0.5711, allocations: 27.42 kB / 0.882 GB, free: 3.629 MB / 0.5417 GB Notification: Performance of SimCode: time 3.5e-07/0.5711, allocations: 0 / 0.882 GB, free: 3.629 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01411/0.5852, allocations: 2.683 MB / 0.8846 GB, free: 1.098 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002372/0.5855, allocations: 150.2 kB / 0.8848 GB, free: 0.8711 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.534/2.12, allocations: 0 / 0.8848 GB, free: 0.8711 MB / 0.5417 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_HAM_Examples_GasGapClosed_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_HAM_Examples_GasGapClosed.fmu > BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.pipe 2>&1)