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.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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005418/0.005418, allocations: 102.7 kB / 15.74 MB, free: 5.551 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.001231/0.001231, allocations: 194.6 kB / 16.67 MB, free: 5.48 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.31/1.31, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.093/0.093, allocations: 22.32 MB / 312.9 MB, free: 8.891 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 63.89 kB / 437.2 MB, free: 11.69 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1054, allocations: 54.96 MB / 492.2 MB, free: 4.684 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_within_two_limits): time 0.00402/0.1095, allocations: 2.046 MB / 494.3 MB, free: 2.625 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0015/0.111, allocations: 0.6977 MB / 494.9 MB, free: 1.922 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002437/0.1113, allocations: 7.938 kB / 495 MB, free: 1.914 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003899/0.1117, allocations: 35.66 kB / 495 MB, free: 1.879 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000331/0.1121, allocations: 59.58 kB / 495 MB, free: 1.82 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005241/0.1126, allocations: 175.7 kB / 495.2 MB, free: 1.648 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005006/0.1131, allocations: 327.4 kB / 495.5 MB, free: 1.328 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000232/0.1134, allocations: 104.1 kB / 495.6 MB, free: 1.223 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002182/0.1136, allocations: 127.5 kB / 495.8 MB, free: 1.098 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002335/0.1138, allocations: 135.4 kB / 495.9 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.183e-05/0.1139, allocations: 24 kB / 495.9 MB, free: 0.9414 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.24e-05/0.114, allocations: 28 kB / 495.9 MB, free: 0.9141 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000127/0.1141, allocations: 79.8 kB / 496 MB, free: 0.8359 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001285/0.1142, allocations: 127.2 kB / 496.2 MB, free: 0.7109 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003597/0.1146, allocations: 290.8 kB / 496.4 MB, free: 436 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.1146, allocations: 3.984 kB / 496.4 MB, free: 432 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1146, allocations: 0 / 496.4 MB, free: 432 kB / 366.1 MB Notification: Performance of Transformations before backend: time 1.054e-05/0.1146, allocations: 0 / 496.4 MB, free: 432 kB / 366.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.001346/0.116, allocations: 0.6156 MB / 497.1 MB, free: 15.76 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/0.116, allocations: 12.03 kB / 497.1 MB, free: 15.75 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.91e-05/0.1161, allocations: 62.66 kB / 497.1 MB, free: 15.68 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.715e-05/0.1162, allocations: 28.75 kB / 497.2 MB, free: 15.65 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005837/0.1168, allocations: 322.8 kB / 497.5 MB, free: 15.3 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.827e-05/0.1168, allocations: 20.67 kB / 497.5 MB, free: 15.28 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.67e-05/0.1169, allocations: 20.38 kB / 497.5 MB, free: 15.26 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004646/0.1174, allocations: 258.2 kB / 497.8 MB, free: 14.99 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.567e-05/0.1174, allocations: 0 / 497.8 MB, free: 14.99 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.736e-05/0.1174, allocations: 8 kB / 497.8 MB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.303e-06/0.1174, allocations: 7.938 kB / 497.8 MB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004405/0.1179, allocations: 183.9 kB / 498 MB, free: 14.8 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001375/0.1193, allocations: 0.711 MB / 498.7 MB, free: 14.03 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007985/0.1201, allocations: 246.5 kB / 498.9 MB, free: 13.78 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000214/0.1203, allocations: 103.1 kB / 499 MB, free: 13.68 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.786e-05/0.1203, allocations: 8 kB / 499 MB, free: 13.67 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.36e-05/0.1204, allocations: 30.56 kB / 499 MB, free: 13.63 MB / 382.1 MB Notification: Performance of pre-optimization done (n=17): time 2.765e-06/0.1204, allocations: 0 / 499 MB, free: 13.63 MB / 382.1 MB Notification: Performance of matching and sorting (n=17): time 0.002762/0.1231, allocations: 0.8152 MB / 499.9 MB, free: 12.79 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.921e-05/0.1233, allocations: 110.8 kB / 500 MB, free: 12.66 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000444/0.1237, allocations: 256.9 kB / 0.4885 GB, free: 12.4 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.925e-05/0.1238, allocations: 29.7 kB / 0.4885 GB, free: 12.36 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001347/0.1239, allocations: 172.4 kB / 0.4887 GB, free: 12.19 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.838e-05/0.124, allocations: 63.44 kB / 0.4888 GB, free: 12.12 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001056/0.1241, allocations: 45.69 kB / 0.4888 GB, free: 12.07 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.1242, allocations: 330.8 kB / 0.4891 GB, free: 11.74 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002284/0.1245, allocations: 92.8 kB / 0.4892 GB, free: 11.65 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002533/0.1247, allocations: 140.2 kB / 0.4893 GB, free: 11.5 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00043/0.1252, allocations: 201.5 kB / 0.4895 GB, free: 11.29 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.938e-06/0.1252, allocations: 8.031 kB / 0.4895 GB, free: 11.29 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005548/0.1258, allocations: 265.3 kB / 0.4898 GB, free: 11.02 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.1258, allocations: 7.938 kB / 0.4898 GB, free: 11.01 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.1258, allocations: 4 kB / 0.4898 GB, free: 11.01 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.932e-05/0.1258, allocations: 3.938 kB / 0.4898 GB, free: 11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003357/0.1262, allocations: 63.89 kB / 0.4899 GB, free: 10.94 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.556e-06/0.1262, allocations: 64 / 0.4899 GB, free: 10.94 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002684/0.1265, allocations: 43.86 kB / 0.4899 GB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.976e-05/0.1265, allocations: 4 kB / 0.4899 GB, free: 10.89 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002014/0.1267, allocations: 172.1 kB / 0.4901 GB, free: 10.72 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00016/0.1269, allocations: 109.7 kB / 0.4902 GB, free: 10.6 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002479/0.1271, allocations: 163.9 kB / 0.4903 GB, free: 10.43 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.353e-06/0.1271, allocations: 0 / 0.4903 GB, free: 10.43 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0003596/0.1275, allocations: 223.1 kB / 0.4905 GB, free: 10.21 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.096e-05/0.1275, allocations: 7.938 kB / 0.4906 GB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.1275, allocations: 4 kB / 0.4906 GB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.08e-06/0.1275, allocations: 3.984 kB / 0.4906 GB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002606/0.1278, allocations: 51.86 kB / 0.4906 GB, free: 10.14 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.986e-06/0.1278, allocations: 0 / 0.4906 GB, free: 10.14 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002369/0.1281, allocations: 35.92 kB / 0.4906 GB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.616e-05/0.1281, allocations: 8 kB / 0.4907 GB, free: 10.1 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 0.0001303/0.1282, allocations: 192.9 kB / 0.4908 GB, free: 9.906 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.036e-05/0.1283, allocations: 27.8 kB / 0.4909 GB, free: 9.879 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001096/0.1294, allocations: 410 kB / 0.4913 GB, free: 9.469 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.1294, allocations: 4 kB / 0.4913 GB, free: 9.465 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.1294, allocations: 0 / 0.4913 GB, free: 9.465 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.1294, allocations: 0 / 0.4913 GB, free: 9.465 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003914/0.1298, allocations: 333.4 kB / 0.4916 GB, free: 9.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.1298, allocations: 4 kB / 0.4916 GB, free: 9.086 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001275/0.13, allocations: 19.86 kB / 0.4916 GB, free: 9.066 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000524/0.1305, allocations: 140.7 kB / 0.4917 GB, free: 8.926 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.323e-05/0.1306, allocations: 4 kB / 0.4917 GB, free: 8.922 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003584/0.1341, allocations: 2.436 MB / 0.4941 GB, free: 6.348 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/0.1342, allocations: 4.031 kB / 0.4941 GB, free: 6.344 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001225/0.1354, allocations: 0.5881 MB / 0.4947 GB, free: 5.738 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.294e-05/0.1355, allocations: 100.9 kB / 0.4948 GB, free: 5.621 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.934e-05/0.1355, allocations: 8 kB / 0.4948 GB, free: 5.613 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002633/0.1358, allocations: 28.19 kB / 0.4948 GB, free: 5.586 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.432e-05/0.1359, allocations: 15.92 kB / 0.4948 GB, free: 5.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.558e-05/0.1359, allocations: 15.92 kB / 0.4949 GB, free: 5.555 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003443/0.1362, allocations: 200.4 kB / 0.495 GB, free: 5.359 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1363, allocations: 0 / 0.495 GB, free: 5.359 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004693/0.1367, allocations: 87.78 kB / 0.4951 GB, free: 5.273 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.001536/0.1383, allocations: 1.119 MB / 0.4962 GB, free: 4.121 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006752/0.139, allocations: 306.5 kB / 0.4965 GB, free: 3.824 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.139, allocations: 3.938 kB / 0.4965 GB, free: 3.82 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000578/0.1396, allocations: 282.8 kB / 0.4968 GB, free: 3.531 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000409/0.14, allocations: 46.69 kB / 0.4968 GB, free: 3.488 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004114/0.1441, allocations: 2.733 MB / 0.4995 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2129/0.357, allocations: 0.7519 MB / 0.5002 GB, free: 21.94 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002089/0.3573, allocations: 41.88 kB / 0.5003 GB, free: 21.94 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001452/0.3574, allocations: 80.45 kB / 0.5004 GB, free: 21.93 MB / 382.1 MB Notification: Performance of SimCode: time 8.61e-07/0.3574, allocations: 0.75 kB / 0.5004 GB, free: 21.93 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02652/0.384, allocations: 6.293 MB / 0.5065 GB, free: 21.43 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/11.53, allocations: 2.812 kB / 0.5065 GB, free: 21.43 MB / 382.1 MB (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)