Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.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.001785/0.001785, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.001973/0.001973, allocations: 220.1 kB / 23.03 MB, free: 4.922 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.544/1.544, allocations: 230.6 MB / 256.8 MB, free: 7.816 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.1035/0.1035, allocations: 22.94 MB / 336.2 MB, free: 12.4 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) Running command: "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_003",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_003",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.002117/0.002117, allocations: 75.83 kB / 472.2 MB, free: 7.859 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3536/0.3557, allocations: 59.29 MB / 0.519 GB, free: 10.58 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Liquid/HE_LiquidLiquid_1vol.mo:4:3-4:45:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Liquid/HE_LiquidLiquid_1vol.mo:4:3-4:45:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer \"system\" component but an inner \"system\" component is not defined. Drag AES.ProcessComponents.Thermal.System_settings.System_liquid into your model to specify the working fluid properties. Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003): time 0.07133/0.427, allocations: 23.09 MB / 0.5416 GB, free: 2.324 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00133/0.4284, allocations: 409.9 kB / 0.542 GB, free: 2.035 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000195/0.4286, allocations: 16.47 kB / 0.542 GB, free: 2.027 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001032/0.4287, allocations: 40.75 kB / 0.542 GB, free: 2.004 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003635/0.429, allocations: 151.7 kB / 0.5421 GB, free: 1.898 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002314/0.4293, allocations: 87.09 kB / 0.5422 GB, free: 1.848 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003523/0.4296, allocations: 425.2 kB / 0.5426 GB, free: 1.633 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002758/0.4299, allocations: 218.8 kB / 0.5428 GB, free: 1.531 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000231/0.4301, allocations: 200.5 kB / 0.543 GB, free: 1.449 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002541/0.4304, allocations: 188.7 kB / 0.5432 GB, free: 1.359 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.75e-05/0.4304, allocations: 28.38 kB / 0.5432 GB, free: 1.359 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001412/0.4306, allocations: 61.64 kB / 0.5433 GB, free: 1.352 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.701e-05/0.4306, allocations: 73.22 kB / 0.5434 GB, free: 1.301 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001457/0.4308, allocations: 146.3 kB / 0.5435 GB, free: 1.23 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004859/0.4313, allocations: 418 kB / 0.5439 GB, free: 1.062 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.4313, allocations: 0 / 0.5439 GB, free: 1.062 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.4313, allocations: 0 / 0.5439 GB, free: 1.062 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.965e-06/0.4313, allocations: 0 / 0.5439 GB, free: 1.062 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: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.0009391/0.4322, allocations: 0.5658 MB / 0.5445 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/0.4323, allocations: 11.64 kB / 0.5445 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.138e-05/0.4323, allocations: 7.891 kB / 0.5445 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.644e-05/0.4323, allocations: 58.66 kB / 0.5445 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.594e-05/0.4324, allocations: 38.95 kB / 0.5446 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004048/0.4328, allocations: 256.9 kB / 0.5448 GB, free: 340 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.44e-05/0.4328, allocations: 18.53 kB / 0.5448 GB, free: 332 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.788e-05/0.4329, allocations: 24.19 kB / 0.5449 GB, free: 324 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000474/0.4334, allocations: 278.7 kB / 0.5451 GB, free: 180 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.221e-05/0.4334, allocations: 5.031 kB / 0.5451 GB, free: 176 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.68e-05/0.4334, allocations: 9.312 kB / 0.5451 GB, free: 168 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.738e-06/0.4334, allocations: 6.406 kB / 0.5451 GB, free: 168 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003688/0.4338, allocations: 206.1 kB / 0.5453 GB, free: 92 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00147/0.4352, allocations: 0.8062 MB / 0.5461 GB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003706/0.4356, allocations: 151.9 kB / 0.5463 GB, free: 15.41 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002187/0.4358, allocations: 97.5 kB / 0.5464 GB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.455e-05/0.4359, allocations: 8.641 kB / 0.5464 GB, free: 15.33 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.455e-05/0.4359, allocations: 31.41 kB / 0.5464 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003276/0.4362, allocations: 57.61 kB / 0.5465 GB, free: 15.24 MB / 398.1 MB Notification: Performance of pre-optimization done (n=18): time 4.258e-06/0.4362, allocations: 3.984 kB / 0.5465 GB, free: 15.24 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001443/0.4377, allocations: 365.4 kB / 0.5468 GB, free: 14.93 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.53e-05/0.4377, allocations: 51.41 kB / 0.5469 GB, free: 14.86 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003584/0.4381, allocations: 303.6 kB / 0.5472 GB, free: 14.59 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.966e-05/0.4381, allocations: 26.36 kB / 0.5472 GB, free: 14.55 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000145/0.4382, allocations: 188.4 kB / 0.5474 GB, free: 14.38 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.285e-05/0.4383, allocations: 72.88 kB / 0.5474 GB, free: 14.31 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.415e-05/0.4384, allocations: 45.41 kB / 0.5475 GB, free: 14.27 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001698/0.4386, allocations: 344.9 kB / 0.5478 GB, free: 13.93 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001444/0.4387, allocations: 63.78 kB / 0.5479 GB, free: 13.88 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001604/0.4389, allocations: 84.73 kB / 0.5479 GB, free: 13.8 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00435/0.4432, allocations: 0.6917 MB / 0.5486 GB, free: 13.29 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.4432, allocations: 4 kB / 0.5486 GB, free: 13.29 MB / 398.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0009092/0.4441, allocations: 304.1 kB / 0.5489 GB, free: 13.02 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/0.4442, allocations: 11.94 kB / 0.5489 GB, free: 13.01 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.4442, allocations: 4.031 kB / 0.5489 GB, free: 13 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008247/0.445, allocations: 109.1 kB / 0.549 GB, free: 12.92 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002782/0.4453, allocations: 46.39 kB / 0.5491 GB, free: 12.89 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004952/0.4458, allocations: 0.5755 MB / 0.5496 GB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002368/0.446, allocations: 4 kB / 0.5496 GB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.699e-05/0.446, allocations: 13.97 kB / 0.5497 GB, free: 12.28 MB / 398.1 MB Warning: Assuming fixed start value for the following 2 variables: HE.Tho:VARIABLE(min = 0.0 start = 339.5666268514094 unit = \"K\" fixed = true nominal = 300.0 ) type: Real HE.Tco:VARIABLE(min = 0.0 start = 299.958408982322 unit = \"K\" fixed = true nominal = 300.0 ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002843/0.4463, allocations: 159.4 kB / 0.5498 GB, free: 12.12 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.622e-05/0.4464, allocations: 31.81 kB / 0.5498 GB, free: 12.09 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009354/0.4473, allocations: 346.1 kB / 0.5502 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.244e-06/0.4473, allocations: 4 kB / 0.5502 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.4473, allocations: 4.75 kB / 0.5502 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.4473, allocations: 1.453 kB / 0.5502 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001471/0.4488, allocations: 0.6657 MB / 0.5508 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.4488, allocations: 0.8594 kB / 0.5508 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002665/0.4491, allocations: 48.38 kB / 0.5509 GB, free: 11.1 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005854/0.4497, allocations: 101.5 kB / 0.551 GB, free: 11.02 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.677e-05/0.4497, allocations: 11.19 kB / 0.551 GB, free: 11.01 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004771/0.4502, allocations: 0.5927 MB / 0.5516 GB, free: 10.4 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.4502, allocations: 0 / 0.5516 GB, free: 10.4 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00106/0.4512, allocations: 0.5048 MB / 0.5521 GB, free: 9.91 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001095/0.4513, allocations: 38.31 kB / 0.5521 GB, free: 9.875 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.163e-05/0.4514, allocations: 4 kB / 0.5521 GB, free: 9.871 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001768/0.4516, allocations: 8.797 kB / 0.5521 GB, free: 9.863 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.123e-05/0.4516, allocations: 21.03 kB / 0.5521 GB, free: 9.852 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.065e-05/0.4517, allocations: 8.703 kB / 0.5521 GB, free: 9.844 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002821/0.4519, allocations: 215.2 kB / 0.5523 GB, free: 9.66 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4519, allocations: 0 / 0.5523 GB, free: 9.66 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004342/0.4524, allocations: 75.89 kB / 0.5524 GB, free: 9.586 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (HE.Tho,HE.Tco) * 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 (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001169/0.4535, allocations: 1.02 MB / 0.5534 GB, free: 8.562 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005481/0.4541, allocations: 194.4 kB / 0.5536 GB, free: 8.395 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.4541, allocations: 0 / 0.5536 GB, free: 8.395 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000263/0.4544, allocations: 116.7 kB / 0.5537 GB, free: 8.293 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000472/0.4548, allocations: 65.64 kB / 0.5538 GB, free: 8.242 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004921/0.4598, allocations: 3.008 MB / 0.5567 GB, free: 5.348 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001853/0.4599, allocations: 175.6 kB / 0.5569 GB, free: 5.199 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002217/0.4602, allocations: 47.89 kB / 0.5569 GB, free: 5.164 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001877/0.4603, allocations: 116.1 kB / 0.557 GB, free: 5.062 MB / 398.1 MB Notification: Performance of SimCode: time 6.21e-07/0.4603, allocations: 4 kB / 0.557 GB, free: 5.059 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03251/0.4929, allocations: 7.635 MB / 0.5645 GB, free: 14.37 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.48/13.97, allocations: 18.7 kB / 0.5645 GB, free: 14.35 MB / 414.1 MB " [Timeout remaining time 646] (rm -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_003_fmu --startTime=0 --stopTime=1000 --stepSize=2 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_003.fmu > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.86119652306661] Failed to read output from testmodel.py, exit status != 0: 14.161475277971476 14.182233075 13.746211278 Calling exit ...