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.005077/0.005077, allocations: 100.7 kB / 15.73 MB, free: 6.039 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.001175/0.001176, allocations: 186.9 kB / 16.67 MB, free: 5.977 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.37/1.37, allocations: 222.9 MB / 240.4 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2092/0.2092, allocations: 22.36 MB / 312.9 MB, free: 12.46 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001388/0.001388, allocations: 58.34 kB / 437.3 MB, free: 33.79 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1115, allocations: 54.97 MB / 492.2 MB, free: 1.02 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_within_two_limits): time 0.003246/0.1148, allocations: 2.057 MB / 494.3 MB, free: 14.95 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001462/0.1163, allocations: 0.6819 MB / 495 MB, free: 14.27 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002302/0.1165, allocations: 4 kB / 495 MB, free: 14.26 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003744/0.1169, allocations: 43.66 kB / 495 MB, free: 14.22 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002623/0.1172, allocations: 51.52 kB / 495.1 MB, free: 14.17 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004708/0.1177, allocations: 186.6 kB / 495.3 MB, free: 13.99 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004492/0.1181, allocations: 327.3 kB / 495.6 MB, free: 13.67 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002454/0.1184, allocations: 100.2 kB / 495.7 MB, free: 13.57 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002119/0.1186, allocations: 123.5 kB / 495.8 MB, free: 13.45 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002307/0.1189, allocations: 139.4 kB / 495.9 MB, free: 13.31 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.233e-05/0.1189, allocations: 24 kB / 496 MB, free: 13.29 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.69e-05/0.119, allocations: 28 kB / 496 MB, free: 13.26 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001206/0.1191, allocations: 79.69 kB / 496.1 MB, free: 13.18 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001268/0.1192, allocations: 123.3 kB / 496.2 MB, free: 13.06 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003325/0.1196, allocations: 295.8 kB / 496.5 MB, free: 12.77 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.1196, allocations: 3.938 kB / 496.5 MB, free: 12.77 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1196, allocations: 0 / 496.5 MB, free: 12.77 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.163e-05/0.1196, allocations: 0 / 496.5 MB, free: 12.77 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: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.001382/0.121, allocations: 0.6118 MB / 497.1 MB, free: 12.11 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.514e-05/0.1211, allocations: 16.02 kB / 497.1 MB, free: 12.09 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.815e-05/0.1212, allocations: 54.73 kB / 497.2 MB, free: 12.03 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.4e-05/0.1212, allocations: 24.66 kB / 497.2 MB, free: 12 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00059/0.1218, allocations: 326.6 kB / 497.5 MB, free: 11.65 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.886e-05/0.1219, allocations: 12.75 kB / 497.5 MB, free: 11.64 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.961e-05/0.1219, allocations: 20.38 kB / 497.5 MB, free: 11.62 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000501/0.1224, allocations: 262.1 kB / 497.8 MB, free: 11.35 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.607e-05/0.1225, allocations: 0 / 497.8 MB, free: 11.35 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.058e-05/0.1225, allocations: 8 kB / 497.8 MB, free: 11.34 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.758e-06/0.1225, allocations: 4 kB / 497.8 MB, free: 11.34 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004296/0.1229, allocations: 191.9 kB / 498 MB, free: 11.15 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001299/0.1242, allocations: 0.7069 MB / 498.7 MB, free: 10.39 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007899/0.1251, allocations: 242.4 kB / 498.9 MB, free: 10.14 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002196/0.1253, allocations: 112.7 kB / 499 MB, free: 10.03 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.978e-05/0.1253, allocations: 0 / 499 MB, free: 10.03 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.746e-05/0.1254, allocations: 34.56 kB / 499.1 MB, free: 9.984 MB / 366.1 MB Notification: Performance of pre-optimization done (n=17): time 1.623e-06/0.1254, allocations: 0 / 499.1 MB, free: 9.984 MB / 366.1 MB Notification: Performance of matching and sorting (n=17): time 0.002808/0.1282, allocations: 0.8216 MB / 499.9 MB, free: 9.137 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001075/0.1283, allocations: 106.8 kB / 500 MB, free: 9.008 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005128/0.1288, allocations: 268.9 kB / 0.4885 GB, free: 8.738 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.786e-05/0.1289, allocations: 29.7 kB / 0.4886 GB, free: 8.703 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001565/0.1291, allocations: 160.2 kB / 0.4887 GB, free: 8.539 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.964e-05/0.1291, allocations: 59.19 kB / 0.4888 GB, free: 8.48 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001071/0.1292, allocations: 45.69 kB / 0.4888 GB, free: 8.43 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.1294, allocations: 334.8 kB / 0.4891 GB, free: 8.094 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002196/0.1296, allocations: 88.8 kB / 0.4892 GB, free: 8.004 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002532/0.1299, allocations: 146.8 kB / 0.4894 GB, free: 7.848 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004213/0.1303, allocations: 208.7 kB / 0.4896 GB, free: 7.637 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.1304, allocations: 4.031 kB / 0.4896 GB, free: 7.633 MB / 366.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005734/0.1309, allocations: 265.2 kB / 0.4898 GB, free: 7.367 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.009e-05/0.131, allocations: 4 kB / 0.4898 GB, free: 7.363 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-06/0.131, allocations: 0 / 0.4898 GB, free: 7.363 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.114e-05/0.131, allocations: 7.938 kB / 0.4898 GB, free: 7.355 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003193/0.1313, allocations: 55.95 kB / 0.4899 GB, free: 7.301 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.126e-05/0.1314, allocations: 8 kB / 0.4899 GB, free: 7.293 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002521/0.1316, allocations: 39.81 kB / 0.4899 GB, free: 7.254 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.89e-05/0.1316, allocations: 4 kB / 0.4899 GB, free: 7.25 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001924/0.1318, allocations: 172.1 kB / 0.4901 GB, free: 7.078 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001387/0.132, allocations: 108.1 kB / 0.4902 GB, free: 6.957 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002271/0.1322, allocations: 160.8 kB / 0.4904 GB, free: 6.793 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.062e-06/0.1322, allocations: 0 / 0.4904 GB, free: 6.793 MB / 366.1 MB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0003337/0.1326, allocations: 224 kB / 0.4906 GB, free: 6.57 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/0.1326, allocations: 11.92 kB / 0.4906 GB, free: 6.559 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.204e-06/0.1326, allocations: 0 / 0.4906 GB, free: 6.559 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.178e-06/0.1326, allocations: 4 kB / 0.4906 GB, free: 6.555 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002478/0.1329, allocations: 43.98 kB / 0.4906 GB, free: 6.512 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.251e-05/0.1329, allocations: 8.047 kB / 0.4906 GB, free: 6.504 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002095/0.1331, allocations: 31.77 kB / 0.4907 GB, free: 6.473 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.653e-05/0.1331, allocations: 8 kB / 0.4907 GB, free: 6.465 MB / 366.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.0001339/0.1333, allocations: 192.9 kB / 0.4909 GB, free: 6.27 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.684e-05/0.1333, allocations: 31.64 kB / 0.4909 GB, free: 6.238 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001073/0.1344, allocations: 408.1 kB / 0.4913 GB, free: 5.828 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.225e-06/0.1344, allocations: 4 kB / 0.4913 GB, free: 5.824 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.1344, allocations: 0 / 0.4913 GB, free: 5.824 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.1345, allocations: 4 kB / 0.4913 GB, free: 5.82 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000429/0.1349, allocations: 325.4 kB / 0.4916 GB, free: 5.453 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.1349, allocations: 0 / 0.4916 GB, free: 5.453 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001185/0.135, allocations: 19.92 kB / 0.4916 GB, free: 5.434 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005427/0.1356, allocations: 144.7 kB / 0.4917 GB, free: 5.289 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.386e-05/0.1356, allocations: 0 / 0.4917 GB, free: 5.289 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003464/0.1391, allocations: 2.443 MB / 0.4941 GB, free: 2.707 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.1391, allocations: 0 / 0.4941 GB, free: 2.707 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001263/0.1404, allocations: 0.5835 MB / 0.4947 GB, free: 2.105 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.408e-05/0.1405, allocations: 104.8 kB / 0.4948 GB, free: 1.984 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.478e-05/0.1405, allocations: 4.031 kB / 0.4948 GB, free: 1.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002564/0.1408, allocations: 27.97 kB / 0.4948 GB, free: 1.953 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.045e-05/0.1409, allocations: 19.97 kB / 0.4949 GB, free: 1.934 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.269e-05/0.1409, allocations: 4 kB / 0.4949 GB, free: 1.93 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003356/0.1412, allocations: 200.4 kB / 0.495 GB, free: 1.734 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1412, allocations: 0 / 0.495 GB, free: 1.734 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004751/0.1417, allocations: 87.69 kB / 0.4951 GB, free: 1.648 MB / 366.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.001598/0.1433, allocations: 1.123 MB / 0.4962 GB, free: 0.4922 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006798/0.144, allocations: 301.5 kB / 0.4965 GB, free: 204 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.144, allocations: 0 / 0.4965 GB, free: 204 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006246/0.1447, allocations: 282.7 kB / 0.4968 GB, free: 15.91 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004221/0.1451, allocations: 49.36 kB / 0.4968 GB, free: 15.87 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004082/0.1492, allocations: 2.728 MB / 0.4995 GB, free: 13.05 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003501/0.1496, allocations: 0.7598 MB / 0.5002 GB, free: 12.26 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000153/0.1497, allocations: 41.52 kB / 0.5003 GB, free: 12.22 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001261/0.1499, allocations: 79.34 kB / 0.5004 GB, free: 12.14 MB / 382.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1499, allocations: 0 / 0.5004 GB, free: 12.14 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03111/0.181, allocations: 6.435 MB / 0.5066 GB, free: 5.855 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.15/11.34, allocations: 14.98 kB / 0.5066 GB, free: 5.844 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_control_structures_Keep_within_two_limits_fmu --startTime=0 --stopTime=150 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_control_structures_Keep_within_two_limits.fmu > AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe 2>&1)