Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.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.000976/0.000976, allocations: 72.52 kB / 19.95 MB, free: 4.613 MB / 18.57 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.0007789/0.0007789, allocations: 169.2 kB / 23.23 MB, free: 1.332 MB / 18.57 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 0.9024/0.9024, allocations: 177.1 MB / 203.5 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] 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.0601/0.0601, allocations: 18.13 MB / 278.1 MB, free: 11.54 MB / 266.7 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.Tuning_brushup.MSL_electrical_thermal_control,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_control",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_control",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.804e-06/1.804e-06, allocations: 0 / 415.1 MB, free: 12.71 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.646e-05/1.827e-05, allocations: 2.281 kB / 415.1 MB, free: 12.71 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control): time 0.002604/0.002622, allocations: 2.972 MB / 418 MB, free: 10.79 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001037/0.003659, allocations: 0.9086 MB / 418.9 MB, free: 10.16 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001734/0.003832, allocations: 14.72 kB / 419 MB, free: 10.15 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001666/0.003999, allocations: 64.14 kB / 419 MB, free: 10.11 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001987/0.004198, allocations: 112.8 kB / 419.1 MB, free: 10.02 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000291/0.004489, allocations: 195 kB / 419.3 MB, free: 9.914 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003196/0.004808, allocations: 490.2 kB / 419.8 MB, free: 9.656 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002027/0.005011, allocations: 148.1 kB / 419.9 MB, free: 9.574 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001133/0.005124, allocations: 155.6 kB / 420.1 MB, free: 9.504 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001447/0.005269, allocations: 131.4 kB / 420.2 MB, free: 9.453 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 4.224e-05/0.005311, allocations: 40 kB / 420.3 MB, free: 9.453 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.669e-05/0.005348, allocations: 39.06 kB / 420.3 MB, free: 9.453 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 4.272e-05/0.005391, allocations: 87.84 kB / 420.4 MB, free: 9.391 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 8.048e-05/0.005471, allocations: 132.5 kB / 420.5 MB, free: 9.328 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003715/0.005843, allocations: 479.2 kB / 421 MB, free: 9.125 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.954e-06/0.005844, allocations: 0 / 421 MB, free: 9.125 MB / 330.7 MB Notification: Performance of FrontEnd: time 8.42e-07/0.005845, allocations: 0 / 421 MB, free: 9.125 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.691e-06/0.005851, allocations: 1.219 kB / 421 MB, free: 9.125 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.0006401/0.006491, allocations: 0.6265 MB / 421.6 MB, free: 8.652 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.00653, allocations: 10.95 kB / 421.6 MB, free: 8.652 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.616e-05/0.006586, allocations: 70.47 kB / 421.7 MB, free: 8.594 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.508e-05/0.006642, allocations: 51.97 kB / 421.7 MB, free: 8.566 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003046/0.006946, allocations: 270.3 kB / 422 MB, free: 8.344 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.181e-05/0.006968, allocations: 27.41 kB / 422 MB, free: 8.328 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.042e-05/0.007008, allocations: 35.56 kB / 422.1 MB, free: 8.316 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000437/0.007445, allocations: 451.8 kB / 422.5 MB, free: 8.039 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.521e-05/0.007461, allocations: 1.031 kB / 422.5 MB, free: 8.039 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.416e-05/0.007485, allocations: 24.84 kB / 422.5 MB, free: 8.02 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.356e-06/0.007493, allocations: 8.281 kB / 422.5 MB, free: 8.02 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003404/0.007834, allocations: 250.8 kB / 422.8 MB, free: 7.93 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001182/0.009015, allocations: 1.125 MB / 423.9 MB, free: 7.148 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004592/0.009474, allocations: 275.3 kB / 424.2 MB, free: 7.031 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001549/0.009629, allocations: 114.1 kB / 424.3 MB, free: 6.984 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.659e-05/0.009656, allocations: 4.547 kB / 424.3 MB, free: 6.984 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.882e-05/0.009675, allocations: 42.3 kB / 424.3 MB, free: 6.938 MB / 330.7 MB Notification: Performance of pre-optimization done (n=27): time 1.293e-06/0.009676, allocations: 0 / 424.3 MB, free: 6.938 MB / 330.7 MB Notification: Performance of matching and sorting (n=27): time 0.0004848/0.01016, allocations: 326.4 kB / 424.7 MB, free: 6.801 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.081e-05/0.01019, allocations: 110.3 kB / 424.8 MB, free: 6.672 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001847/0.01038, allocations: 271.2 kB / 425 MB, free: 6.512 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.717e-05/0.01039, allocations: 32.77 kB / 425.1 MB, free: 6.477 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.019e-05/0.01048, allocations: 217.9 kB / 425.3 MB, free: 6.297 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.67e-05/0.01053, allocations: 96.88 kB / 425.4 MB, free: 6.219 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.04e-05/0.0106, allocations: 60.28 kB / 425.4 MB, free: 6.18 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.624e-05/0.01065, allocations: 340.1 kB / 425.8 MB, free: 5.855 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001186/0.01077, allocations: 87.48 kB / 425.8 MB, free: 5.82 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001501/0.01092, allocations: 212.3 kB / 426.1 MB, free: 5.645 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002667/0.01118, allocations: 246.4 kB / 426.3 MB, free: 5.496 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.01118, allocations: 1.031 kB / 426.3 MB, free: 5.496 MB / 330.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0003239/0.01151, allocations: 305.2 kB / 426.6 MB, free: 5.355 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.286e-05/0.01152, allocations: 8.062 kB / 426.6 MB, free: 5.355 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.01153, allocations: 3.5 kB / 426.6 MB, free: 5.355 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.444e-05/0.01154, allocations: 2.656 kB / 426.6 MB, free: 5.355 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000185/0.01173, allocations: 71.2 kB / 426.7 MB, free: 5.348 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.897e-06/0.01174, allocations: 3.688 kB / 426.7 MB, free: 5.348 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.101e-05/0.01183, allocations: 32.88 kB / 426.7 MB, free: 5.328 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.968e-05/0.01185, allocations: 9.016 kB / 426.7 MB, free: 5.328 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000147/0.01199, allocations: 185.7 kB / 426.9 MB, free: 5.199 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001252/0.01212, allocations: 202.7 kB / 427.1 MB, free: 5.023 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002022/0.01232, allocations: 213.2 kB / 427.3 MB, free: 4.887 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.142e-06/0.01232, allocations: 3.469 kB / 427.3 MB, free: 4.887 MB / 330.7 MB Notification: Performance of matching and sorting (n=36) (initialization_lambda0): time 0.0002747/0.0126, allocations: 278.6 kB / 427.6 MB, free: 4.754 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.624e-06/0.01261, allocations: 10.06 kB / 427.6 MB, free: 4.75 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.004e-06/0.01261, allocations: 1.188 kB / 427.6 MB, free: 4.75 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.536e-06/0.01261, allocations: 8.141 kB / 427.6 MB, free: 4.746 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001365/0.01275, allocations: 66.25 kB / 427.7 MB, free: 4.738 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.677e-06/0.01275, allocations: 3.031 kB / 427.7 MB, free: 4.738 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.493e-05/0.01283, allocations: 29.53 kB / 427.7 MB, free: 4.719 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.081e-05/0.01284, allocations: 12.06 kB / 427.7 MB, free: 4.715 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 36 * 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.148e-05/0.0129, allocations: 203.3 kB / 427.9 MB, free: 4.516 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.186e-05/0.01293, allocations: 35.19 kB / 427.9 MB, free: 4.496 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003289/0.01326, allocations: 271.3 kB / 428.2 MB, free: 4.371 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.01326, allocations: 3.312 kB / 428.2 MB, free: 4.371 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.01327, allocations: 1.953 kB / 428.2 MB, free: 4.371 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.01327, allocations: 0.75 kB / 428.2 MB, free: 4.371 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002815/0.01355, allocations: 328.2 kB / 428.5 MB, free: 4.137 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.01355, allocations: 0 / 428.5 MB, free: 4.137 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001606/0.01371, allocations: 71.08 kB / 428.6 MB, free: 4.121 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.01372, allocations: 5.672 kB / 428.6 MB, free: 4.117 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.357e-05/0.01373, allocations: 5.25 kB / 428.6 MB, free: 4.113 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.444e-06/0.01373, allocations: 2.156 kB / 428.6 MB, free: 4.113 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.01373, allocations: 0 / 428.6 MB, free: 4.113 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00044/0.01417, allocations: 472.7 kB / 429.1 MB, free: 3.844 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.657e-05/0.01424, allocations: 54.22 kB / 429.1 MB, free: 3.809 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.402e-05/0.01426, allocations: 7.406 kB / 429.1 MB, free: 3.805 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.88e-05/0.01435, allocations: 18.41 kB / 429.2 MB, free: 3.797 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.311e-05/0.0144, allocations: 19.08 kB / 429.2 MB, free: 3.793 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.868e-06/0.01441, allocations: 9.578 kB / 429.2 MB, free: 3.789 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001234/0.01453, allocations: 186.8 kB / 429.4 MB, free: 3.68 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01453, allocations: 0 / 429.4 MB, free: 3.68 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003006/0.01483, allocations: 149.5 kB / 429.5 MB, free: 3.637 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (Cbody.T,PID.I.y,Ccont.T) * 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 (28): * Single equations (assignments): 28 * 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.0005203/0.01535, allocations: 1.012 MB / 430.5 MB, free: 2.828 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004234/0.01577, allocations: 317.3 kB / 430.8 MB, free: 2.73 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.01578, allocations: 1.344 kB / 430.8 MB, free: 2.73 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001245/0.0159, allocations: 116.7 kB / 430.9 MB, free: 2.688 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003164/0.01622, allocations: 74.41 kB / 431 MB, free: 2.656 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002385/0.0186, allocations: 2.976 MB / 434 MB, free: 0.668 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001394/0.01874, allocations: 186.5 kB / 434.2 MB, free: 0.582 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001273/0.01887, allocations: 34.34 kB / 434.2 MB, free: 0.5742 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001173/0.01899, allocations: 118.9 kB / 434.3 MB, free: 496 kB / 330.7 MB Notification: Performance of SimCode: time 4.71e-07/0.01899, allocations: 7.938 kB / 434.3 MB, free: 488 kB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01785/0.03684, allocations: 7.283 MB / 441.6 MB, free: 13.5 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.923/6.96, allocations: 5.234 kB / 441.6 MB, free: 13.49 MB / 346.7 MB " [Timeout remaining time 653] (rm -f AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_control_fmu --startTime=0 --stopTime=2000 --stepSize=0.25 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_control.fmu > AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 8.905245166271925] Failed to read output from testmodel.py, exit status != 0: 7.043860457837582 7.052612753 7.045172536 Calling exit ...