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.002059/0.002059, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.002671/0.002671, allocations: 217 kB / 22.25 MB, free: 5.082 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.496/1.496, allocations: 230.6 MB / 256 MB, free: 8.02 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.1088/0.1088, allocations: 24.13 MB / 336.6 MB, free: 11.44 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.002214/0.002214, allocations: 63.89 kB / 474.1 MB, free: 5.625 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3577/0.36, allocations: 59.6 MB / 0.5212 GB, free: 10.62 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_within_two_limits): time 0.003706/0.3637, allocations: 2.099 MB / 0.5232 GB, free: 9.164 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001798/0.3655, allocations: 0.7391 MB / 0.5239 GB, free: 8.641 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001892/0.3657, allocations: 4.375 kB / 0.524 GB, free: 8.641 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004401/0.3661, allocations: 41.12 kB / 0.524 GB, free: 8.613 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002322/0.3663, allocations: 57.06 kB / 0.524 GB, free: 8.574 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005076/0.3668, allocations: 184.9 kB / 0.5242 GB, free: 8.469 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005063/0.3673, allocations: 343.8 kB / 0.5246 GB, free: 8.32 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002041/0.3675, allocations: 82.41 kB / 0.5246 GB, free: 8.273 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001848/0.3677, allocations: 130.2 kB / 0.5248 GB, free: 8.211 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002023/0.3679, allocations: 144.9 kB / 0.5249 GB, free: 8.137 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.525e-05/0.368, allocations: 27.41 kB / 0.5249 GB, free: 8.137 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.951e-05/0.368, allocations: 28.06 kB / 0.5249 GB, free: 8.137 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001136/0.3681, allocations: 80.92 kB / 0.525 GB, free: 8.09 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001336/0.3683, allocations: 123.5 kB / 0.5251 GB, free: 8 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004135/0.3687, allocations: 294.7 kB / 0.5254 GB, free: 7.867 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.3687, allocations: 1.344 kB / 0.5254 GB, free: 7.867 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.3687, allocations: 0 / 0.5254 GB, free: 7.867 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.608e-06/0.3687, allocations: 0 / 0.5254 GB, free: 7.867 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.001329/0.37, allocations: 0.553 MB / 0.526 GB, free: 7.465 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.894e-05/0.3701, allocations: 9.578 kB / 0.526 GB, free: 7.465 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.035e-05/0.3702, allocations: 53.47 kB / 0.526 GB, free: 7.414 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.066e-05/0.3702, allocations: 36.17 kB / 0.5261 GB, free: 7.395 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000546/0.3708, allocations: 259.7 kB / 0.5263 GB, free: 7.203 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.158e-05/0.3708, allocations: 12.06 kB / 0.5263 GB, free: 7.199 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.831e-05/0.3709, allocations: 21.84 kB / 0.5263 GB, free: 7.191 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004745/0.3714, allocations: 257.2 kB / 0.5266 GB, free: 7.062 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.544e-05/0.3714, allocations: 0 / 0.5266 GB, free: 7.062 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.443e-05/0.3714, allocations: 14.47 kB / 0.5266 GB, free: 7.051 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.125e-06/0.3714, allocations: 4 kB / 0.5266 GB, free: 7.051 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004255/0.3718, allocations: 184.5 kB / 0.5268 GB, free: 7 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001246/0.3731, allocations: 0.6761 MB / 0.5274 GB, free: 6.582 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007503/0.3738, allocations: 250.1 kB / 0.5277 GB, free: 6.496 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001906/0.374, allocations: 98.22 kB / 0.5278 GB, free: 6.457 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.237e-05/0.3741, allocations: 2.922 kB / 0.5278 GB, free: 6.457 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.347e-05/0.3741, allocations: 36.44 kB / 0.5278 GB, free: 6.414 MB / 382.1 MB Notification: Performance of pre-optimization done (n=17): time 1.433e-06/0.3741, allocations: 0 / 0.5278 GB, free: 6.414 MB / 382.1 MB Notification: Performance of matching and sorting (n=17): time 0.002607/0.3767, allocations: 0.7336 MB / 0.5285 GB, free: 6.246 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.467e-05/0.3767, allocations: 109.2 kB / 0.5286 GB, free: 6.117 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00038/0.3771, allocations: 266 kB / 0.5289 GB, free: 5.965 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.238e-05/0.3771, allocations: 30.83 kB / 0.5289 GB, free: 5.93 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.759e-05/0.3772, allocations: 159.5 kB / 0.5291 GB, free: 5.789 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.067e-05/0.3773, allocations: 65.02 kB / 0.5291 GB, free: 5.738 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.372e-05/0.3774, allocations: 46.73 kB / 0.5292 GB, free: 5.707 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.048e-05/0.3774, allocations: 334.8 kB / 0.5295 GB, free: 5.383 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002001/0.3776, allocations: 98.31 kB / 0.5296 GB, free: 5.344 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002224/0.3778, allocations: 133.1 kB / 0.5297 GB, free: 5.273 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003985/0.3782, allocations: 204 kB / 0.5299 GB, free: 5.184 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.093e-06/0.3782, allocations: 0 / 0.5299 GB, free: 5.184 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005043/0.3787, allocations: 271 kB / 0.5302 GB, free: 5.07 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.3788, allocations: 11.91 kB / 0.5302 GB, free: 5.066 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.65e-06/0.3788, allocations: 0 / 0.5302 GB, free: 5.066 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.841e-05/0.3788, allocations: 7.031 kB / 0.5302 GB, free: 5.062 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003137/0.3791, allocations: 57.73 kB / 0.5302 GB, free: 5.059 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.063e-06/0.3791, allocations: 2.125 kB / 0.5302 GB, free: 5.059 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002273/0.3793, allocations: 41.05 kB / 0.5303 GB, free: 5.043 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.973e-05/0.3794, allocations: 9.484 kB / 0.5303 GB, free: 5.039 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001658/0.3795, allocations: 169.8 kB / 0.5304 GB, free: 4.922 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001383/0.3797, allocations: 113.4 kB / 0.5306 GB, free: 4.848 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002192/0.3799, allocations: 160.5 kB / 0.5307 GB, free: 4.766 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.012e-06/0.3799, allocations: 0 / 0.5307 GB, free: 4.766 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0003165/0.3802, allocations: 222.2 kB / 0.5309 GB, free: 4.66 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.022e-05/0.3802, allocations: 13.22 kB / 0.5309 GB, free: 4.652 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.553e-06/0.3802, allocations: 1.312 kB / 0.5309 GB, free: 4.652 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.188e-06/0.3802, allocations: 2.672 kB / 0.5309 GB, free: 4.652 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002638/0.3805, allocations: 49.05 kB / 0.531 GB, free: 4.648 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.157e-06/0.3805, allocations: 5.312 kB / 0.531 GB, free: 4.645 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002009/0.3807, allocations: 32.94 kB / 0.531 GB, free: 4.633 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.213e-05/0.3807, allocations: 4.312 kB / 0.531 GB, free: 4.633 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 7.21e-05/0.3808, allocations: 188.8 kB / 0.5312 GB, free: 4.445 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.238e-05/0.3808, allocations: 30.47 kB / 0.5312 GB, free: 4.426 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001081/0.3819, allocations: 406.9 kB / 0.5316 GB, free: 4.27 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.091e-06/0.3819, allocations: 2.047 kB / 0.5316 GB, free: 4.27 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.3819, allocations: 0.625 kB / 0.5316 GB, free: 4.27 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.3819, allocations: 1.906 kB / 0.5316 GB, free: 4.27 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003588/0.3823, allocations: 300.5 kB / 0.5319 GB, free: 4.051 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.3823, allocations: 0.6562 kB / 0.5319 GB, free: 4.051 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001203/0.3824, allocations: 21.92 kB / 0.5319 GB, free: 4.043 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000525/0.3829, allocations: 145.6 kB / 0.5321 GB, free: 4 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.894e-05/0.3829, allocations: 4.25 kB / 0.5321 GB, free: 4 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002945/0.3859, allocations: 2.332 MB / 0.5344 GB, free: 2.25 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.3859, allocations: 1.375 kB / 0.5344 GB, free: 2.25 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001258/0.3871, allocations: 0.5784 MB / 0.5349 GB, free: 1.977 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.574e-05/0.3872, allocations: 29.09 kB / 0.5349 GB, free: 1.957 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.835e-05/0.3872, allocations: 6.938 kB / 0.535 GB, free: 1.953 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002617/0.3875, allocations: 32.53 kB / 0.535 GB, free: 1.945 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.197e-05/0.3876, allocations: 18.94 kB / 0.535 GB, free: 1.941 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.381e-05/0.3876, allocations: 3.125 kB / 0.535 GB, free: 1.941 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003398/0.3879, allocations: 197.6 kB / 0.5352 GB, free: 1.836 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3879, allocations: 1.438 kB / 0.5352 GB, free: 1.836 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005001/0.3884, allocations: 86.62 kB / 0.5353 GB, free: 1.812 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.001428/0.3898, allocations: 1.137 MB / 0.5364 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007167/0.3906, allocations: 291.1 kB / 0.5367 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.3906, allocations: 4.25 kB / 0.5367 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005866/0.3911, allocations: 267.8 kB / 0.5369 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004081/0.3916, allocations: 42.78 kB / 0.537 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004155/0.3957, allocations: 2.725 MB / 0.5396 GB, free: 14.98 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004339/0.3961, allocations: 0.7672 MB / 0.5404 GB, free: 14.28 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000162/0.3963, allocations: 43.77 kB / 0.5404 GB, free: 14.27 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001366/0.3964, allocations: 76.98 kB / 0.5405 GB, free: 14.21 MB / 398.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3964, allocations: 0 / 0.5405 GB, free: 14.21 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03941/0.4359, allocations: 6.505 MB / 0.5468 GB, free: 11.67 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.72/13.16, allocations: 3.984 kB / 0.5468 GB, free: 11.67 MB / 398.1 MB " [Timeout remaining time 647] (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: 16.089380840996455] Failed to read output from testmodel.py, exit status != 0: 13.278446566997445 13.308259679 12.933832749 Calling exit ...