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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001338/0.001338, allocations: 105.8 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0014/0.0014, allocations: 187.7 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.432/1.432, allocations: 225.6 MB / 247.8 MB, free: 3.723 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002343/0.002343, allocations: 275.9 kB / 303 MB, free: 3.629 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.071/1.071, allocations: 180.9 MB / 0.5261 GB, free: 2.703 MB / 382.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002759/0.002759, allocations: 95.84 kB / 0.7247 GB, free: 9.371 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6248/0.6276, allocations: 94.16 MB / 0.8167 GB, free: 7.156 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.HAM.Examples.GasGapClosed): time 0.002751/0.6303, allocations: 1.754 MB / 0.8184 GB, free: 5.93 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001579/0.6319, allocations: 1.031 MB / 0.8194 GB, free: 5.219 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.582e-05/0.632, allocations: 1.562 kB / 0.8194 GB, free: 5.219 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 5.795e-05/0.632, allocations: 12.25 kB / 0.8194 GB, free: 5.211 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0001154/0.6321, allocations: 31.16 kB / 0.8194 GB, free: 5.188 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006209/0.6328, allocations: 167.4 kB / 0.8196 GB, free: 5.113 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0001984/0.633, allocations: 95.25 kB / 0.8197 GB, free: 5.066 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001564/0.6331, allocations: 20.8 kB / 0.8197 GB, free: 5.051 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001169/0.6332, allocations: 41 kB / 0.8197 GB, free: 5.031 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001083/0.6333, allocations: 45.94 kB / 0.8198 GB, free: 5.008 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.399e-05/0.6334, allocations: 6.906 kB / 0.8198 GB, free: 5.008 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004223/0.6338, allocations: 182.4 kB / 0.82 GB, free: 4.965 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 2.768e-05/0.6338, allocations: 14.91 kB / 0.82 GB, free: 4.957 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 7.424e-05/0.6339, allocations: 44.91 kB / 0.82 GB, free: 4.93 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0003984/0.6343, allocations: 200.1 kB / 0.8202 GB, free: 4.867 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.6343, allocations: 4 kB / 0.8202 GB, free: 4.863 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.495e-06/0.6343, allocations: 0 / 0.8202 GB, free: 4.863 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.453e-06/0.6343, allocations: 0 / 0.8202 GB, free: 4.863 MB / 0.5762 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.0006066/0.6349, allocations: 430.8 kB / 0.8206 GB, free: 4.445 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.524e-05/0.635, allocations: 9.344 kB / 0.8206 GB, free: 4.445 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.731e-05/0.635, allocations: 39.83 kB / 0.8207 GB, free: 4.402 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.365e-05/0.6351, allocations: 14.17 kB / 0.8207 GB, free: 4.395 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001752/0.6352, allocations: 191.4 kB / 0.8209 GB, free: 4.18 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.299e-05/0.6352, allocations: 2.625 kB / 0.8209 GB, free: 4.18 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.763e-05/0.6353, allocations: 12.22 kB / 0.8209 GB, free: 4.172 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001983/0.6355, allocations: 72.66 kB / 0.821 GB, free: 4.125 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.273e-05/0.6355, allocations: 0 / 0.821 GB, free: 4.125 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.193e-05/0.6355, allocations: 1.281 kB / 0.821 GB, free: 4.125 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.6355, allocations: 1.281 kB / 0.821 GB, free: 4.125 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001342/0.6356, allocations: 45.5 kB / 0.821 GB, free: 4.109 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000527/0.6361, allocations: 391 kB / 0.8214 GB, free: 3.738 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001236/0.6363, allocations: 41.39 kB / 0.8214 GB, free: 3.707 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.743e-05/0.6363, allocations: 24.34 kB / 0.8214 GB, free: 3.691 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 9.714e-05/0.6364, allocations: 82.42 kB / 0.8215 GB, free: 3.598 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.044e-05/0.6364, allocations: 35.84 kB / 0.8215 GB, free: 3.555 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=3): time 1.011e-06/0.6364, allocations: 0 / 0.8215 GB, free: 3.555 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3): time 0.0002893/0.6367, allocations: 91.03 kB / 0.8216 GB, free: 3.5 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.919e-05/0.6368, allocations: 56.34 kB / 0.8217 GB, free: 3.434 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001142/0.6369, allocations: 141.2 kB / 0.8218 GB, free: 3.316 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.238e-05/0.6369, allocations: 30.83 kB / 0.8219 GB, free: 3.281 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 4.083e-05/0.6369, allocations: 102.7 kB / 0.822 GB, free: 3.184 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 2.169e-05/0.637, allocations: 6.109 kB / 0.822 GB, free: 3.18 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.793e-05/0.637, allocations: 18.25 kB / 0.822 GB, free: 3.16 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 8.416e-05/0.6371, allocations: 324.1 kB / 0.8223 GB, free: 2.84 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.231e-05/0.6371, allocations: 14.2 kB / 0.8223 GB, free: 2.836 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.965e-05/0.6372, allocations: 14.92 kB / 0.8223 GB, free: 2.832 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001026/0.6373, allocations: 38.03 kB / 0.8223 GB, free: 2.812 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.6373, allocations: 0.875 kB / 0.8223 GB, free: 2.812 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001403/0.6374, allocations: 68.59 kB / 0.8224 GB, free: 2.77 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.6375, allocations: 7.297 kB / 0.8224 GB, free: 2.77 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.6375, allocations: 1.344 kB / 0.8224 GB, free: 2.77 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.597e-05/0.6375, allocations: 4 kB / 0.8224 GB, free: 2.766 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001067/0.6376, allocations: 10.03 kB / 0.8224 GB, free: 2.766 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.6376, allocations: 4.547 kB / 0.8224 GB, free: 2.762 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.448e-05/0.6376, allocations: 3.062 kB / 0.8224 GB, free: 2.762 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.474e-06/0.6376, allocations: 1.703 kB / 0.8224 GB, free: 2.762 MB / 0.5762 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.325e-05/0.6377, allocations: 117.7 kB / 0.8226 GB, free: 2.641 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.911e-05/0.6377, allocations: 7.922 kB / 0.8226 GB, free: 2.637 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002087/0.6379, allocations: 88.72 kB / 0.8226 GB, free: 2.578 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.6379, allocations: 5.094 kB / 0.8227 GB, free: 2.574 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.6379, allocations: 3.938 kB / 0.8227 GB, free: 2.57 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-06/0.638, allocations: 1.938 kB / 0.8227 GB, free: 2.57 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001707/0.6381, allocations: 190.2 kB / 0.8228 GB, free: 2.363 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.6381, allocations: 1.719 kB / 0.8228 GB, free: 2.363 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.215e-05/0.6382, allocations: 13.62 kB / 0.8229 GB, free: 2.359 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.327e-06/0.6382, allocations: 1.75 kB / 0.8229 GB, free: 2.359 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.122e-05/0.6382, allocations: 4.609 kB / 0.8229 GB, free: 2.355 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.6382, allocations: 1.125 kB / 0.8229 GB, free: 2.355 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/0.6382, allocations: 11.92 kB / 0.8229 GB, free: 2.344 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000165/0.6384, allocations: 171.4 kB / 0.823 GB, free: 2.195 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 3.134e-05/0.6384, allocations: 84.84 kB / 0.8231 GB, free: 2.098 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.73e-05/0.6384, allocations: 0.6562 kB / 0.8231 GB, free: 2.098 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.9e-05/0.6385, allocations: 7.484 kB / 0.8231 GB, free: 2.094 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.235e-05/0.6385, allocations: 7.172 kB / 0.8231 GB, free: 2.09 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.66e-06/0.6385, allocations: 1.969 kB / 0.8231 GB, free: 2.09 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 7.056e-05/0.6386, allocations: 118.3 kB / 0.8232 GB, free: 1.996 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7.1e-08/0.6386, allocations: 1.281 kB / 0.8232 GB, free: 1.996 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003535/0.639, allocations: 60.23 kB / 0.8233 GB, free: 1.984 MB / 0.5762 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006339/0.6396, allocations: 0.767 MB / 0.8241 GB, free: 1.289 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001743/0.6398, allocations: 44.11 kB / 0.8241 GB, free: 1.273 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.6398, allocations: 0 / 0.8241 GB, free: 1.273 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 6.171e-05/0.6398, allocations: 17.97 kB / 0.8241 GB, free: 1.27 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004033/0.6402, allocations: 19.62 kB / 0.8241 GB, free: 1.258 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001631/0.6419, allocations: 1.474 MB / 0.8256 GB, free: 15.97 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003695/0.6422, allocations: 0.6954 MB / 0.8263 GB, free: 15.27 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 4.081e-05/0.6423, allocations: 5.094 kB / 0.8263 GB, free: 15.27 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.477e-05/0.6423, allocations: 35.05 kB / 0.8263 GB, free: 15.24 MB / 0.5919 GB Notification: Performance of SimCode: time 4.01e-07/0.6423, allocations: 0 / 0.8263 GB, free: 15.24 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02834/0.6707, allocations: 3.12 MB / 0.8293 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.885/8.556, allocations: 4 kB / 0.8293 GB, free: 14.73 MB / 0.5919 GB " [Timeout remaining time 651] (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/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_HAM_Examples_GasGapClosed_fmu --startTime=0 --stopTime=7200 --stepSize=2.88 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_HAM_Examples_GasGapClosed.fmu > BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.495401513762772] Failed to read output from testmodel.py, exit status != 0: 8.623619519174099 8.644856327 8.006559217 Calling exit ...