Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Hi_gain_linearising.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.001441/0.001441, allocations: 105.7 kB / 16.45 MB, free: 6.508 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.001585/0.001585, allocations: 213.7 kB / 19.43 MB, free: 3.648 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.49/1.49, allocations: 230.6 MB / 252.8 MB, free: 9.121 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.1099/0.1099, allocations: 24.12 MB / 333 MB, free: 12.65 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.Typical_control_structures.Hi_gain_linearising,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Hi_gain_linearising",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Hi_gain_linearising,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Hi_gain_linearising",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.00199/0.00199, allocations: 67.91 kB / 468.5 MB, free: 8.41 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.339/0.341, allocations: 59.57 MB / 0.5157 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Hi_gain_linearising): time 0.002126/0.3432, allocations: 1.015 MB / 0.5167 GB, free: 9.461 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001613/0.3448, allocations: 1.299 MB / 0.518 GB, free: 8.516 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.569e-05/0.3449, allocations: 6.25 kB / 0.518 GB, free: 8.512 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003266/0.3452, allocations: 55.31 kB / 0.5181 GB, free: 8.484 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000208/0.3454, allocations: 67.72 kB / 0.5181 GB, free: 8.453 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002392/0.3456, allocations: 98.05 kB / 0.5182 GB, free: 8.406 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003505/0.346, allocations: 284.1 kB / 0.5185 GB, free: 8.309 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001104/0.3461, allocations: 20.8 kB / 0.5185 GB, free: 8.301 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001808/0.3463, allocations: 122.4 kB / 0.5186 GB, free: 8.258 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002786/0.3465, allocations: 167.7 kB / 0.5188 GB, free: 8.203 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.009e-05/0.3466, allocations: 20.5 kB / 0.5188 GB, free: 8.199 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.72e-05/0.3466, allocations: 17.31 kB / 0.5188 GB, free: 8.199 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001271/0.3468, allocations: 84.55 kB / 0.5189 GB, free: 8.168 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.008e-05/0.3469, allocations: 93.48 kB / 0.519 GB, free: 8.102 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002903/0.3471, allocations: 214 kB / 0.5192 GB, free: 8.016 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.073e-06/0.3471, allocations: 1.766 kB / 0.5192 GB, free: 8.016 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.3472, allocations: 0 / 0.5192 GB, free: 8.016 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.432e-06/0.3472, allocations: 0 / 0.5192 GB, free: 8.016 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.001598/0.3488, allocations: 0.6557 MB / 0.5198 GB, free: 7.551 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.823e-05/0.3488, allocations: 9.812 kB / 0.5198 GB, free: 7.551 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.806e-05/0.3489, allocations: 49.02 kB / 0.5199 GB, free: 7.5 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.744e-05/0.3489, allocations: 23.61 kB / 0.5199 GB, free: 7.488 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008207/0.3497, allocations: 357.1 kB / 0.5203 GB, free: 7.238 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.674e-05/0.3498, allocations: 8.562 kB / 0.5203 GB, free: 7.234 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.683e-05/0.3498, allocations: 12.2 kB / 0.5203 GB, free: 7.23 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003062/0.3501, allocations: 156.7 kB / 0.5204 GB, free: 7.16 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.3501, allocations: 5.156 kB / 0.5204 GB, free: 7.156 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.94e-05/0.3501, allocations: 1.094 kB / 0.5204 GB, free: 7.156 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.765e-06/0.3501, allocations: 2.094 kB / 0.5204 GB, free: 7.156 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003222/0.3505, allocations: 162.5 kB / 0.5206 GB, free: 7.113 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009464/0.3514, allocations: 0.5919 MB / 0.5212 GB, free: 6.742 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003233/0.3517, allocations: 201.3 kB / 0.5214 GB, free: 6.66 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001623/0.3519, allocations: 104.8 kB / 0.5215 GB, free: 6.621 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.807e-05/0.3519, allocations: 6.078 kB / 0.5215 GB, free: 6.617 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.967e-05/0.3519, allocations: 36.94 kB / 0.5215 GB, free: 6.574 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 1.493e-06/0.3519, allocations: 0 / 0.5215 GB, free: 6.574 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001355/0.3533, allocations: 0.5568 MB / 0.522 GB, free: 6.316 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.302e-05/0.3533, allocations: 56.88 kB / 0.5221 GB, free: 6.254 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007038/0.354, allocations: 330 kB / 0.5224 GB, free: 6.098 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.837e-05/0.354, allocations: 34.86 kB / 0.5224 GB, free: 6.059 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.042e-05/0.3541, allocations: 135 kB / 0.5226 GB, free: 5.938 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.336e-05/0.3542, allocations: 78.42 kB / 0.5226 GB, free: 5.875 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.063e-05/0.3542, allocations: 36.39 kB / 0.5227 GB, free: 5.852 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.16e-05/0.3543, allocations: 341 kB / 0.523 GB, free: 5.523 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001514/0.3545, allocations: 86.17 kB / 0.5231 GB, free: 5.5 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000146/0.3546, allocations: 91.92 kB / 0.5232 GB, free: 5.469 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00205/0.3566, allocations: 0.6135 MB / 0.5238 GB, free: 5.32 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.3566, allocations: 0 / 0.5238 GB, free: 5.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0007073/0.3574, allocations: 371.2 kB / 0.5241 GB, free: 5.172 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/0.3574, allocations: 5.438 kB / 0.5241 GB, free: 5.172 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.062e-06/0.3574, allocations: 0 / 0.5241 GB, free: 5.172 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002702/0.3576, allocations: 68.09 kB / 0.5242 GB, free: 5.152 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000196/0.3578, allocations: 38.02 kB / 0.5242 GB, free: 5.148 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001363/0.3592, allocations: 1.658 MB / 0.5259 GB, free: 3.633 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003833/0.3596, allocations: 50.34 kB / 0.5259 GB, free: 3.625 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.984e-05/0.3596, allocations: 8.469 kB / 0.5259 GB, free: 3.621 MB / 382.1 MB Warning: Assuming fixed start value for the following 6 variables: C.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] C.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Pcl.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Pcl.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Pol.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Pol.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * 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 initialization (22): * Single equations (assignments): 21 * 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,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0001766/0.3598, allocations: 165.8 kB / 0.5261 GB, free: 3.48 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.393e-05/0.3598, allocations: 21.58 kB / 0.5261 GB, free: 3.469 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.658e-05/0.3599, allocations: 40.28 kB / 0.5261 GB, free: 3.438 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.3599, allocations: 6.172 kB / 0.5261 GB, free: 3.434 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.995e-06/0.3599, allocations: 1.5 kB / 0.5261 GB, free: 3.434 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.878e-06/0.3599, allocations: 0.8906 kB / 0.5261 GB, free: 3.434 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003269/0.3603, allocations: 309.5 kB / 0.5264 GB, free: 3.195 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.3603, allocations: 2.328 kB / 0.5264 GB, free: 3.195 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000228/0.3605, allocations: 34.7 kB / 0.5265 GB, free: 3.188 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002263/0.3607, allocations: 71.16 kB / 0.5265 GB, free: 3.168 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.353e-05/0.3607, allocations: 8.391 kB / 0.5265 GB, free: 3.164 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001137/0.3619, allocations: 1.652 MB / 0.5282 GB, free: 1.652 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3619, allocations: 0 / 0.5282 GB, free: 1.652 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008246/0.3627, allocations: 0.5227 MB / 0.5287 GB, free: 1.379 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.53e-05/0.3628, allocations: 105.3 kB / 0.5288 GB, free: 1.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.43e-05/0.3628, allocations: 8.016 kB / 0.5288 GB, free: 1.266 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003751/0.3632, allocations: 49.22 kB / 0.5288 GB, free: 1.258 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.171e-05/0.3632, allocations: 15.69 kB / 0.5288 GB, free: 1.254 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.516e-05/0.3633, allocations: 8.406 kB / 0.5288 GB, free: 1.25 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006464/0.3639, allocations: 263 kB / 0.5291 GB, free: 1.141 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3639, allocations: 4 kB / 0.5291 GB, free: 1.137 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003412/0.3642, allocations: 54.2 kB / 0.5292 GB, free: 1.125 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (Pol.x_scaled[1],Pol.x_scaled[2],Pcl.x_scaled[1],Pcl.x_scaled[2],C.x_scaled[1],C.x_scaled[2]) * 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 (16): * Single equations (assignments): 15 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001024/0.3653, allocations: 1.058 MB / 0.5302 GB, free: 336 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006737/0.3659, allocations: 357.1 kB / 0.5305 GB, free: 148 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3659, allocations: 0 / 0.5305 GB, free: 148 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000373/0.3663, allocations: 239.3 kB / 0.5308 GB, free: 15.99 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003923/0.3667, allocations: 38.12 kB / 0.5308 GB, free: 15.98 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005838/0.3725, allocations: 3.02 MB / 0.5337 GB, free: 14.23 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004838/0.373, allocations: 0.7595 MB / 0.5345 GB, free: 13.53 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001787/0.3732, allocations: 62.72 kB / 0.5345 GB, free: 13.52 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001385/0.3733, allocations: 68.2 kB / 0.5346 GB, free: 13.46 MB / 398.1 MB Notification: Performance of SimCode: time 8.02e-07/0.3733, allocations: 0 / 0.5346 GB, free: 13.46 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.048/0.4213, allocations: 5.893 MB / 0.5404 GB, free: 11.52 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12/12.42, allocations: 5.969 kB / 0.5404 GB, free: 11.52 MB / 398.1 MB " [Timeout remaining time 647] (rm -f AES_AES.Coursework.Typical_control_structures.Hi_gain_linearising.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Hi_gain_linearising.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Hi_gain_linearising.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Hi_gain_linearising.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Typical_control_structures.Hi_gain_linearising_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.02 AES_AES_Coursework_Typical_control_structures_Hi_gain_linearising.fmu > AES_AES.Coursework.Typical_control_structures.Hi_gain_linearising.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.209297455148771] Failed to read output from testmodel.py, exit status != 0: 12.51448909402825 12.540776589 12.188995162 Calling exit ...