Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001a.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.001309/0.001309, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.001387/0.001387, allocations: 214.3 kB / 23.04 MB, free: 5.078 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.486/1.486, allocations: 230.6 MB / 256.8 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1027/0.1027, allocations: 22.93 MB / 336.2 MB, free: 12.61 MB / 270.1 MB " [Timeout remaining time 180] Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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) Ignoring simflag -noemit -variableFilter=.* since it seems broken on HelloWorld Running command: "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.HeatPump_case_001a,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatPump_case_001a",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.HeatPump_case_001a,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatPump_case_001a",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: AES 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.002115/0.002115, allocations: 65.47 kB / 473.1 MB, free: 7.227 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3424/0.3445, allocations: 59.29 MB / 0.5199 GB, free: 11.08 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatPump_case_001a): time 0.004026/0.3486, allocations: 2.244 MB / 0.5221 GB, free: 9.535 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004452/0.349, allocations: 176.8 kB / 0.5222 GB, free: 9.402 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.421e-05/0.3491, allocations: 3.625 kB / 0.5222 GB, free: 9.402 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 9.014e-05/0.3492, allocations: 27.22 kB / 0.5223 GB, free: 9.387 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001437/0.3493, allocations: 59.86 kB / 0.5223 GB, free: 9.344 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001621/0.3495, allocations: 53.64 kB / 0.5224 GB, free: 9.312 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002326/0.3497, allocations: 250 kB / 0.5226 GB, free: 9.184 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001868/0.3499, allocations: 74.34 kB / 0.5227 GB, free: 9.148 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.342e-05/0.35, allocations: 86.62 kB / 0.5228 GB, free: 9.109 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001597/0.3502, allocations: 102.3 kB / 0.5229 GB, free: 9.059 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.626e-05/0.3502, allocations: 21.44 kB / 0.5229 GB, free: 9.059 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.637e-05/0.3502, allocations: 20.38 kB / 0.5229 GB, free: 9.059 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.702e-05/0.3503, allocations: 46.55 kB / 0.523 GB, free: 9.027 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001026/0.3504, allocations: 114.2 kB / 0.5231 GB, free: 8.961 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002905/0.3507, allocations: 244.5 kB / 0.5233 GB, free: 8.863 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.3507, allocations: 0 / 0.5233 GB, free: 8.863 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3507, allocations: 4 kB / 0.5233 GB, free: 8.859 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.181e-05/0.3507, allocations: 1.188 kB / 0.5233 GB, free: 8.859 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.0005542/0.3512, allocations: 419 kB / 0.5237 GB, free: 8.512 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/0.3513, allocations: 10.89 kB / 0.5237 GB, free: 8.512 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.849e-05/0.3513, allocations: 6.938 kB / 0.5237 GB, free: 8.512 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.653e-05/0.3513, allocations: 64 kB / 0.5238 GB, free: 8.453 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.807e-05/0.3514, allocations: 28.67 kB / 0.5238 GB, free: 8.438 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.673e-05/0.3515, allocations: 127.3 kB / 0.5239 GB, free: 8.297 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.029e-05/0.3515, allocations: 18.53 kB / 0.5239 GB, free: 8.289 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.096e-05/0.3515, allocations: 23.72 kB / 0.524 GB, free: 8.281 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003254/0.3518, allocations: 206.3 kB / 0.5242 GB, free: 8.176 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.3519, allocations: 0 / 0.5242 GB, free: 8.176 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.873e-05/0.3519, allocations: 6.188 kB / 0.5242 GB, free: 8.172 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.35e-05/0.3519, allocations: 6 kB / 0.5242 GB, free: 8.172 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002412/0.3521, allocations: 144.2 kB / 0.5243 GB, free: 8.121 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000992/0.3531, allocations: 0.9102 MB / 0.5252 GB, free: 7.324 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002586/0.3534, allocations: 155.9 kB / 0.5253 GB, free: 7.254 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002963/0.3537, allocations: 128.2 kB / 0.5255 GB, free: 7.215 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.062e-05/0.3537, allocations: 10.16 kB / 0.5255 GB, free: 7.207 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.316e-05/0.3537, allocations: 39.59 kB / 0.5255 GB, free: 7.16 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.313e-06/0.3537, allocations: 1.219 kB / 0.5255 GB, free: 7.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.001994/0.3557, allocations: 0.5365 MB / 0.526 GB, free: 7.004 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.387e-05/0.3558, allocations: 62.44 kB / 0.5261 GB, free: 6.934 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001102/0.3559, allocations: 125.1 kB / 0.5262 GB, free: 6.828 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.467e-05/0.3559, allocations: 29.7 kB / 0.5263 GB, free: 6.793 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.913e-05/0.356, allocations: 147.8 kB / 0.5264 GB, free: 6.664 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.053e-05/0.356, allocations: 77.06 kB / 0.5265 GB, free: 6.602 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.817e-05/0.3561, allocations: 37.39 kB / 0.5265 GB, free: 6.574 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.004e-05/0.3561, allocations: 324.1 kB / 0.5268 GB, free: 6.258 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.231e-05/0.3562, allocations: 50.22 kB / 0.5269 GB, free: 6.238 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001053/0.3563, allocations: 82.22 kB / 0.5269 GB, free: 6.184 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000187/0.3565, allocations: 129.8 kB / 0.5271 GB, free: 6.105 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.3565, allocations: 0 / 0.5271 GB, free: 6.105 MB / 382.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0007658/0.3573, allocations: 331.1 kB / 0.5274 GB, free: 5.961 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.099e-05/0.3573, allocations: 8.156 kB / 0.5274 GB, free: 5.961 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.3573, allocations: 1.062 kB / 0.5274 GB, free: 5.961 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006927/0.358, allocations: 184.9 kB / 0.5276 GB, free: 5.914 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001114/0.3581, allocations: 18.12 kB / 0.5276 GB, free: 5.914 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003577/0.3617, allocations: 3.616 MB / 0.5311 GB, free: 2.754 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.547e-05/0.3618, allocations: 20.09 kB / 0.5311 GB, free: 2.738 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.493e-05/0.3618, allocations: 4.531 kB / 0.5311 GB, free: 2.738 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,7), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001253/0.3619, allocations: 135.3 kB / 0.5313 GB, free: 2.605 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.621e-05/0.3619, allocations: 10.42 kB / 0.5313 GB, free: 2.602 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000731/0.3627, allocations: 317.3 kB / 0.5316 GB, free: 2.457 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.3627, allocations: 3.172 kB / 0.5316 GB, free: 2.457 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.084e-06/0.3627, allocations: 4 kB / 0.5316 GB, free: 2.453 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.3627, allocations: 1.406 kB / 0.5316 GB, free: 2.453 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002824/0.363, allocations: 240.8 kB / 0.5318 GB, free: 2.254 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.363, allocations: 1.094 kB / 0.5318 GB, free: 2.254 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.525e-05/0.363, allocations: 16.14 kB / 0.5318 GB, free: 2.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000615/0.3636, allocations: 187.8 kB / 0.532 GB, free: 2.199 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.329e-05/0.3636, allocations: 5.062 kB / 0.532 GB, free: 2.195 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003596/0.3672, allocations: 3.602 MB / 0.5355 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.3672, allocations: 0.9375 kB / 0.5355 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008214/0.3681, allocations: 398.3 kB / 0.5359 GB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.903e-05/0.3681, allocations: 25.59 kB / 0.5359 GB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.47e-05/0.3681, allocations: 1.406 kB / 0.5359 GB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.093e-05/0.3682, allocations: 4 kB / 0.5359 GB, free: 14.79 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.141e-05/0.3682, allocations: 22.59 kB / 0.536 GB, free: 14.79 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.024e-05/0.3683, allocations: 8.344 kB / 0.536 GB, free: 14.78 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001149/0.3684, allocations: 102.9 kB / 0.5361 GB, free: 14.7 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3684, allocations: 0 / 0.5361 GB, free: 14.7 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005751/0.3689, allocations: 80.88 kB / 0.5361 GB, free: 14.68 MB / 398.1 MB 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 (6): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,7), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001127/0.3701, allocations: 0.9221 MB / 0.537 GB, free: 13.91 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007598/0.3708, allocations: 400.4 kB / 0.5374 GB, free: 13.63 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.3708, allocations: 0 / 0.5374 GB, free: 13.63 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005664/0.3714, allocations: 360.3 kB / 0.5378 GB, free: 13.35 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002844/0.3717, allocations: 20.17 kB / 0.5378 GB, free: 13.34 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001587/0.3733, allocations: 0.5237 MB / 0.5383 GB, free: 13.05 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004027/0.3737, allocations: 0.7393 MB / 0.539 GB, free: 12.35 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.252e-05/0.3737, allocations: 5.688 kB / 0.539 GB, free: 12.34 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.837e-05/0.3738, allocations: 48.17 kB / 0.5391 GB, free: 12.31 MB / 398.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3738, allocations: 3.938 kB / 0.5391 GB, free: 12.3 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03072/0.4045, allocations: 4.955 MB / 0.5439 GB, free: 11.34 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.86/13.26, allocations: 13.84 kB / 0.5439 GB, free: 11.33 MB / 398.1 MB " [Timeout remaining time 647] (rm -f AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001a.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001a.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001a.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001a.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_HeatPump_case_001a_fmu --startTime=0 --stopTime=10000 --stepSize=1 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_HeatPump_case_001a.fmu > AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001a.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.207364849979058] Failed to read output from testmodel.py, exit status != 0: 13.434134775015991 13.44908791 13.0950468 Calling exit ...