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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001301/0.001301, allocations: 108.3 kB / 16.4 MB, free: 6.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001325/0.001326, allocations: 196.5 kB / 19.35 MB, free: 3.73 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.431/1.431, allocations: 222.9 MB / 245.1 MB, free: 15 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.09838/0.09838, allocations: 22.32 MB / 319.5 MB, free: 6.766 MB / 254.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.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002613/0.002613, allocations: 75.89 kB / 446 MB, free: 7.914 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1153, allocations: 54.94 MB / 0.4892 GB, free: 0.9258 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_below_limit): time 0.003136/0.1184, allocations: 1.834 MB / 0.4909 GB, free: 15.08 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001054/0.1195, allocations: 0.6 MB / 0.4915 GB, free: 14.47 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.052e-05/0.1196, allocations: 0 / 0.4915 GB, free: 14.47 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002644/0.1199, allocations: 31.73 kB / 0.4916 GB, free: 14.44 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001501/0.1201, allocations: 43.7 kB / 0.4916 GB, free: 14.4 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000272/0.1203, allocations: 103.9 kB / 0.4917 GB, free: 14.3 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002778/0.1206, allocations: 215.6 kB / 0.4919 GB, free: 14.09 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001414/0.1208, allocations: 57.52 kB / 0.492 GB, free: 14.03 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001276/0.1209, allocations: 83.64 kB / 0.492 GB, free: 13.95 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001708/0.1211, allocations: 95.64 kB / 0.4921 GB, free: 13.85 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.92e-05/0.1211, allocations: 16 kB / 0.4922 GB, free: 13.84 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.945e-05/0.1212, allocations: 20 kB / 0.4922 GB, free: 13.82 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001109/0.1213, allocations: 55.81 kB / 0.4922 GB, free: 13.76 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.622e-05/0.1214, allocations: 79.47 kB / 0.4923 GB, free: 13.68 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002421/0.1217, allocations: 183.3 kB / 0.4925 GB, free: 13.5 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.1217, allocations: 0 / 0.4925 GB, free: 13.5 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1217, allocations: 0 / 0.4925 GB, free: 13.5 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.611e-06/0.1217, allocations: 0 / 0.4925 GB, free: 13.5 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: 27 * Number of variables: 27 Notification: Performance of Generate backend data structure: time 0.001087/0.1228, allocations: 0.5338 MB / 0.493 GB, free: 12.92 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.714e-05/0.1228, allocations: 8.031 kB / 0.493 GB, free: 12.91 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.769e-05/0.1229, allocations: 42.73 kB / 0.493 GB, free: 12.86 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.556e-05/0.1229, allocations: 20.84 kB / 0.4931 GB, free: 12.84 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005146/0.1234, allocations: 280.7 kB / 0.4933 GB, free: 12.52 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.492e-05/0.1235, allocations: 12.61 kB / 0.4933 GB, free: 12.51 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.125e-05/0.1235, allocations: 16.38 kB / 0.4934 GB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003303/0.1239, allocations: 163.9 kB / 0.4935 GB, free: 12.33 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.68e-05/0.1239, allocations: 4 kB / 0.4935 GB, free: 12.32 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.878e-05/0.1239, allocations: 4 kB / 0.4935 GB, free: 12.32 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.1239, allocations: 4 kB / 0.4935 GB, free: 12.32 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002869/0.1242, allocations: 116.6 kB / 0.4936 GB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001104/0.1253, allocations: 0.5399 MB / 0.4942 GB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006111/0.1259, allocations: 186.6 kB / 0.4943 GB, free: 11.42 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001632/0.1261, allocations: 68.77 kB / 0.4944 GB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.59e-05/0.1262, allocations: 4 kB / 0.4944 GB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.293e-05/0.1262, allocations: 34.5 kB / 0.4944 GB, free: 11.3 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 8.586e-06/0.1262, allocations: 7.922 kB / 0.4945 GB, free: 11.3 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.001731/0.1279, allocations: 0.5266 MB / 0.495 GB, free: 10.74 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.466e-05/0.128, allocations: 85.09 kB / 0.495 GB, free: 10.64 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003969/0.1285, allocations: 215.2 kB / 0.4953 GB, free: 10.42 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.964e-05/0.1285, allocations: 29.7 kB / 0.4953 GB, free: 10.39 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001014/0.1286, allocations: 124 kB / 0.4954 GB, free: 10.26 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.791e-05/0.1287, allocations: 51.58 kB / 0.4955 GB, free: 10.21 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.805e-05/0.1287, allocations: 33.7 kB / 0.4955 GB, free: 10.17 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.1289, allocations: 334.8 kB / 0.4958 GB, free: 9.836 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001633/0.1291, allocations: 64.81 kB / 0.4959 GB, free: 9.77 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001789/0.1293, allocations: 93.28 kB / 0.496 GB, free: 9.672 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002976/0.1296, allocations: 145.6 kB / 0.4961 GB, free: 9.523 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1296, allocations: 3.938 kB / 0.4961 GB, free: 9.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003569/0.1299, allocations: 185.5 kB / 0.4963 GB, free: 9.332 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.462e-05/0.13, allocations: 4 kB / 0.4963 GB, free: 9.328 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.13, allocations: 0 / 0.4963 GB, free: 9.328 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.81e-05/0.13, allocations: 4 kB / 0.4963 GB, free: 9.324 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002604/0.1303, allocations: 43.91 kB / 0.4963 GB, free: 9.281 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.562e-06/0.1303, allocations: 0 / 0.4963 GB, free: 9.281 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001885/0.1305, allocations: 39.83 kB / 0.4964 GB, free: 9.242 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.448e-05/0.1305, allocations: 4 kB / 0.4964 GB, free: 9.238 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001674/0.1307, allocations: 144.8 kB / 0.4965 GB, free: 9.094 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001229/0.1308, allocations: 81.34 kB / 0.4966 GB, free: 9.008 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001879/0.131, allocations: 121.6 kB / 0.4967 GB, free: 8.883 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.72e-07/0.131, allocations: 0 / 0.4967 GB, free: 8.883 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization_lambda0): time 0.0002846/0.1313, allocations: 169.6 kB / 0.4969 GB, free: 8.711 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.903e-06/0.1313, allocations: 4 kB / 0.4969 GB, free: 8.707 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.413e-06/0.1313, allocations: 4 kB / 0.4969 GB, free: 8.703 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.823e-06/0.1313, allocations: 0 / 0.4969 GB, free: 8.703 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002177/0.1315, allocations: 39.92 kB / 0.4969 GB, free: 8.664 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.23e-06/0.1316, allocations: 4 kB / 0.4969 GB, free: 8.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001804/0.1317, allocations: 19.91 kB / 0.4969 GB, free: 8.641 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.356e-05/0.1318, allocations: 8 kB / 0.4969 GB, free: 8.633 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.0001412/0.1319, allocations: 193 kB / 0.4971 GB, free: 8.438 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.264e-05/0.132, allocations: 15.91 kB / 0.4971 GB, free: 8.422 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007654/0.1327, allocations: 279.6 kB / 0.4974 GB, free: 8.137 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.604e-06/0.1327, allocations: 0 / 0.4974 GB, free: 8.137 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.1328, allocations: 7.938 kB / 0.4974 GB, free: 8.129 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.1328, allocations: 0 / 0.4974 GB, free: 8.129 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003516/0.1331, allocations: 273.4 kB / 0.4977 GB, free: 7.812 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.1331, allocations: 3.984 kB / 0.4977 GB, free: 7.809 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001127/0.1333, allocations: 8 kB / 0.4977 GB, free: 7.801 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003756/0.1336, allocations: 88.78 kB / 0.4978 GB, free: 7.711 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.993e-05/0.1337, allocations: 8 kB / 0.4978 GB, free: 7.703 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002355/0.136, allocations: 1.841 MB / 0.4996 GB, free: 5.723 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.559e-06/0.1361, allocations: 3.938 kB / 0.4996 GB, free: 5.719 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008623/0.1369, allocations: 446.2 kB / 0.5 GB, free: 5.27 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.343e-05/0.137, allocations: 96.98 kB / 0.5001 GB, free: 5.156 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.72e-05/0.137, allocations: 4 kB / 0.5001 GB, free: 5.152 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002373/0.1373, allocations: 23.97 kB / 0.5001 GB, free: 5.129 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.176e-05/0.1374, allocations: 7.984 kB / 0.5001 GB, free: 5.121 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.394e-05/0.1374, allocations: 8 kB / 0.5001 GB, free: 5.113 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003052/0.1377, allocations: 173.1 kB / 0.5003 GB, free: 4.945 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1377, allocations: 0 / 0.5003 GB, free: 4.945 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003653/0.1381, allocations: 55.89 kB / 0.5004 GB, free: 4.891 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.001202/0.1393, allocations: 0.9631 MB / 0.5013 GB, free: 3.898 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000478/0.1398, allocations: 211.8 kB / 0.5015 GB, free: 3.691 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.1398, allocations: 0 / 0.5015 GB, free: 3.691 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003728/0.1402, allocations: 214.6 kB / 0.5017 GB, free: 3.469 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003423/0.1405, allocations: 43.39 kB / 0.5017 GB, free: 3.43 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003356/0.1439, allocations: 2.211 MB / 0.5039 GB, free: 1.133 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003792/0.1443, allocations: 0.732 MB / 0.5046 GB, free: 384 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001139/0.1444, allocations: 33.05 kB / 0.5046 GB, free: 344 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.53e-05/0.1445, allocations: 51.42 kB / 0.5047 GB, free: 296 kB / 382.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1445, allocations: 0 / 0.5047 GB, free: 296 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2283/0.3728, allocations: 4.53 MB / 0.5091 GB, free: 20.65 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/11.83, allocations: 6.047 kB / 0.5091 GB, free: 20.64 MB / 382.1 MB " [Timeout remaining time 648] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.522338059963658] Failed to read output from testmodel.py, exit status != 0: 11.927033439045772 11.951187652 11.824990748 Calling exit ...