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.0007457/0.0007457, allocations: 76.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.001032/0.001032, allocations: 173.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.9352/0.9352, allocations: 177.1 MB / 203.5 MB, free: 5.746 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.06581/0.06581, 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.403e-06/1.403e-06, allocations: 0 / 415.1 MB, free: 12.67 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.659e-05/1.799e-05, allocations: 2.281 kB / 415.1 MB, free: 12.66 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control): time 0.002771/0.002789, allocations: 2.976 MB / 418 MB, free: 10.75 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001002/0.003791, allocations: 0.901 MB / 418.9 MB, free: 10.12 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001628/0.003954, allocations: 13.34 kB / 419 MB, free: 10.12 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001686/0.004122, allocations: 68.84 kB / 419 MB, free: 10.07 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001964/0.004319, allocations: 112.8 kB / 419.1 MB, free: 9.988 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002842/0.004603, allocations: 204.1 kB / 419.3 MB, free: 9.875 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003203/0.004923, allocations: 482.9 kB / 419.8 MB, free: 9.625 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002144/0.005138, allocations: 143.2 kB / 419.9 MB, free: 9.547 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001135/0.005251, allocations: 164 kB / 420.1 MB, free: 9.469 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001492/0.0054, allocations: 127.4 kB / 420.2 MB, free: 9.422 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 4.043e-05/0.005441, allocations: 39.47 kB / 420.3 MB, free: 9.422 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.589e-05/0.005477, allocations: 39.28 kB / 420.3 MB, free: 9.422 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 4.546e-05/0.005522, allocations: 96.41 kB / 420.4 MB, free: 9.352 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 8.877e-05/0.005611, allocations: 132.4 kB / 420.5 MB, free: 9.289 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003821/0.005993, allocations: 474.9 kB / 421 MB, free: 9.09 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.245e-06/0.005995, allocations: 0 / 421 MB, free: 9.09 MB / 330.7 MB Notification: Performance of FrontEnd: time 7.41e-07/0.005996, allocations: 0 / 421 MB, free: 9.09 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.893e-06/0.006003, allocations: 1.156 kB / 421 MB, free: 9.09 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.0006372/0.00664, allocations: 0.6277 MB / 421.6 MB, free: 8.617 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.48e-05/0.006685, allocations: 10.05 kB / 421.6 MB, free: 8.617 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.298e-05/0.006738, allocations: 70.67 kB / 421.7 MB, free: 8.559 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.369e-05/0.006792, allocations: 51.94 kB / 421.7 MB, free: 8.531 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002864/0.007078, allocations: 273.3 kB / 422 MB, free: 8.305 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.043e-05/0.007099, allocations: 27.59 kB / 422 MB, free: 8.289 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.688e-05/0.007135, allocations: 32.52 kB / 422.1 MB, free: 8.281 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004359/0.007571, allocations: 451.9 kB / 422.5 MB, free: 8.004 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.007584, allocations: 4.125 kB / 422.5 MB, free: 8 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.295e-05/0.007607, allocations: 21.19 kB / 422.5 MB, free: 7.984 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.987e-06/0.007616, allocations: 7.844 kB / 422.5 MB, free: 7.984 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003402/0.007956, allocations: 248 kB / 422.8 MB, free: 7.898 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001113/0.009069, allocations: 1.124 MB / 423.9 MB, free: 7.117 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004266/0.009496, allocations: 273.7 kB / 424.2 MB, free: 7.004 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001484/0.009644, allocations: 109.7 kB / 424.3 MB, free: 6.961 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.483e-05/0.009669, allocations: 3.266 kB / 424.3 MB, free: 6.961 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.717e-05/0.009686, allocations: 50.41 kB / 424.3 MB, free: 6.906 MB / 330.7 MB Notification: Performance of pre-optimization done (n=27): time 1.362e-06/0.009687, allocations: 0 / 424.3 MB, free: 6.906 MB / 330.7 MB Notification: Performance of matching and sorting (n=27): time 0.0004356/0.01012, allocations: 322.9 kB / 424.7 MB, free: 6.773 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.817e-05/0.01015, allocations: 114.6 kB / 424.8 MB, free: 6.641 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000176/0.01033, allocations: 270.6 kB / 425 MB, free: 6.48 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.545e-05/0.01034, allocations: 32.36 kB / 425.1 MB, free: 6.445 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.865e-05/0.01043, allocations: 217.7 kB / 425.3 MB, free: 6.266 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.144e-05/0.01047, allocations: 94.2 kB / 425.4 MB, free: 6.191 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.921e-05/0.01053, allocations: 63.41 kB / 425.4 MB, free: 6.148 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.065e-05/0.01057, allocations: 340.2 kB / 425.8 MB, free: 5.824 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001216/0.01069, allocations: 86.89 kB / 425.8 MB, free: 5.789 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001456/0.01084, allocations: 213.5 kB / 426.1 MB, free: 5.613 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002513/0.01109, allocations: 245.8 kB / 426.3 MB, free: 5.465 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.01109, allocations: 1.031 kB / 426.3 MB, free: 5.465 MB / 330.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0003228/0.01142, allocations: 307.6 kB / 426.6 MB, free: 5.324 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.348e-05/0.01143, allocations: 5.469 kB / 426.6 MB, free: 5.324 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.01143, allocations: 1.062 kB / 426.6 MB, free: 5.324 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.324e-05/0.01145, allocations: 7.375 kB / 426.6 MB, free: 5.32 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001806/0.01163, allocations: 72.52 kB / 426.7 MB, free: 5.312 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.01164, allocations: 3.844 kB / 426.7 MB, free: 5.312 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.148e-05/0.01173, allocations: 28.94 kB / 426.7 MB, free: 5.297 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.823e-05/0.01175, allocations: 8.156 kB / 426.7 MB, free: 5.297 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000146/0.01189, allocations: 186.8 kB / 426.9 MB, free: 5.168 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001201/0.01201, allocations: 201.9 kB / 427.1 MB, free: 4.992 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001958/0.01221, allocations: 217.2 kB / 427.3 MB, free: 4.852 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.383e-06/0.01221, allocations: 3.688 kB / 427.3 MB, free: 4.852 MB / 330.7 MB Notification: Performance of matching and sorting (n=36) (initialization_lambda0): time 0.000267/0.01248, allocations: 269.7 kB / 427.6 MB, free: 4.727 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.103e-06/0.01248, allocations: 10.48 kB / 427.6 MB, free: 4.723 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.804e-06/0.01249, allocations: 2.406 kB / 427.6 MB, free: 4.723 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.226e-06/0.01249, allocations: 7.406 kB / 427.6 MB, free: 4.719 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001391/0.01263, allocations: 70.53 kB / 427.7 MB, free: 4.707 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.377e-06/0.01263, allocations: 2.625 kB / 427.7 MB, free: 4.707 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.828e-05/0.01271, allocations: 30.48 kB / 427.7 MB, free: 4.688 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.316e-05/0.01272, allocations: 11.94 kB / 427.7 MB, free: 4.684 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.195e-05/0.01278, allocations: 194.9 kB / 427.9 MB, free: 4.492 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.102e-05/0.01282, allocations: 33.81 kB / 427.9 MB, free: 4.473 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003347/0.01315, allocations: 280.1 kB / 428.2 MB, free: 4.34 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.037e-06/0.01315, allocations: 3.969 kB / 428.2 MB, free: 4.34 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.399e-06/0.01316, allocations: 0 / 428.2 MB, free: 4.34 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.01316, allocations: 6.516 kB / 428.2 MB, free: 4.336 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002592/0.01342, allocations: 331.8 kB / 428.5 MB, free: 4.098 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.01342, allocations: 0 / 428.5 MB, free: 4.098 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001553/0.01358, allocations: 62.83 kB / 428.6 MB, free: 4.09 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.01358, allocations: 6.062 kB / 428.6 MB, free: 4.086 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.214e-05/0.01359, allocations: 5.125 kB / 428.6 MB, free: 4.082 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.0136, allocations: 1.688 kB / 428.6 MB, free: 4.082 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.0136, allocations: 5.031 kB / 428.6 MB, free: 4.078 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004322/0.01403, allocations: 475.6 kB / 429.1 MB, free: 3.805 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.392e-05/0.01409, allocations: 54.42 kB / 429.1 MB, free: 3.77 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.283e-05/0.01412, allocations: 7.609 kB / 429.1 MB, free: 3.766 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.036e-05/0.01421, allocations: 14.75 kB / 429.2 MB, free: 3.762 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.645e-05/0.01424, allocations: 13.84 kB / 429.2 MB, free: 3.762 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.034e-05/0.01425, allocations: 9.797 kB / 429.2 MB, free: 3.758 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001056/0.01436, allocations: 196 kB / 429.4 MB, free: 3.641 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01436, allocations: 0 / 429.4 MB, free: 3.641 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002935/0.01465, allocations: 148.5 kB / 429.5 MB, free: 3.598 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.0005317/0.01518, allocations: 1.007 MB / 430.5 MB, free: 2.793 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004173/0.0156, allocations: 326.9 kB / 430.8 MB, free: 2.688 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.0156, allocations: 0 / 430.8 MB, free: 2.688 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001257/0.01573, allocations: 114.2 kB / 431 MB, free: 2.648 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003232/0.01605, allocations: 65.27 kB / 431 MB, free: 2.625 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002474/0.01853, allocations: 2.973 MB / 434 MB, free: 0.6406 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001386/0.01866, allocations: 190.5 kB / 434.2 MB, free: 0.5508 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001143/0.01878, allocations: 38.61 kB / 434.2 MB, free: 0.5391 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001121/0.01889, allocations: 118.7 kB / 434.3 MB, free: 460 kB / 330.7 MB Notification: Performance of SimCode: time 5.91e-07/0.01889, allocations: 0 / 434.3 MB, free: 460 kB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0233/0.04219, allocations: 7.287 MB / 441.6 MB, free: 13.49 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.954/6.996, allocations: 1.375 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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control_res.csv --start-time 0 --stop-time 2000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.25 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: 9.126568956300616] Failed to read output from testmodel.py, exit status != 0: 7.077231280505657 7.085794644 7.078161203 Calling exit ...