Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Smith_predictor.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.001479/0.001479, allocations: 107.4 kB / 16.46 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.001791/0.001791, allocations: 210.4 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.459/1.459, allocations: 230.6 MB / 252.8 MB, free: 8.965 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.1432/0.1432, allocations: 24.11 MB / 333 MB, free: 12.62 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) Running command: "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Smith_predictor,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Smith_predictor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Smith_predictor,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Smith_predictor",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.002957/0.002957, allocations: 71.89 kB / 467.9 MB, free: 9.078 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3266/0.3295, allocations: 59.56 MB / 0.5151 GB, free: 9.629 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Smith_predictor): time 0.002891/0.3324, allocations: 1.84 MB / 0.5169 GB, free: 8.449 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001191/0.3336, allocations: 0.6433 MB / 0.5175 GB, free: 8.012 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001081/0.3337, allocations: 6.5 kB / 0.5175 GB, free: 8.008 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003303/0.334, allocations: 59.75 kB / 0.5175 GB, free: 7.98 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002021/0.3343, allocations: 66.8 kB / 0.5176 GB, free: 7.949 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003553/0.3346, allocations: 125.4 kB / 0.5177 GB, free: 7.887 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003718/0.335, allocations: 313.5 kB / 0.518 GB, free: 7.773 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000132/0.3351, allocations: 46.02 kB / 0.5181 GB, free: 7.742 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001718/0.3353, allocations: 132.4 kB / 0.5182 GB, free: 7.695 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002619/0.3355, allocations: 174.2 kB / 0.5184 GB, free: 7.637 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.912e-05/0.3356, allocations: 20.5 kB / 0.5184 GB, free: 7.637 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.777e-05/0.3356, allocations: 31.22 kB / 0.5184 GB, free: 7.625 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001235/0.3358, allocations: 95.53 kB / 0.5185 GB, free: 7.586 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.293e-05/0.3358, allocations: 105.9 kB / 0.5186 GB, free: 7.512 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002777/0.3361, allocations: 239.3 kB / 0.5188 GB, free: 7.418 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.3361, allocations: 0.5156 kB / 0.5188 GB, free: 7.418 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3361, allocations: 1.156 kB / 0.5188 GB, free: 7.418 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.843e-06/0.3361, allocations: 0 / 0.5188 GB, free: 7.418 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.001602/0.3377, allocations: 0.6896 MB / 0.5195 GB, free: 6.934 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.81e-05/0.3378, allocations: 11.52 kB / 0.5195 GB, free: 6.934 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.698e-05/0.3378, allocations: 45.86 kB / 0.5196 GB, free: 6.887 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.747e-05/0.3379, allocations: 30.03 kB / 0.5196 GB, free: 6.871 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008302/0.3387, allocations: 359.6 kB / 0.5199 GB, free: 6.621 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.039e-05/0.3388, allocations: 10.53 kB / 0.5199 GB, free: 6.617 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.961e-05/0.3388, allocations: 21.45 kB / 0.52 GB, free: 6.605 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003353/0.3391, allocations: 187.2 kB / 0.5201 GB, free: 6.523 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.542e-05/0.3392, allocations: 5 kB / 0.5201 GB, free: 6.52 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.995e-05/0.3392, allocations: 5.953 kB / 0.5202 GB, free: 6.516 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.3392, allocations: 2.688 kB / 0.5202 GB, free: 6.516 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000329/0.3395, allocations: 177.6 kB / 0.5203 GB, free: 6.465 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001093/0.3406, allocations: 0.6438 MB / 0.521 GB, free: 6.078 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003264/0.3409, allocations: 216.5 kB / 0.5212 GB, free: 5.988 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001659/0.3411, allocations: 105.1 kB / 0.5213 GB, free: 5.949 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.576e-05/0.3411, allocations: 6.359 kB / 0.5213 GB, free: 5.945 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.433e-05/0.3412, allocations: 47.22 kB / 0.5213 GB, free: 5.895 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.663e-06/0.3412, allocations: 0 / 0.5213 GB, free: 5.895 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.001421/0.3426, allocations: 0.5742 MB / 0.5219 GB, free: 5.641 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.213e-05/0.3426, allocations: 53.62 kB / 0.5219 GB, free: 5.578 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007353/0.3433, allocations: 351.4 kB / 0.5223 GB, free: 5.414 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.276e-05/0.3434, allocations: 30.73 kB / 0.5223 GB, free: 5.379 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.028e-05/0.3434, allocations: 144.8 kB / 0.5224 GB, free: 5.25 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.229e-05/0.3435, allocations: 79.91 kB / 0.5225 GB, free: 5.188 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.182e-05/0.3436, allocations: 44.97 kB / 0.5225 GB, free: 5.156 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.09e-05/0.3436, allocations: 336.4 kB / 0.5229 GB, free: 4.836 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001533/0.3438, allocations: 91.36 kB / 0.523 GB, free: 4.809 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001428/0.3439, allocations: 94.77 kB / 0.523 GB, free: 4.781 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001954/0.3459, allocations: 0.6283 MB / 0.5237 GB, free: 4.621 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.3459, allocations: 0 / 0.5237 GB, free: 4.621 MB / 382.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0007991/0.3467, allocations: 419.9 kB / 0.5241 GB, free: 4.457 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.719e-05/0.3467, allocations: 5.406 kB / 0.5241 GB, free: 4.457 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.3467, allocations: 4.453 kB / 0.5241 GB, free: 4.453 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003428/0.347, allocations: 107.2 kB / 0.5242 GB, free: 4.422 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001622/0.3472, allocations: 30.34 kB / 0.5242 GB, free: 4.422 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001849/0.349, allocations: 2.094 MB / 0.5262 GB, free: 2.645 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003805/0.3494, allocations: 54.45 kB / 0.5263 GB, free: 2.633 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.897e-05/0.3494, allocations: 9.219 kB / 0.5263 GB, free: 2.629 MB / 382.1 MB Warning: Assuming fixed start value for the following 6 variables: K.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] K.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Mr.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Mr.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Pr.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Pr.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 (20): * Single equations (assignments): 19 * 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): 1 system {(1,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002213/0.3497, allocations: 159.1 kB / 0.5265 GB, free: 2.496 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.136e-05/0.3497, allocations: 27.44 kB / 0.5265 GB, free: 2.48 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.696e-05/0.3498, allocations: 44.83 kB / 0.5265 GB, free: 2.453 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.696e-06/0.3498, allocations: 2.219 kB / 0.5265 GB, free: 2.453 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/0.3498, allocations: 1.062 kB / 0.5265 GB, free: 2.453 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.3498, allocations: 6.438 kB / 0.5265 GB, free: 2.449 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003644/0.3502, allocations: 338.5 kB / 0.5269 GB, free: 2.195 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.3502, allocations: 2 kB / 0.5269 GB, free: 2.195 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002093/0.3504, allocations: 32.08 kB / 0.5269 GB, free: 2.191 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002212/0.3506, allocations: 72.3 kB / 0.527 GB, free: 2.168 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.621e-05/0.3507, allocations: 4.172 kB / 0.527 GB, free: 2.168 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001319/0.352, allocations: 1.857 MB / 0.5288 GB, free: 488 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.352, allocations: 0.6094 kB / 0.5288 GB, free: 488 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009071/0.3529, allocations: 0.5432 MB / 0.5293 GB, free: 200 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.73e-05/0.3529, allocations: 110.2 kB / 0.5294 GB, free: 84 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.635e-05/0.353, allocations: 4.266 kB / 0.5294 GB, free: 84 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003685/0.3533, allocations: 49.02 kB / 0.5295 GB, free: 76 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.336e-05/0.3534, allocations: 19.98 kB / 0.5295 GB, free: 72 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.672e-05/0.3534, allocations: 8.859 kB / 0.5295 GB, free: 68 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006862/0.3541, allocations: 274.7 kB / 0.5298 GB, free: 15.95 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3541, allocations: 0 / 0.5298 GB, free: 15.95 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004214/0.3545, allocations: 55.56 kB / 0.5298 GB, free: 15.94 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (Pr.x_scaled[1],Pr.x_scaled[2],Mr.x_scaled[1],Mr.x_scaled[2],K.x_scaled[1],K.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 (17): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001448/0.356, allocations: 1.091 MB / 0.5309 GB, free: 15.12 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009838/0.357, allocations: 377.6 kB / 0.5312 GB, free: 14.93 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.644e-06/0.357, allocations: 0.75 kB / 0.5312 GB, free: 14.93 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005338/0.3575, allocations: 261.2 kB / 0.5315 GB, free: 14.77 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004213/0.3579, allocations: 46.81 kB / 0.5315 GB, free: 14.75 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005974/0.3639, allocations: 3.193 MB / 0.5346 GB, free: 12.94 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004441/0.3643, allocations: 0.7775 MB / 0.5354 GB, free: 12.23 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000148/0.3645, allocations: 51.7 kB / 0.5355 GB, free: 12.23 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001412/0.3646, allocations: 73.11 kB / 0.5355 GB, free: 12.18 MB / 398.1 MB Notification: Performance of SimCode: time 6.52e-07/0.3646, allocations: 1.281 kB / 0.5355 GB, free: 12.18 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04502/0.4097, allocations: 5.895 MB / 0.5413 GB, free: 10.21 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.29/10.7, allocations: 9.25 kB / 0.5413 GB, free: 10.2 MB / 398.1 MB " [Timeout remaining time 649] (rm -f AES_AES.Coursework.Typical_control_structures.Smith_predictor.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Smith_predictor.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Smith_predictor.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Smith_predictor.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Typical_control_structures.Smith_predictor_res.csv --start-time 0 --stop-time 500 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1 AES_AES_Coursework_Typical_control_structures_Smith_predictor.fmu > AES_AES.Coursework.Typical_control_structures.Smith_predictor.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.70788389397785] Failed to read output from testmodel.py, exit status != 0: 10.786719576921314 10.800404923 10.460797971 Calling exit ...