Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.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.001672/0.001672, allocations: 108.8 kB / 16.45 MB, free: 6.453 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.001922/0.001922, allocations: 216.2 kB / 19.43 MB, free: 3.625 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.442/1.442, allocations: 230.6 MB / 252.8 MB, free: 8.941 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.1209/0.1209, allocations: 24.11 MB / 333 MB, free: 12.7 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.Keep_within_two_limits,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Keep_within_two_limits",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Keep_within_two_limits,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Keep_within_two_limits",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.00218/0.00218, allocations: 67.89 kB / 468.6 MB, free: 8.379 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3291/0.3313, allocations: 59.57 MB / 0.5157 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_within_two_limits): time 0.003332/0.3346, allocations: 2.072 MB / 0.5178 GB, free: 8.652 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001183/0.3358, allocations: 0.7383 MB / 0.5185 GB, free: 8.129 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001231/0.3359, allocations: 7.281 kB / 0.5185 GB, free: 8.125 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002868/0.3362, allocations: 35.45 kB / 0.5185 GB, free: 8.105 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00017/0.3364, allocations: 58.05 kB / 0.5186 GB, free: 8.066 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003664/0.3368, allocations: 178.6 kB / 0.5188 GB, free: 7.965 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003398/0.3371, allocations: 320.8 kB / 0.5191 GB, free: 7.824 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001708/0.3373, allocations: 83.56 kB / 0.5191 GB, free: 7.777 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001375/0.3374, allocations: 124.5 kB / 0.5193 GB, free: 7.719 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001835/0.3376, allocations: 144.1 kB / 0.5194 GB, free: 7.648 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.321e-05/0.3377, allocations: 27.03 kB / 0.5194 GB, free: 7.648 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.961e-05/0.3377, allocations: 27.16 kB / 0.5195 GB, free: 7.648 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.477e-05/0.3378, allocations: 84.67 kB / 0.5195 GB, free: 7.598 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.774e-05/0.3379, allocations: 124.1 kB / 0.5197 GB, free: 7.508 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003154/0.3382, allocations: 291.4 kB / 0.5199 GB, free: 7.379 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.3382, allocations: 0 / 0.5199 GB, free: 7.379 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.3382, allocations: 0 / 0.5199 GB, free: 7.379 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.552e-06/0.3382, allocations: 0 / 0.5199 GB, free: 7.379 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: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.001086/0.3393, allocations: 0.6281 MB / 0.5205 GB, free: 6.883 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/0.3393, allocations: 9.5 kB / 0.5206 GB, free: 6.883 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.727e-05/0.3394, allocations: 53.83 kB / 0.5206 GB, free: 6.832 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.572e-05/0.3395, allocations: 35.92 kB / 0.5206 GB, free: 6.812 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000509/0.34, allocations: 320.7 kB / 0.5209 GB, free: 6.551 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.456e-05/0.34, allocations: 12.72 kB / 0.521 GB, free: 6.547 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.77e-05/0.34, allocations: 27.52 kB / 0.521 GB, free: 6.539 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004576/0.3405, allocations: 262.2 kB / 0.5212 GB, free: 6.402 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.483e-05/0.3405, allocations: 0 / 0.5212 GB, free: 6.402 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.375e-05/0.3405, allocations: 7.234 kB / 0.5212 GB, free: 6.398 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.554e-06/0.3405, allocations: 4.844 kB / 0.5212 GB, free: 6.398 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004283/0.341, allocations: 192.4 kB / 0.5214 GB, free: 6.34 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001066/0.342, allocations: 0.7045 MB / 0.5221 GB, free: 5.895 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007404/0.3428, allocations: 246.3 kB / 0.5223 GB, free: 5.816 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001974/0.343, allocations: 98.33 kB / 0.5224 GB, free: 5.777 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.458e-05/0.343, allocations: 2.125 kB / 0.5224 GB, free: 5.777 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.549e-05/0.343, allocations: 36.75 kB / 0.5225 GB, free: 5.734 MB / 382.1 MB Notification: Performance of pre-optimization done (n=17): time 1.193e-06/0.343, allocations: 0 / 0.5225 GB, free: 5.734 MB / 382.1 MB Notification: Performance of matching and sorting (n=17): time 0.002693/0.3457, allocations: 0.8103 MB / 0.5233 GB, free: 5.473 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.028e-05/0.3457, allocations: 105.8 kB / 0.5234 GB, free: 5.348 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004367/0.3462, allocations: 265 kB / 0.5236 GB, free: 5.199 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.957e-05/0.3462, allocations: 34.77 kB / 0.5237 GB, free: 5.16 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.551e-05/0.3463, allocations: 162.3 kB / 0.5238 GB, free: 5.023 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.94e-05/0.3464, allocations: 68.23 kB / 0.5239 GB, free: 4.969 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.531e-05/0.3465, allocations: 46.59 kB / 0.5239 GB, free: 4.938 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.519e-05/0.3465, allocations: 335.2 kB / 0.5242 GB, free: 4.613 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002265/0.3467, allocations: 93.53 kB / 0.5243 GB, free: 4.578 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002451/0.347, allocations: 145 kB / 0.5245 GB, free: 4.496 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004142/0.3474, allocations: 201.5 kB / 0.5247 GB, free: 4.41 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.3474, allocations: 1.719 kB / 0.5247 GB, free: 4.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.00056/0.348, allocations: 267.7 kB / 0.5249 GB, free: 4.297 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.866e-05/0.348, allocations: 4.562 kB / 0.5249 GB, free: 4.297 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.348, allocations: 1.156 kB / 0.5249 GB, free: 4.297 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.497e-05/0.348, allocations: 5.891 kB / 0.5249 GB, free: 4.293 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003469/0.3484, allocations: 58.66 kB / 0.525 GB, free: 4.289 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.3484, allocations: 5.375 kB / 0.525 GB, free: 4.285 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002514/0.3486, allocations: 42.33 kB / 0.525 GB, free: 4.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.938e-05/0.3486, allocations: 5.062 kB / 0.525 GB, free: 4.27 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001856/0.3488, allocations: 170.5 kB / 0.5252 GB, free: 4.152 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000144/0.349, allocations: 109 kB / 0.5253 GB, free: 4.082 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002317/0.3492, allocations: 168.3 kB / 0.5255 GB, free: 3.992 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.122e-06/0.3492, allocations: 0 / 0.5255 GB, free: 3.992 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0003411/0.3495, allocations: 222.1 kB / 0.5257 GB, free: 3.887 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.325e-06/0.3496, allocations: 8.75 kB / 0.5257 GB, free: 3.883 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.174e-06/0.3496, allocations: 1.781 kB / 0.5257 GB, free: 3.883 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.336e-06/0.3496, allocations: 2.031 kB / 0.5257 GB, free: 3.883 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002836/0.3498, allocations: 53.53 kB / 0.5257 GB, free: 3.875 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.487e-06/0.3498, allocations: 5.094 kB / 0.5257 GB, free: 3.871 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000209/0.3501, allocations: 33.2 kB / 0.5258 GB, free: 3.859 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.356e-05/0.3501, allocations: 4.375 kB / 0.5258 GB, free: 3.859 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (23): * Single equations (assignments): 23 * 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 8.15e-05/0.3502, allocations: 189 kB / 0.526 GB, free: 3.672 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.163e-05/0.3502, allocations: 26.62 kB / 0.526 GB, free: 3.656 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001028/0.3512, allocations: 409.6 kB / 0.5264 GB, free: 3.504 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.3512, allocations: 2.766 kB / 0.5264 GB, free: 3.504 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.3512, allocations: 4 kB / 0.5264 GB, free: 3.5 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.3512, allocations: 1.219 kB / 0.5264 GB, free: 3.5 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000353/0.3516, allocations: 322.4 kB / 0.5267 GB, free: 3.254 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.3516, allocations: 0 / 0.5267 GB, free: 3.254 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001164/0.3517, allocations: 25.62 kB / 0.5267 GB, free: 3.242 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005253/0.3522, allocations: 142.6 kB / 0.5269 GB, free: 3.203 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.012e-05/0.3523, allocations: 2 kB / 0.5269 GB, free: 3.203 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003035/0.3553, allocations: 2.442 MB / 0.5292 GB, free: 1.324 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.3553, allocations: 1.031 kB / 0.5292 GB, free: 1.324 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001234/0.3565, allocations: 0.5743 MB / 0.5298 GB, free: 1.051 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.977e-05/0.3566, allocations: 105.5 kB / 0.5299 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.688e-05/0.3566, allocations: 7.375 kB / 0.5299 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002725/0.3569, allocations: 28.58 kB / 0.5299 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.059e-05/0.357, allocations: 18.19 kB / 0.53 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.579e-05/0.357, allocations: 4.016 kB / 0.53 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003511/0.3573, allocations: 201.7 kB / 0.5301 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3573, allocations: 3.938 kB / 0.5302 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005134/0.3578, allocations: 87.16 kB / 0.5302 GB, free: 0.7891 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (C_hi.FO.y,P.x_scaled[1],P.x_scaled[2],C_lo.FO.y) * 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 (9): * Single equations (assignments): 8 * 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,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001337/0.3592, allocations: 1.13 MB / 0.5313 GB, free: 15.97 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006358/0.3598, allocations: 286.8 kB / 0.5316 GB, free: 15.89 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3598, allocations: 1 kB / 0.5316 GB, free: 15.89 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005762/0.3604, allocations: 285.7 kB / 0.5319 GB, free: 15.72 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003921/0.3608, allocations: 39.38 kB / 0.5319 GB, free: 15.71 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004201/0.365, allocations: 2.726 MB / 0.5346 GB, free: 13.96 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004017/0.3654, allocations: 0.7735 MB / 0.5353 GB, free: 13.25 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001661/0.3656, allocations: 39.47 kB / 0.5354 GB, free: 13.25 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001347/0.3657, allocations: 77.84 kB / 0.5355 GB, free: 13.19 MB / 398.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3657, allocations: 4 kB / 0.5355 GB, free: 13.19 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03339/0.3991, allocations: 6.334 MB / 0.5416 GB, free: 11.04 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.97/12.37, allocations: 4.453 kB / 0.5416 GB, free: 11.04 MB / 398.1 MB " [Timeout remaining time 648] (rm -f AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits_res.csv --start-time 0 --stop-time 150 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.3 AES_AES_Coursework_Typical_control_structures_Keep_within_two_limits.fmu > AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.190528974868357] Failed to read output from testmodel.py, exit status != 0: 12.461673017125577 12.47644771 12.135136373 Calling exit ...