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.9165/0.9165, allocations: 143.3 MB / 158.3 MB, free: 5.773 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.001245/0.001245, allocations: 185 kB / 191.5 MB, free: 5.75 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.563/1.563, allocations: 223.2 MB / 447.7 MB, free: 4.812 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.0009239/0.0009242, allocations: 92.27 kB / 0.5187 GB, free: 1.176 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001862/0.001862, allocations: 273 kB / 0.6005 GB, free: 48.76 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004437/0.0004437, allocations: 11.64 kB / 0.6929 GB, free: 59.72 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1697/0.1701, allocations: 82.8 MB / 0.7738 GB, free: 13.78 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5119/0.6821, allocations: 111.5 MB / 0.8827 GB, free: 32.28 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001944/0.6823, allocations: 69.09 kB / 0.8828 GB, free: 32.28 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.01265/0.695, allocations: 4.233 MB / 0.8869 GB, free: 31.76 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.464e-06/0.695, allocations: 1.125 kB / 0.8869 GB, free: 31.76 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.219e-05/0.695, allocations: 5.312 kB / 0.8869 GB, free: 31.76 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.0005585/0.6956, allocations: 424.8 kB / 0.8873 GB, free: 31.36 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.32e-05/0.6957, allocations: 9.406 kB / 0.8873 GB, free: 31.36 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.788e-05/0.6957, allocations: 36.52 kB / 0.8874 GB, free: 31.32 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.154e-05/0.6958, allocations: 13.12 kB / 0.8874 GB, free: 31.31 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001745/0.6959, allocations: 191.4 kB / 0.8876 GB, free: 31.1 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.969e-06/0.696, allocations: 5.5 kB / 0.8876 GB, free: 31.1 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.447e-05/0.696, allocations: 7.5 kB / 0.8876 GB, free: 31.1 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001727/0.6962, allocations: 72.33 kB / 0.8876 GB, free: 31.07 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.735e-06/0.6962, allocations: 0 / 0.8876 GB, free: 31.07 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.216e-05/0.6962, allocations: 0 / 0.8876 GB, free: 31.07 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.6962, allocations: 1.375 kB / 0.8876 GB, free: 31.07 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001451/0.6964, allocations: 54.47 kB / 0.8877 GB, free: 31.06 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005328/0.6969, allocations: 391.6 kB / 0.8881 GB, free: 30.72 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001231/0.697, allocations: 51.17 kB / 0.8881 GB, free: 30.7 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001007/0.6971, allocations: 87.44 kB / 0.8882 GB, free: 30.6 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.626e-05/0.6972, allocations: 36.7 kB / 0.8882 GB, free: 30.55 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=3): time 1.172e-06/0.6972, allocations: 0 / 0.8882 GB, free: 30.55 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3): time 0.0003094/0.6975, allocations: 93.44 kB / 0.8883 GB, free: 30.52 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.684e-05/0.6975, allocations: 55.36 kB / 0.8884 GB, free: 30.45 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001124/0.6976, allocations: 122.1 kB / 0.8885 GB, free: 30.36 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.116e-05/0.6977, allocations: 30.31 kB / 0.8885 GB, free: 30.32 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 4.66e-05/0.6977, allocations: 103.6 kB / 0.8886 GB, free: 30.24 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 1.728e-05/0.6977, allocations: 13.7 kB / 0.8886 GB, free: 30.23 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.36e-06/0.6978, allocations: 0 / 0.8886 GB, free: 30.23 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 6.987e-05/0.6978, allocations: 324.2 kB / 0.8889 GB, free: 29.91 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.527e-05/0.6979, allocations: 16.81 kB / 0.889 GB, free: 29.91 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.281e-05/0.6979, allocations: 13.45 kB / 0.889 GB, free: 29.91 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.28e-05/0.698, allocations: 23.94 kB / 0.889 GB, free: 29.91 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.698, allocations: 0 / 0.889 GB, free: 29.91 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000183/0.6982, allocations: 67.58 kB / 0.8891 GB, free: 29.88 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/0.6982, allocations: 8.062 kB / 0.8891 GB, free: 29.88 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.6982, allocations: 0 / 0.8891 GB, free: 29.88 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/0.6983, allocations: 0 / 0.8891 GB, free: 29.88 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001104/0.6984, allocations: 10.11 kB / 0.8891 GB, free: 29.88 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.097e-06/0.6984, allocations: 8.844 kB / 0.8891 GB, free: 29.87 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.245e-05/0.6985, allocations: 12.41 kB / 0.8891 GB, free: 29.86 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.787e-06/0.6985, allocations: 2.078 kB / 0.8891 GB, free: 29.86 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.452e-05/0.6986, allocations: 118.5 kB / 0.8892 GB, free: 29.74 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.037e-05/0.6986, allocations: 11.94 kB / 0.8892 GB, free: 29.74 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000219/0.6988, allocations: 83.95 kB / 0.8893 GB, free: 29.7 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.6988, allocations: 5.875 kB / 0.8893 GB, free: 29.7 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/0.6988, allocations: 0.5 kB / 0.8893 GB, free: 29.7 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.6989, allocations: 5.969 kB / 0.8893 GB, free: 29.7 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001912/0.699, allocations: 189.7 kB / 0.8895 GB, free: 29.51 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.6991, allocations: 0 / 0.8895 GB, free: 29.51 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.044e-05/0.6991, allocations: 12.45 kB / 0.8895 GB, free: 29.51 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.6992, allocations: 1.062 kB / 0.8895 GB, free: 29.51 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.136e-05/0.6992, allocations: 0.5625 kB / 0.8895 GB, free: 29.51 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.6992, allocations: 1.031 kB / 0.8895 GB, free: 29.51 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.6992, allocations: 0.6562 kB / 0.8895 GB, free: 29.51 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001886/0.6994, allocations: 187.6 kB / 0.8897 GB, free: 29.36 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 3.167e-05/0.6994, allocations: 89.66 kB / 0.8898 GB, free: 29.26 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.965e-05/0.6995, allocations: 1.266 kB / 0.8898 GB, free: 29.26 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.617e-05/0.6995, allocations: 2.969 kB / 0.8898 GB, free: 29.26 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.068e-05/0.6996, allocations: 5.297 kB / 0.8898 GB, free: 29.26 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.242e-06/0.6996, allocations: 7.438 kB / 0.8898 GB, free: 29.26 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 5.409e-05/0.6996, allocations: 112 kB / 0.8899 GB, free: 29.18 MB / 0.5417 GB Notification: Performance of sort global known variables: time 8.91e-07/0.6997, allocations: 0 / 0.8899 GB, free: 29.18 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0004281/0.7001, allocations: 70.22 kB / 0.89 GB, free: 29.16 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 () * 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 (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.0005231/0.7006, allocations: 0.7753 MB / 0.8907 GB, free: 28.48 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0001593/0.7008, allocations: 39.2 kB / 0.8908 GB, free: 28.48 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.7008, allocations: 0 / 0.8908 GB, free: 28.48 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 5.784e-05/0.7009, allocations: 22.5 kB / 0.8908 GB, free: 28.48 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002206/0.7011, allocations: 12.81 kB / 0.8908 GB, free: 28.48 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009421/0.702, allocations: 0.6582 MB / 0.8914 GB, free: 28.05 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001018/0.7031, allocations: 0.6957 MB / 0.8921 GB, free: 43.36 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 4.546e-05/0.7031, allocations: 10.59 kB / 0.8921 GB, free: 43.36 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.979e-05/0.7032, allocations: 24.28 kB / 0.8921 GB, free: 43.35 MB / 0.5573 GB Notification: Performance of SimCode: time 4.21e-07/0.7032, allocations: 4 kB / 0.8921 GB, free: 43.35 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01558/0.7188, allocations: 2.694 MB / 0.8948 GB, free: 43.09 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002037/0.719, allocations: 181.2 kB / 0.8949 GB, free: 42.84 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.6/2.319, allocations: 0 / 0.8949 GB, free: 42.84 MB / 0.5573 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)