Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Keep_below_limit.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.001264/0.001264, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001447/0.001447, allocations: 220.1 kB / 22.26 MB, free: 5.125 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.478/1.478, allocations: 230.6 MB / 256 MB, free: 7.992 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.1073/0.1073, allocations: 24.12 MB / 336.6 MB, free: 11.45 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_below_limit,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Keep_below_limit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Keep_below_limit,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Keep_below_limit",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.002073/0.002073, allocations: 66.25 kB / 474.1 MB, free: 5.617 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3373/0.3393, allocations: 59.61 MB / 0.5212 GB, free: 10.6 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_below_limit): time 0.002642/0.342, allocations: 1.854 MB / 0.523 GB, free: 9.32 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001041/0.343, allocations: 0.6413 MB / 0.5236 GB, free: 8.871 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.192e-05/0.3431, allocations: 3.375 kB / 0.5236 GB, free: 8.871 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000251/0.3434, allocations: 31.64 kB / 0.5237 GB, free: 8.852 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001407/0.3435, allocations: 43.2 kB / 0.5237 GB, free: 8.824 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002884/0.3438, allocations: 110.7 kB / 0.5238 GB, free: 8.766 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003026/0.3441, allocations: 249.4 kB / 0.524 GB, free: 8.656 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001242/0.3442, allocations: 46.59 kB / 0.5241 GB, free: 8.629 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001206/0.3443, allocations: 91.02 kB / 0.5242 GB, free: 8.59 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001423/0.3445, allocations: 100.1 kB / 0.5243 GB, free: 8.543 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.619e-05/0.3445, allocations: 17.16 kB / 0.5243 GB, free: 8.543 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.883e-05/0.3445, allocations: 16.31 kB / 0.5243 GB, free: 8.543 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.801e-05/0.3446, allocations: 61.2 kB / 0.5244 GB, free: 8.512 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.271e-05/0.3447, allocations: 74.78 kB / 0.5244 GB, free: 8.457 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002152/0.3449, allocations: 189.8 kB / 0.5246 GB, free: 8.371 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.3449, allocations: 1.25 kB / 0.5246 GB, free: 8.371 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3449, allocations: 0.7031 kB / 0.5246 GB, free: 8.371 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.62e-06/0.3449, allocations: 0 / 0.5246 GB, free: 8.371 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: 27 * Number of variables: 27 Notification: Performance of Generate backend data structure: time 0.0009756/0.3459, allocations: 456.8 kB / 0.525 GB, free: 8.023 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.93e-05/0.3459, allocations: 15.19 kB / 0.5251 GB, free: 8.02 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.005e-05/0.346, allocations: 45.02 kB / 0.5251 GB, free: 7.973 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.861e-05/0.346, allocations: 22.73 kB / 0.5251 GB, free: 7.961 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000438/0.3465, allocations: 212.9 kB / 0.5253 GB, free: 7.789 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.118e-05/0.3465, allocations: 10.36 kB / 0.5253 GB, free: 7.785 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.972e-05/0.3465, allocations: 17.61 kB / 0.5254 GB, free: 7.777 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003182/0.3468, allocations: 168.8 kB / 0.5255 GB, free: 7.688 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.47e-05/0.3468, allocations: 5.125 kB / 0.5255 GB, free: 7.684 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.745e-05/0.3469, allocations: 5.188 kB / 0.5255 GB, free: 7.68 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.3469, allocations: 3.078 kB / 0.5255 GB, free: 7.68 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002791/0.3471, allocations: 118.3 kB / 0.5256 GB, free: 7.648 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008792/0.348, allocations: 0.5034 MB / 0.5261 GB, free: 7.305 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005531/0.3486, allocations: 189.7 kB / 0.5263 GB, free: 7.23 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001362/0.3487, allocations: 66.73 kB / 0.5264 GB, free: 7.203 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.202e-05/0.3487, allocations: 1.969 kB / 0.5264 GB, free: 7.203 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.446e-05/0.3487, allocations: 35.84 kB / 0.5264 GB, free: 7.16 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.223e-06/0.3487, allocations: 3.938 kB / 0.5264 GB, free: 7.156 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.00155/0.3503, allocations: 463 kB / 0.5269 GB, free: 7.031 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.976e-05/0.3503, allocations: 83.27 kB / 0.5269 GB, free: 6.934 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003464/0.3507, allocations: 209.4 kB / 0.5271 GB, free: 6.812 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.806e-05/0.3507, allocations: 31.5 kB / 0.5272 GB, free: 6.777 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.336e-05/0.3508, allocations: 133.4 kB / 0.5273 GB, free: 6.656 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.512e-05/0.3508, allocations: 53.05 kB / 0.5273 GB, free: 6.613 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.726e-05/0.3508, allocations: 32.25 kB / 0.5274 GB, free: 6.59 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.779e-05/0.3509, allocations: 336.2 kB / 0.5277 GB, free: 6.262 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001387/0.351, allocations: 63.41 kB / 0.5278 GB, free: 6.238 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001415/0.3512, allocations: 86.48 kB / 0.5278 GB, free: 6.195 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002536/0.3514, allocations: 141.1 kB / 0.528 GB, free: 6.133 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.3514, allocations: 4 kB / 0.528 GB, free: 6.129 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003259/0.3518, allocations: 194.1 kB / 0.5282 GB, free: 6.043 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.36e-05/0.3518, allocations: 4.844 kB / 0.5282 GB, free: 6.043 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.3518, allocations: 1.312 kB / 0.5282 GB, free: 6.043 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.752e-05/0.3518, allocations: 2.125 kB / 0.5282 GB, free: 6.043 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002635/0.3521, allocations: 44.91 kB / 0.5282 GB, free: 6.039 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.3521, allocations: 5.094 kB / 0.5282 GB, free: 6.035 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001882/0.3523, allocations: 38.31 kB / 0.5283 GB, free: 6.016 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.384e-05/0.3523, allocations: 3.406 kB / 0.5283 GB, free: 6.016 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001335/0.3524, allocations: 145.9 kB / 0.5284 GB, free: 5.91 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 9.523e-05/0.3525, allocations: 74.64 kB / 0.5285 GB, free: 5.867 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001708/0.3527, allocations: 118.9 kB / 0.5286 GB, free: 5.809 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.41e-07/0.3527, allocations: 0 / 0.5286 GB, free: 5.809 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization_lambda0): time 0.0002516/0.3529, allocations: 172.6 kB / 0.5287 GB, free: 5.723 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.045e-05/0.3529, allocations: 6.25 kB / 0.5288 GB, free: 5.723 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.392e-06/0.3529, allocations: 0 / 0.5288 GB, free: 5.723 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.458e-06/0.3529, allocations: 5.844 kB / 0.5288 GB, free: 5.719 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002324/0.3532, allocations: 39.25 kB / 0.5288 GB, free: 5.715 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.926e-06/0.3532, allocations: 1.312 kB / 0.5288 GB, free: 5.715 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001762/0.3534, allocations: 24.55 kB / 0.5288 GB, free: 5.707 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.117e-05/0.3534, allocations: 4.812 kB / 0.5288 GB, free: 5.707 MB / 382.1 MB 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 (16): * Single equations (assignments): 16 * 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 7.346e-05/0.3534, allocations: 190.4 kB / 0.529 GB, free: 5.516 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.239e-05/0.3535, allocations: 16.45 kB / 0.529 GB, free: 5.508 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007032/0.3542, allocations: 279.2 kB / 0.5293 GB, free: 5.395 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.858e-06/0.3542, allocations: 1.031 kB / 0.5293 GB, free: 5.395 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.3542, allocations: 9.031 kB / 0.5293 GB, free: 5.387 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.3542, allocations: 0 / 0.5293 GB, free: 5.387 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002854/0.3545, allocations: 242.8 kB / 0.5295 GB, free: 5.188 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.3545, allocations: 0 / 0.5295 GB, free: 5.188 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000103/0.3546, allocations: 16.06 kB / 0.5295 GB, free: 5.184 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003596/0.3549, allocations: 88.34 kB / 0.5296 GB, free: 5.156 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.609e-05/0.355, allocations: 7.141 kB / 0.5296 GB, free: 5.152 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001744/0.3567, allocations: 1.73 MB / 0.5313 GB, free: 3.715 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.3567, allocations: 3.938 kB / 0.5313 GB, free: 3.711 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007707/0.3575, allocations: 432.8 kB / 0.5317 GB, free: 3.48 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.065e-05/0.3575, allocations: 14.73 kB / 0.5318 GB, free: 3.473 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.895e-05/0.3575, allocations: 10.89 kB / 0.5318 GB, free: 3.465 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002197/0.3578, allocations: 20.64 kB / 0.5318 GB, free: 3.465 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.514e-05/0.3578, allocations: 21.94 kB / 0.5318 GB, free: 3.453 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.759e-06/0.3578, allocations: 2.969 kB / 0.5318 GB, free: 3.453 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002701/0.3581, allocations: 174.1 kB / 0.532 GB, free: 3.352 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3581, allocations: 0 / 0.532 GB, free: 3.352 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003786/0.3585, allocations: 54.45 kB / 0.532 GB, free: 3.34 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (C.FO.y,P.x_scaled[1],P.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 (8): * Single equations (assignments): 7 * 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009813/0.3595, allocations: 0.9808 MB / 0.533 GB, free: 2.562 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005034/0.36, allocations: 197.5 kB / 0.5332 GB, free: 2.508 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.36, allocations: 0 / 0.5332 GB, free: 2.508 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003586/0.3603, allocations: 209.4 kB / 0.5334 GB, free: 2.363 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003438/0.3607, allocations: 30.09 kB / 0.5334 GB, free: 2.352 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002754/0.3634, allocations: 2.22 MB / 0.5356 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001653/0.3636, allocations: 0.7318 MB / 0.5363 GB, free: 92 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001168/0.3637, allocations: 38.02 kB / 0.5363 GB, free: 88 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.482e-05/0.3638, allocations: 52.45 kB / 0.5364 GB, free: 48 kB / 382.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3638, allocations: 0 / 0.5364 GB, free: 48 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03496/0.3987, allocations: 4.685 MB / 0.5409 GB, free: 15.04 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.75/13.15, allocations: 0 / 0.5409 GB, free: 15.04 MB / 398.1 MB " [Timeout remaining time 647] (rm -f AES_AES.Coursework.Typical_control_structures.Keep_below_limit.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Keep_below_limit.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Keep_below_limit.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Keep_below_limit.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Typical_control_structures.Keep_below_limit_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_below_limit.fmu > AES_AES.Coursework.Typical_control_structures.Keep_below_limit.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.996184222996817] Failed to read output from testmodel.py, exit status != 0: 13.263919281002018 13.279584146 12.931581227 Calling exit ...