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.8969/0.8969, allocations: 141.8 MB / 149.3 MB, free: 9.219 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.001065/0.001064, allocations: 184.8 kB / 182.2 MB, free: 9.441 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.589/1.589, 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.0009856/0.0009856, allocations: 91.8 kB / 0.5074 GB, free: 10.17 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001765/0.001765, allocations: 283.1 kB / 0.5889 GB, free: 54.66 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 4.323e-05/4.325e-05, allocations: 0 / 0.6766 GB, free: 12.75 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.416/0.4161, allocations: 82.77 MB / 0.7574 GB, free: 32 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1438/0.56, allocations: 110.8 MB / 0.8657 GB, free: 1.031 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002157/0.5602, allocations: 67.95 kB / 0.8657 GB, free: 0.9648 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.01326/0.5735, allocations: 4.196 MB / 0.8698 GB, free: 12.77 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.082e-06/0.5735, allocations: 7.938 kB / 0.8698 GB, free: 12.76 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.079e-05/0.5736, allocations: 4 kB / 0.8698 GB, free: 12.75 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.0004722/0.574, allocations: 406.2 kB / 0.8702 GB, free: 12.31 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.818e-05/0.5741, allocations: 11.97 kB / 0.8702 GB, free: 12.3 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.789e-05/0.5741, allocations: 7.906 kB / 0.8702 GB, free: 12.29 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002294/0.5744, allocations: 186.9 kB / 0.8704 GB, free: 12.07 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.037e-05/0.5744, allocations: 3.953 kB / 0.8704 GB, free: 12.07 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.475e-05/0.5744, allocations: 4 kB / 0.8704 GB, free: 12.06 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.748e-05/0.5745, allocations: 31.98 kB / 0.8705 GB, free: 12.03 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001101/0.5746, allocations: 61.69 kB / 0.8705 GB, free: 11.96 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.584e-06/0.5747, allocations: 4 kB / 0.8705 GB, free: 11.96 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.121e-05/0.5747, allocations: 0 / 0.8705 GB, free: 11.96 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.5747, allocations: 0 / 0.8705 GB, free: 11.96 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005057/0.5752, allocations: 376.5 kB / 0.8709 GB, free: 11.54 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 7.707e-05/0.5753, allocations: 34.58 kB / 0.8709 GB, free: 11.5 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.515e-05/0.5753, allocations: 24.88 kB / 0.8709 GB, free: 11.47 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001076/0.5754, allocations: 81.11 kB / 0.871 GB, free: 11.38 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.619e-05/0.5755, allocations: 34.56 kB / 0.871 GB, free: 11.33 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.5755, allocations: 0 / 0.871 GB, free: 11.33 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3): time 0.008283/0.5838, allocations: 433.2 kB / 0.8715 GB, free: 10.9 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.474e-05/0.5838, allocations: 51.41 kB / 0.8715 GB, free: 10.84 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001099/0.5839, allocations: 118.7 kB / 0.8716 GB, free: 10.71 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.474e-05/0.584, allocations: 25.7 kB / 0.8716 GB, free: 10.68 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 5.473e-05/0.584, allocations: 100 kB / 0.8717 GB, free: 10.58 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 1.815e-05/0.584, allocations: 7.906 kB / 0.8718 GB, free: 10.57 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.498e-06/0.5841, allocations: 0 / 0.8718 GB, free: 10.57 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001222/0.5842, allocations: 318.8 kB / 0.8721 GB, free: 10.25 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.499e-05/0.5842, allocations: 8 kB / 0.8721 GB, free: 10.25 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.309e-05/0.5842, allocations: 20.02 kB / 0.8721 GB, free: 10.23 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008168/0.5924, allocations: 383.6 kB / 0.8724 GB, free: 9.852 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.5924, allocations: 0 / 0.8724 GB, free: 9.852 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.008184/0.6006, allocations: 429.2 kB / 0.8729 GB, free: 9.426 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.329e-05/0.6007, allocations: 8 kB / 0.8729 GB, free: 9.418 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.826e-06/0.6007, allocations: 3.984 kB / 0.8729 GB, free: 9.414 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.6007, allocations: 0 / 0.8729 GB, free: 9.414 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001042/0.6008, allocations: 8 kB / 0.8729 GB, free: 9.406 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.169e-06/0.6008, allocations: 4 kB / 0.8729 GB, free: 9.402 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.062e-05/0.6009, allocations: 7.922 kB / 0.8729 GB, free: 9.395 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.754e-06/0.6009, allocations: 4 kB / 0.8729 GB, free: 9.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 8.444e-05/0.601, allocations: 108.9 kB / 0.873 GB, free: 9.277 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.008284/0.6093, allocations: 438.5 kB / 0.8734 GB, free: 8.844 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.766e-05/0.6093, allocations: 7.906 kB / 0.8734 GB, free: 8.836 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008436/0.6178, allocations: 449.6 kB / 0.8739 GB, free: 8.383 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.404e-06/0.6178, allocations: 3.984 kB / 0.8739 GB, free: 8.379 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/0.6178, allocations: 0 / 0.8739 GB, free: 8.379 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.6178, allocations: 3.953 kB / 0.8739 GB, free: 8.375 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002443/0.6181, allocations: 158.2 kB / 0.874 GB, free: 8.184 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.01e-06/0.6181, allocations: 112 / 0.874 GB, free: 8.184 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.533e-05/0.6182, allocations: 15.94 kB / 0.874 GB, free: 8.168 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.762e-06/0.6182, allocations: 3.984 kB / 0.874 GB, free: 8.164 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.947e-06/0.6182, allocations: 0 / 0.874 GB, free: 8.164 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.195e-06/0.6182, allocations: 0 / 0.874 GB, free: 8.164 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.6182, allocations: 0 / 0.874 GB, free: 8.164 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008298/0.6265, allocations: 0.5263 MB / 0.8745 GB, free: 7.621 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 5.062e-05/0.6266, allocations: 85.02 kB / 0.8746 GB, free: 7.52 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.797e-05/0.6266, allocations: 0 / 0.8746 GB, free: 7.52 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.869e-05/0.6267, allocations: 4 kB / 0.8746 GB, free: 7.516 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.935e-05/0.6268, allocations: 3.984 kB / 0.8746 GB, free: 7.512 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.081e-06/0.6268, allocations: 0 / 0.8746 GB, free: 7.512 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 6.609e-05/0.6269, allocations: 100.8 kB / 0.8747 GB, free: 7.414 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.41e-07/0.6269, allocations: 4 kB / 0.8747 GB, free: 7.41 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003532/0.6272, allocations: 67.86 kB / 0.8748 GB, free: 7.344 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.008847/0.6361, allocations: 1.119 MB / 0.8759 GB, free: 6.199 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0001155/0.6362, allocations: 28.31 kB / 0.8759 GB, free: 6.172 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.6362, allocations: 4 kB / 0.8759 GB, free: 6.168 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 3.405e-05/0.6363, allocations: 20 kB / 0.8759 GB, free: 6.148 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002283/0.6365, allocations: 4 kB / 0.8759 GB, free: 6.145 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004723/0.637, allocations: 166.4 kB / 0.8761 GB, free: 5.941 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002727/0.6373, allocations: 0.6963 MB / 0.8768 GB, free: 5.219 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 4.336e-05/0.6373, allocations: 22.11 kB / 0.8768 GB, free: 5.199 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.816e-05/0.6374, allocations: 23.42 kB / 0.8768 GB, free: 5.176 MB / 0.5417 GB Notification: Performance of SimCode: time 6.12e-07/0.6374, allocations: 4 kB / 0.8768 GB, free: 5.172 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01978/0.6572, allocations: 2.214 MB / 0.879 GB, free: 2.988 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001861/0.6574, allocations: 133.6 kB / 0.8791 GB, free: 2.797 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.6/2.258, allocations: 0 / 0.8791 GB, free: 2.797 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)