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.001321/0.001321, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001677/0.001677, allocations: 218.2 kB / 22.25 MB, free: 5.125 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.51/1.51, allocations: 230.6 MB / 256 MB, free: 7.988 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.1081/0.1081, allocations: 24.12 MB / 336.6 MB, free: 11.45 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="me",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="me",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.002101/0.002101, allocations: 67.91 kB / 474.1 MB, free: 5.625 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3265/0.3286, allocations: 59.6 MB / 0.5212 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatPump_case_001a): time 0.003201/0.3318, allocations: 2.239 MB / 0.5234 GB, free: 8.996 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003854/0.3322, allocations: 174.3 kB / 0.5235 GB, free: 8.867 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.99e-05/0.3323, allocations: 4.062 kB / 0.5235 GB, free: 8.867 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 8.518e-05/0.3324, allocations: 26.45 kB / 0.5236 GB, free: 8.852 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001477/0.3325, allocations: 59.38 kB / 0.5236 GB, free: 8.809 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001832/0.3327, allocations: 53.08 kB / 0.5237 GB, free: 8.777 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002902/0.333, allocations: 250.8 kB / 0.5239 GB, free: 8.648 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002329/0.3332, allocations: 74.56 kB / 0.524 GB, free: 8.613 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000111/0.3334, allocations: 83.52 kB / 0.5241 GB, free: 8.578 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002188/0.3336, allocations: 109.9 kB / 0.5242 GB, free: 8.52 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.842e-05/0.3336, allocations: 20.59 kB / 0.5242 GB, free: 8.52 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.58e-05/0.3337, allocations: 20.72 kB / 0.5242 GB, free: 8.52 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.948e-05/0.3337, allocations: 46.94 kB / 0.5243 GB, free: 8.488 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001268/0.3338, allocations: 110.9 kB / 0.5244 GB, free: 8.426 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003317/0.3342, allocations: 244 kB / 0.5246 GB, free: 8.328 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.3342, allocations: 0.7812 kB / 0.5246 GB, free: 8.328 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3342, allocations: 0 / 0.5246 GB, free: 8.328 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.464e-06/0.3342, allocations: 1.125 kB / 0.5246 GB, free: 8.328 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.0006322/0.3348, allocations: 424.9 kB / 0.525 GB, free: 7.973 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.656e-05/0.3349, allocations: 9.984 kB / 0.525 GB, free: 7.973 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.633e-05/0.3349, allocations: 55.52 kB / 0.5251 GB, free: 7.922 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.895e-05/0.335, allocations: 25.14 kB / 0.5251 GB, free: 7.91 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001047/0.3351, allocations: 130.3 kB / 0.5252 GB, free: 7.766 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.665e-05/0.3351, allocations: 19.19 kB / 0.5252 GB, free: 7.758 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.344e-05/0.3351, allocations: 23.69 kB / 0.5253 GB, free: 7.75 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000357/0.3355, allocations: 202.5 kB / 0.5255 GB, free: 7.648 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.426e-05/0.3355, allocations: 3.938 kB / 0.5255 GB, free: 7.645 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.046e-05/0.3355, allocations: 10.34 kB / 0.5255 GB, free: 7.637 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.147e-06/0.3355, allocations: 6.312 kB / 0.5255 GB, free: 7.637 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002571/0.3358, allocations: 144.5 kB / 0.5256 GB, free: 7.586 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001062/0.3369, allocations: 0.9024 MB / 0.5265 GB, free: 6.797 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002567/0.3371, allocations: 153.6 kB / 0.5266 GB, free: 6.727 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003383/0.3375, allocations: 129.1 kB / 0.5268 GB, free: 6.688 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.728e-05/0.3375, allocations: 4.078 kB / 0.5268 GB, free: 6.688 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.91e-05/0.3375, allocations: 43.5 kB / 0.5268 GB, free: 6.637 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.442e-06/0.3375, allocations: 0 / 0.5268 GB, free: 6.637 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.001944/0.3394, allocations: 0.5412 MB / 0.5273 GB, free: 6.477 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.436e-05/0.3395, allocations: 58.25 kB / 0.5274 GB, free: 6.41 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.199e-05/0.3396, allocations: 129.5 kB / 0.5275 GB, free: 6.301 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.302e-05/0.3396, allocations: 30.95 kB / 0.5275 GB, free: 6.266 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.255e-05/0.3396, allocations: 149.1 kB / 0.5277 GB, free: 6.133 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.823e-05/0.3397, allocations: 78.03 kB / 0.5278 GB, free: 6.07 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.504e-05/0.3397, allocations: 37.56 kB / 0.5278 GB, free: 6.043 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.841e-05/0.3398, allocations: 322.1 kB / 0.5281 GB, free: 5.727 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.164e-05/0.3399, allocations: 49.67 kB / 0.5281 GB, free: 5.707 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001109/0.34, allocations: 78.52 kB / 0.5282 GB, free: 5.656 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001877/0.3402, allocations: 140.9 kB / 0.5284 GB, free: 5.57 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.3402, allocations: 4 kB / 0.5284 GB, free: 5.566 MB / 382.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0007389/0.3409, allocations: 325.5 kB / 0.5287 GB, free: 5.43 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.921e-05/0.3409, allocations: 5.031 kB / 0.5287 GB, free: 5.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.3409, allocations: 1.469 kB / 0.5287 GB, free: 5.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007473/0.3417, allocations: 190 kB / 0.5289 GB, free: 5.379 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001227/0.3418, allocations: 22.8 kB / 0.5289 GB, free: 5.375 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003733/0.3455, allocations: 3.612 MB / 0.5324 GB, free: 2.223 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.404e-05/0.3456, allocations: 23.44 kB / 0.5324 GB, free: 2.203 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.422e-05/0.3456, allocations: 6.688 kB / 0.5324 GB, free: 2.203 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 9.861e-05/0.3457, allocations: 138.9 kB / 0.5326 GB, free: 2.066 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.546e-05/0.3458, allocations: 9.609 kB / 0.5326 GB, free: 2.062 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007352/0.3465, allocations: 313.3 kB / 0.5329 GB, free: 1.922 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.3465, allocations: 6.359 kB / 0.5329 GB, free: 1.918 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.202e-06/0.3465, allocations: 0 / 0.5329 GB, free: 1.918 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.3465, allocations: 1.641 kB / 0.5329 GB, free: 1.918 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002458/0.3468, allocations: 245.6 kB / 0.5331 GB, free: 1.715 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.3468, allocations: 0 / 0.5331 GB, free: 1.715 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.371e-05/0.3468, allocations: 17.61 kB / 0.5331 GB, free: 1.711 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005846/0.3474, allocations: 178 kB / 0.5333 GB, free: 1.668 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.175e-05/0.3474, allocations: 5.094 kB / 0.5333 GB, free: 1.664 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004061/0.3515, allocations: 3.606 MB / 0.5368 GB, free: 14.52 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.3515, allocations: 0 / 0.5368 GB, free: 14.52 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008006/0.3523, allocations: 403.2 kB / 0.5372 GB, free: 14.28 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.567e-05/0.3523, allocations: 16.22 kB / 0.5372 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.517e-05/0.3523, allocations: 1.891 kB / 0.5372 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.414e-05/0.3524, allocations: 5.219 kB / 0.5372 GB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.875e-05/0.3525, allocations: 23.08 kB / 0.5373 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.518e-06/0.3525, allocations: 3.406 kB / 0.5373 GB, free: 14.25 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.512e-05/0.3525, allocations: 100.6 kB / 0.5374 GB, free: 14.17 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3525, allocations: 0 / 0.5374 GB, free: 14.17 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005813/0.3531, allocations: 80.78 kB / 0.5374 GB, free: 14.15 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.001121/0.3542, allocations: 0.9301 MB / 0.5383 GB, free: 13.38 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007118/0.3549, allocations: 406.3 kB / 0.5387 GB, free: 13.09 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.355, allocations: 1.062 kB / 0.5387 GB, free: 13.09 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004883/0.3554, allocations: 348.4 kB / 0.5391 GB, free: 12.82 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002718/0.3557, allocations: 18.11 kB / 0.5391 GB, free: 12.81 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001627/0.3573, allocations: 0.529 MB / 0.5396 GB, free: 12.52 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004103/0.3577, allocations: 0.7391 MB / 0.5403 GB, free: 11.82 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.108e-05/0.3578, allocations: 5.156 kB / 0.5403 GB, free: 11.81 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.765e-05/0.3579, allocations: 47.92 kB / 0.5404 GB, free: 11.77 MB / 398.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3579, allocations: 7.938 kB / 0.5404 GB, free: 11.77 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03903/0.3969, allocations: 4.916 MB / 0.5452 GB, free: 10.63 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.85/13.25, allocations: 5.438 kB / 0.5452 GB, free: 10.63 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.096371066058055] Failed to read output from testmodel.py, exit status != 0: 13.368415585020557 13.39570514 13.056575353 Calling exit ...