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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007757/0.007757, allocations: 97 kB / 15.73 MB, free: 5.949 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001834/0.001834, allocations: 193 kB / 16.67 MB, free: 5.871 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.349/1.349, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.0893/0.0893, allocations: 22.34 MB / 312.9 MB, free: 8.852 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001347/0.001347, allocations: 67.91 kB / 437.2 MB, free: 11.55 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09907/0.1004, allocations: 54.95 MB / 492.2 MB, free: 4.551 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_below_limit): time 0.002869/0.1033, allocations: 1.818 MB / 494 MB, free: 2.719 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001003/0.1044, allocations: 0.5965 MB / 494.6 MB, free: 2.117 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000106/0.1045, allocations: 0 / 494.6 MB, free: 2.117 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002273/0.1047, allocations: 31.8 kB / 494.6 MB, free: 2.086 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001472/0.1049, allocations: 43.7 kB / 494.7 MB, free: 2.043 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00029/0.1052, allocations: 111.8 kB / 494.8 MB, free: 1.934 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002455/0.1055, allocations: 219.5 kB / 495 MB, free: 1.719 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001298/0.1056, allocations: 57.47 kB / 495.1 MB, free: 1.66 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001334/0.1057, allocations: 87.67 kB / 495.2 MB, free: 1.574 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001724/0.1059, allocations: 95.59 kB / 495.2 MB, free: 1.48 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.572e-05/0.106, allocations: 16 kB / 495.3 MB, free: 1.465 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.153e-05/0.106, allocations: 20 kB / 495.3 MB, free: 1.445 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.299e-05/0.1061, allocations: 51.88 kB / 495.3 MB, free: 1.395 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 8.37e-05/0.1062, allocations: 79.53 kB / 495.4 MB, free: 1.316 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000238/0.1064, allocations: 187.2 kB / 495.6 MB, free: 1.133 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.337e-06/0.1065, allocations: 0 / 495.6 MB, free: 1.133 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1065, allocations: 0 / 495.6 MB, free: 1.133 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.1065, allocations: 0 / 495.6 MB, free: 1.133 MB / 366.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.001087/0.1076, allocations: 0.5222 MB / 496.1 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.1076, allocations: 16.02 kB / 496.1 MB, free: 0.543 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.069e-05/0.1077, allocations: 50.69 kB / 496.2 MB, free: 496 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.071e-05/0.1077, allocations: 16.84 kB / 496.2 MB, free: 480 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004715/0.1082, allocations: 268.9 kB / 496.5 MB, free: 168 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.322e-05/0.1082, allocations: 8.609 kB / 496.5 MB, free: 160 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.342e-05/0.1083, allocations: 12.38 kB / 496.5 MB, free: 148 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003346/0.1086, allocations: 179.6 kB / 496.7 MB, free: 15.96 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.1086, allocations: 0 / 496.7 MB, free: 15.96 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.826e-05/0.1087, allocations: 0 / 496.7 MB, free: 15.96 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.1087, allocations: 7.938 kB / 496.7 MB, free: 15.95 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002785/0.1089, allocations: 116.6 kB / 496.8 MB, free: 15.84 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000902/0.1099, allocations: 0.5361 MB / 497.3 MB, free: 15.25 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005402/0.1104, allocations: 194.5 kB / 497.5 MB, free: 15.05 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000137/0.1106, allocations: 72.81 kB / 497.6 MB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.028e-05/0.1106, allocations: 3.984 kB / 497.6 MB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.347e-05/0.1106, allocations: 34.5 kB / 497.6 MB, free: 14.93 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.332e-06/0.1106, allocations: 0 / 497.6 MB, free: 14.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.001657/0.1123, allocations: 0.5305 MB / 498.1 MB, free: 14.38 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.052e-05/0.1124, allocations: 81.11 kB / 498.2 MB, free: 14.28 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003621/0.1127, allocations: 211.2 kB / 498.4 MB, free: 14.06 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.07e-05/0.1128, allocations: 29.7 kB / 498.5 MB, free: 14.03 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.921e-05/0.1129, allocations: 131.9 kB / 498.6 MB, free: 13.89 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.088e-05/0.1129, allocations: 51.59 kB / 498.6 MB, free: 13.84 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.091e-05/0.113, allocations: 33.7 kB / 498.7 MB, free: 13.8 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001115/0.1131, allocations: 330.8 kB / 499 MB, free: 13.47 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001396/0.1132, allocations: 72.75 kB / 499.1 MB, free: 13.4 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001504/0.1134, allocations: 86.53 kB / 499.1 MB, free: 13.3 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002635/0.1137, allocations: 140 kB / 499.3 MB, free: 13.16 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.1137, allocations: 4.031 kB / 499.3 MB, free: 13.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003544/0.1141, allocations: 189.5 kB / 499.5 MB, free: 12.97 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.377e-05/0.1141, allocations: 4 kB / 499.5 MB, free: 12.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.032e-06/0.1141, allocations: 0 / 499.5 MB, free: 12.96 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.65e-05/0.1141, allocations: 4 kB / 499.5 MB, free: 12.96 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002524/0.1144, allocations: 39.97 kB / 499.5 MB, free: 12.92 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.976e-06/0.1144, allocations: 0 / 499.5 MB, free: 12.92 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001894/0.1146, allocations: 43.77 kB / 499.6 MB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.282e-05/0.1146, allocations: 4 kB / 499.6 MB, free: 12.88 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001525/0.1148, allocations: 148.1 kB / 499.7 MB, free: 12.73 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 9.491e-05/0.1149, allocations: 74.55 kB / 499.8 MB, free: 12.64 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001783/0.115, allocations: 117.1 kB / 499.9 MB, free: 12.53 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.477e-06/0.1151, allocations: 3.984 kB / 499.9 MB, free: 12.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization_lambda0): time 0.0002674/0.1153, allocations: 169.5 kB / 0.4883 GB, free: 12.35 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.007e-05/0.1154, allocations: 18.12 kB / 0.4884 GB, free: 12.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.623e-06/0.1154, allocations: 0 / 0.4884 GB, free: 12.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.545e-06/0.1154, allocations: 0 / 0.4884 GB, free: 12.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002131/0.1156, allocations: 35.97 kB / 0.4884 GB, free: 12.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.037e-06/0.1156, allocations: 7.938 kB / 0.4884 GB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001656/0.1158, allocations: 15.98 kB / 0.4884 GB, free: 12.28 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.606e-06/0.1158, allocations: 4 kB / 0.4884 GB, free: 12.27 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 0.0001069/0.1159, allocations: 200.9 kB / 0.4886 GB, free: 12.07 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.412e-05/0.116, allocations: 19.89 kB / 0.4886 GB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006796/0.1166, allocations: 278.8 kB / 0.4889 GB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.1167, allocations: 3.938 kB / 0.4889 GB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.1167, allocations: 4 kB / 0.4889 GB, free: 11.76 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.1167, allocations: 11.98 kB / 0.4889 GB, free: 11.75 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003065/0.117, allocations: 273.4 kB / 0.4892 GB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.117, allocations: 0 / 0.4892 GB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.622e-05/0.1171, allocations: 8 kB / 0.4892 GB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003339/0.1174, allocations: 88.72 kB / 0.4893 GB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.659e-05/0.1175, allocations: 8 kB / 0.4893 GB, free: 11.33 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002065/0.1195, allocations: 1.825 MB / 0.4911 GB, free: 9.363 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.1196, allocations: 8 kB / 0.4911 GB, free: 9.355 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007879/0.1204, allocations: 440 kB / 0.4915 GB, free: 8.906 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.521e-05/0.1204, allocations: 93.02 kB / 0.4916 GB, free: 8.797 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.84e-05/0.1205, allocations: 8.188 kB / 0.4916 GB, free: 8.789 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002174/0.1207, allocations: 24.02 kB / 0.4916 GB, free: 8.766 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.664e-05/0.1208, allocations: 11.98 kB / 0.4916 GB, free: 8.754 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.153e-05/0.1208, allocations: 7.984 kB / 0.4916 GB, free: 8.746 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002827/0.1211, allocations: 169.1 kB / 0.4918 GB, free: 8.582 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.1211, allocations: 4 kB / 0.4918 GB, free: 8.578 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003571/0.1214, allocations: 55.89 kB / 0.4918 GB, free: 8.523 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.001081/0.1225, allocations: 0.9669 MB / 0.4928 GB, free: 7.527 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004371/0.123, allocations: 219.5 kB / 0.493 GB, free: 7.316 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.123, allocations: 0 / 0.493 GB, free: 7.316 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003406/0.1233, allocations: 214.7 kB / 0.4932 GB, free: 7.094 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003351/0.1237, allocations: 31.92 kB / 0.4932 GB, free: 7.062 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00305/0.1267, allocations: 2.212 MB / 0.4954 GB, free: 4.766 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002925/0.127, allocations: 0.7281 MB / 0.4961 GB, free: 4.012 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000113/0.1272, allocations: 33.05 kB / 0.4961 GB, free: 3.973 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.561e-05/0.1273, allocations: 51.42 kB / 0.4962 GB, free: 3.926 MB / 382.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1273, allocations: 0 / 0.4962 GB, free: 3.926 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2429/0.3702, allocations: 4.531 MB / 0.5006 GB, free: 22.33 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.97/11.34, allocations: 15.02 kB / 0.5006 GB, free: 22.33 MB / 382.1 MB (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)