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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001358/0.001358, allocations: 116.8 kB / 17.16 MB, free: 5.895 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001328/0.001328, allocations: 212 kB / 20.13 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.412/1.412, allocations: 230.6 MB / 253.5 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.002406/0.002406, allocations: 282.5 kB / 309.8 MB, free: 3.562 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 1.017/1.017, allocations: 180.6 MB / 0.5338 GB, free: 12.84 MB / 398.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.HAM.Examples.GasGapClosed,fileNamePrefix="BuildingSystems_BuildingSystems_HAM_Examples_GasGapClosed",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.HAM.Examples.GasGapClosed,fileNamePrefix="BuildingSystems_BuildingSystems_HAM_Examples_GasGapClosed",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: NcDataReader2 requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: BuildingSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002765/0.002765, allocations: 105.7 kB / 0.7346 GB, free: 2.586 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4866/0.4893, allocations: 95.33 MB / 0.8277 GB, free: 3.07 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.HAM.Examples.GasGapClosed): time 0.002397/0.4917, allocations: 1.77 MB / 0.8295 GB, free: 1.836 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001262/0.493, allocations: 1.117 MB / 0.8305 GB, free: 1.062 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.498e-05/0.4931, allocations: 1.281 kB / 0.8305 GB, free: 1.062 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 4.487e-05/0.4931, allocations: 14 kB / 0.8306 GB, free: 1.055 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 8.587e-05/0.4932, allocations: 26.61 kB / 0.8306 GB, free: 1.035 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004321/0.4936, allocations: 181.7 kB / 0.8308 GB, free: 0.9531 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0001311/0.4937, allocations: 101.5 kB / 0.8309 GB, free: 0.8984 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001055/0.4939, allocations: 19.2 kB / 0.8309 GB, free: 0.8906 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001222/0.494, allocations: 44.73 kB / 0.8309 GB, free: 0.8711 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 8.042e-05/0.4941, allocations: 45.55 kB / 0.831 GB, free: 0.8477 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.58e-05/0.4941, allocations: 7.969 kB / 0.831 GB, free: 0.8477 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003308/0.4944, allocations: 201.9 kB / 0.8312 GB, free: 0.793 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 1.68e-05/0.4944, allocations: 14.7 kB / 0.8312 GB, free: 0.7812 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 3.856e-05/0.4945, allocations: 42.44 kB / 0.8312 GB, free: 0.7578 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0002819/0.4947, allocations: 213 kB / 0.8314 GB, free: 0.6875 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.4947, allocations: 0 / 0.8314 GB, free: 0.6875 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.082e-06/0.4947, allocations: 0 / 0.8314 GB, free: 0.6875 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.78e-06/0.4948, allocations: 0 / 0.8314 GB, free: 0.6875 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.0004519/0.4952, allocations: 428.8 kB / 0.8318 GB, free: 280 kB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.324e-05/0.4952, allocations: 19.09 kB / 0.8318 GB, free: 272 kB / 0.5762 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.754e-05/0.4953, allocations: 4.125 kB / 0.8318 GB, free: 268 kB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.149e-05/0.4953, allocations: 37.42 kB / 0.8319 GB, free: 224 kB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001328/0.4954, allocations: 20.81 kB / 0.8319 GB, free: 220 kB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001582/0.4956, allocations: 194.4 kB / 0.8321 GB, free: 0 / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.41e-05/0.4956, allocations: 11.03 kB / 0.8321 GB, free: 15.99 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.185e-05/0.4956, allocations: 3 kB / 0.8321 GB, free: 15.99 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001736/0.4958, allocations: 75.88 kB / 0.8322 GB, free: 15.94 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.4958, allocations: 4 kB / 0.8322 GB, free: 15.93 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.959e-06/0.4958, allocations: 0 / 0.8322 GB, free: 15.93 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.079e-06/0.4958, allocations: 3.234 kB / 0.8322 GB, free: 15.93 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001238/0.4959, allocations: 42.09 kB / 0.8322 GB, free: 15.92 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005319/0.4964, allocations: 387 kB / 0.8326 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001199/0.4966, allocations: 44.34 kB / 0.8326 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.776e-05/0.4966, allocations: 19.72 kB / 0.8327 GB, free: 15.51 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001209/0.4967, allocations: 91.53 kB / 0.8327 GB, free: 15.41 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.936e-05/0.4968, allocations: 34.56 kB / 0.8328 GB, free: 15.37 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.4968, allocations: 0 / 0.8328 GB, free: 15.37 MB / 0.5919 GB Notification: Performance of matching and sorting (n=3): time 0.0002764/0.4971, allocations: 90.83 kB / 0.8329 GB, free: 15.32 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.605e-05/0.4971, allocations: 60.05 kB / 0.8329 GB, free: 15.25 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001292/0.4972, allocations: 144.3 kB / 0.8331 GB, free: 15.13 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.98e-05/0.4972, allocations: 25.7 kB / 0.8331 GB, free: 15.1 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 6.631e-05/0.4973, allocations: 102.1 kB / 0.8332 GB, free: 15 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 1.837e-05/0.4973, allocations: 9.938 kB / 0.8332 GB, free: 15 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.725e-05/0.4974, allocations: 16.52 kB / 0.8332 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001373/0.4975, allocations: 317.8 kB / 0.8335 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.288e-05/0.4976, allocations: 13.94 kB / 0.8335 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.497e-05/0.4976, allocations: 18.92 kB / 0.8335 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001077/0.4977, allocations: 45.91 kB / 0.8336 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.4977, allocations: 0 / 0.8336 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001494/0.4979, allocations: 69.06 kB / 0.8336 GB, free: 14.58 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.376e-05/0.4979, allocations: 9.234 kB / 0.8337 GB, free: 14.58 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.256e-06/0.4979, allocations: 0 / 0.8337 GB, free: 14.58 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.15e-05/0.4979, allocations: 0 / 0.8337 GB, free: 14.58 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001066/0.498, allocations: 11.34 kB / 0.8337 GB, free: 14.58 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.011e-06/0.498, allocations: 7.938 kB / 0.8337 GB, free: 14.57 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.385e-05/0.498, allocations: 2.344 kB / 0.8337 GB, free: 14.57 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.743e-06/0.4981, allocations: 3.234 kB / 0.8337 GB, free: 14.57 MB / 0.5919 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 8.702e-05/0.4981, allocations: 116.7 kB / 0.8338 GB, free: 14.46 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.131e-05/0.4982, allocations: 8.312 kB / 0.8338 GB, free: 14.45 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002075/0.4984, allocations: 91.28 kB / 0.8339 GB, free: 14.39 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.4984, allocations: 0.5625 kB / 0.8339 GB, free: 14.39 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.616e-06/0.4984, allocations: 9.328 kB / 0.8339 GB, free: 14.38 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.4984, allocations: 4.797 kB / 0.8339 GB, free: 14.38 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002013/0.4986, allocations: 184.2 kB / 0.8341 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.4986, allocations: 0 / 0.8341 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.118e-05/0.4987, allocations: 11.75 kB / 0.8341 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.582e-06/0.4987, allocations: 0 / 0.8341 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.724e-06/0.4987, allocations: 1.844 kB / 0.8341 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.4987, allocations: 0 / 0.8341 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.4987, allocations: 4.734 kB / 0.8341 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002038/0.4989, allocations: 181.4 kB / 0.8343 GB, free: 14.02 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 4.851e-05/0.4989, allocations: 81.77 kB / 0.8343 GB, free: 13.92 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.653e-05/0.499, allocations: 7.406 kB / 0.8343 GB, free: 13.92 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.418e-05/0.499, allocations: 4.656 kB / 0.8344 GB, free: 13.91 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.81e-05/0.4991, allocations: 9.906 kB / 0.8344 GB, free: 13.91 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.378e-06/0.4991, allocations: 0 / 0.8344 GB, free: 13.91 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 7.488e-05/0.4991, allocations: 110 kB / 0.8345 GB, free: 13.83 MB / 0.5919 GB Notification: Performance of sort global known variables: time 8e-08/0.4991, allocations: 0 / 0.8345 GB, free: 13.83 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0002993/0.4994, allocations: 71.14 kB / 0.8345 GB, free: 13.8 MB / 0.5919 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.0006376/0.5001, allocations: 0.7669 MB / 0.8353 GB, free: 13.11 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0001525/0.5002, allocations: 37.31 kB / 0.8353 GB, free: 13.1 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.382e-06/0.5002, allocations: 0 / 0.8353 GB, free: 13.1 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 6.462e-05/0.5003, allocations: 23.28 kB / 0.8353 GB, free: 13.09 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002631/0.5006, allocations: 19.38 kB / 0.8354 GB, free: 13.08 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001602/0.5022, allocations: 1.499 MB / 0.8368 GB, free: 11.77 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003216/0.5025, allocations: 0.691 MB / 0.8375 GB, free: 11.07 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 3.776e-05/0.5025, allocations: 14.64 kB / 0.8375 GB, free: 11.07 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.095e-05/0.5026, allocations: 24.33 kB / 0.8375 GB, free: 11.05 MB / 0.5919 GB Notification: Performance of SimCode: time 2.9e-07/0.5026, allocations: 0 / 0.8375 GB, free: 11.05 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01906/0.5216, allocations: 3.239 MB / 0.8407 GB, free: 10.51 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.866/8.388, allocations: 17.78 kB / 0.8407 GB, free: 10.5 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.211726923007518] Failed to read output from testmodel.py, exit status != 0: 8.513093504006974 8.529695777 8.031864034 Calling exit ...