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.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.001373/0.001373, allocations: 116.1 kB / 17.16 MB, free: 6.023 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.001461/0.001461, allocations: 201.5 kB / 20.13 MB, free: 3.074 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.528/1.528, allocations: 230.6 MB / 253.5 MB, free: 15.1 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.1026/0.1026, allocations: 22.93 MB / 332.5 MB, free: 2.629 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.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) 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="cs",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="cs",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.003248/0.003248, allocations: 64.42 kB / 467.4 MB, free: 31.9 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1273/0.1306, allocations: 59.27 MB / 0.5144 GB, free: 13.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_below_limit): time 0.003078/0.1336, allocations: 1.85 MB / 0.5162 GB, free: 11.45 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001147/0.1348, allocations: 0.639 MB / 0.5168 GB, free: 10.81 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.373e-05/0.1349, allocations: 8 kB / 0.5168 GB, free: 10.8 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002429/0.1351, allocations: 27.72 kB / 0.5168 GB, free: 10.77 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000146/0.1353, allocations: 39.72 kB / 0.5169 GB, free: 10.73 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002756/0.1355, allocations: 111.8 kB / 0.517 GB, free: 10.62 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002768/0.1358, allocations: 219.5 kB / 0.5172 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001238/0.1359, allocations: 37.53 kB / 0.5172 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001252/0.1361, allocations: 91.73 kB / 0.5173 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001731/0.1362, allocations: 107.5 kB / 0.5174 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.609e-05/0.1363, allocations: 20 kB / 0.5174 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.133e-05/0.1363, allocations: 20 kB / 0.5174 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.661e-05/0.1364, allocations: 51.83 kB / 0.5175 GB, free: 10.09 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.035e-05/0.1365, allocations: 71.59 kB / 0.5176 GB, free: 10.02 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002517/0.1367, allocations: 191.2 kB / 0.5177 GB, free: 9.832 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1367, allocations: 0 / 0.5177 GB, free: 9.832 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.1367, allocations: 0 / 0.5177 GB, free: 9.832 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.1367, allocations: 0 / 0.5177 GB, free: 9.832 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.00111/0.1378, allocations: 0.5222 MB / 0.5183 GB, free: 9.258 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.185e-05/0.1379, allocations: 8.625 kB / 0.5183 GB, free: 9.25 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.837e-05/0.1379, allocations: 4.422 kB / 0.5183 GB, free: 9.246 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.12e-05/0.1379, allocations: 46.73 kB / 0.5183 GB, free: 9.191 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.303e-05/0.138, allocations: 28.73 kB / 0.5183 GB, free: 9.164 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004915/0.1385, allocations: 276.7 kB / 0.5186 GB, free: 8.852 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.201e-05/0.1385, allocations: 8.609 kB / 0.5186 GB, free: 8.844 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.644e-05/0.1386, allocations: 16.38 kB / 0.5186 GB, free: 8.828 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003245/0.1389, allocations: 173.3 kB / 0.5188 GB, free: 8.648 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/0.1389, allocations: 4 kB / 0.5188 GB, free: 8.645 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.635e-05/0.1389, allocations: 0 / 0.5188 GB, free: 8.645 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.712e-06/0.1389, allocations: 4 kB / 0.5188 GB, free: 8.641 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002913/0.1392, allocations: 124.5 kB / 0.5189 GB, free: 8.52 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000936/0.1401, allocations: 0.5281 MB / 0.5194 GB, free: 7.941 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005892/0.1407, allocations: 186.6 kB / 0.5196 GB, free: 7.75 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001612/0.1409, allocations: 76.75 kB / 0.5197 GB, free: 7.672 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.203e-05/0.1409, allocations: 0 / 0.5197 GB, free: 7.672 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.778e-05/0.1409, allocations: 38.5 kB / 0.5197 GB, free: 7.625 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 8.82e-07/0.1409, allocations: 0 / 0.5197 GB, free: 7.625 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.001703/0.1426, allocations: 0.5227 MB / 0.5202 GB, free: 7.074 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.753e-05/0.1427, allocations: 81.11 kB / 0.5203 GB, free: 6.977 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003886/0.1431, allocations: 215.1 kB / 0.5205 GB, free: 6.754 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.451e-05/0.1431, allocations: 33.7 kB / 0.5205 GB, free: 6.715 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001035/0.1432, allocations: 135.7 kB / 0.5207 GB, free: 6.578 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.967e-05/0.1433, allocations: 43.64 kB / 0.5207 GB, free: 6.535 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.093e-05/0.1433, allocations: 37.7 kB / 0.5208 GB, free: 6.492 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.1435, allocations: 322.8 kB / 0.5211 GB, free: 6.168 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001522/0.1436, allocations: 64.83 kB / 0.5211 GB, free: 6.102 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001691/0.1438, allocations: 90.52 kB / 0.5212 GB, free: 6.004 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002927/0.1441, allocations: 146.8 kB / 0.5213 GB, free: 5.855 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.1441, allocations: 0 / 0.5213 GB, free: 5.855 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003974/0.1445, allocations: 191.2 kB / 0.5215 GB, free: 5.664 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.162e-05/0.1445, allocations: 8.062 kB / 0.5215 GB, free: 5.656 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.1445, allocations: 3.984 kB / 0.5215 GB, free: 5.652 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.248e-05/0.1445, allocations: 4 kB / 0.5215 GB, free: 5.648 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002614/0.1448, allocations: 39.97 kB / 0.5216 GB, free: 5.609 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/0.1448, allocations: 0 / 0.5216 GB, free: 5.609 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002014/0.145, allocations: 35.8 kB / 0.5216 GB, free: 5.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.344e-05/0.145, allocations: 7.938 kB / 0.5216 GB, free: 5.562 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001659/0.1452, allocations: 144.1 kB / 0.5218 GB, free: 5.418 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001197/0.1453, allocations: 78.55 kB / 0.5218 GB, free: 5.332 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001921/0.1455, allocations: 123.6 kB / 0.522 GB, free: 5.207 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.61e-07/0.1455, allocations: 0 / 0.522 GB, free: 5.207 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization_lambda0): time 0.0002743/0.1458, allocations: 167.3 kB / 0.5221 GB, free: 5.039 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.087e-06/0.1458, allocations: 8 kB / 0.5221 GB, free: 5.031 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.423e-06/0.1458, allocations: 0 / 0.5221 GB, free: 5.031 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.794e-06/0.1458, allocations: 0 / 0.5221 GB, free: 5.031 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002253/0.146, allocations: 39.97 kB / 0.5222 GB, free: 4.992 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.843e-06/0.146, allocations: 4.062 kB / 0.5222 GB, free: 4.988 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001746/0.1462, allocations: 27.86 kB / 0.5222 GB, free: 4.961 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.562e-05/0.1462, allocations: 11.92 kB / 0.5222 GB, free: 4.949 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.0001318/0.1463, allocations: 189 kB / 0.5224 GB, free: 4.758 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.639e-05/0.1464, allocations: 19.84 kB / 0.5224 GB, free: 4.738 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007436/0.1471, allocations: 286.4 kB / 0.5227 GB, free: 4.449 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.1471, allocations: 0 / 0.5227 GB, free: 4.449 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-06/0.1471, allocations: 0 / 0.5227 GB, free: 4.449 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.1471, allocations: 0 / 0.5227 GB, free: 4.449 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003289/0.1475, allocations: 269.5 kB / 0.5229 GB, free: 4.137 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.1475, allocations: 0 / 0.5229 GB, free: 4.137 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001063/0.1476, allocations: 15.98 kB / 0.5229 GB, free: 4.121 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003618/0.1479, allocations: 88.78 kB / 0.523 GB, free: 4.031 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.874e-05/0.1479, allocations: 8 kB / 0.523 GB, free: 4.023 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00238/0.1503, allocations: 1.833 MB / 0.5248 GB, free: 2.051 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.1503, allocations: 3.938 kB / 0.5248 GB, free: 2.047 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000861/0.1512, allocations: 432.1 kB / 0.5252 GB, free: 1.605 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.053e-05/0.1513, allocations: 97.05 kB / 0.5253 GB, free: 1.492 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.345e-05/0.1513, allocations: 0 / 0.5253 GB, free: 1.492 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002172/0.1515, allocations: 23.97 kB / 0.5254 GB, free: 1.469 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.099e-05/0.1516, allocations: 19.92 kB / 0.5254 GB, free: 1.449 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.776e-06/0.1516, allocations: 192 / 0.5254 GB, free: 1.449 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000311/0.1519, allocations: 173 kB / 0.5255 GB, free: 1.281 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1519, allocations: 0 / 0.5255 GB, free: 1.281 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003945/0.1523, allocations: 59.89 kB / 0.5256 GB, free: 1.223 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.00122/0.1535, allocations: 0.9667 MB / 0.5265 GB, free: 232 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004869/0.154, allocations: 210.9 kB / 0.5267 GB, free: 24 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.154, allocations: 0 / 0.5267 GB, free: 24 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004055/0.1544, allocations: 206.6 kB / 0.5269 GB, free: 15.81 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000338/0.1547, allocations: 28.25 kB / 0.527 GB, free: 15.79 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003459/0.1582, allocations: 2.221 MB / 0.5291 GB, free: 13.48 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004111/0.1586, allocations: 0.732 MB / 0.5299 GB, free: 12.72 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001213/0.1587, allocations: 37.23 kB / 0.5299 GB, free: 12.68 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001026/0.1588, allocations: 55.41 kB / 0.5299 GB, free: 12.62 MB / 398.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1588, allocations: 3.938 kB / 0.5299 GB, free: 12.62 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02851/0.1873, allocations: 4.595 MB / 0.5344 GB, free: 8.18 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.1/12.28, allocations: 12.05 kB / 0.5344 GB, free: 8.168 MB / 398.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_control_structures_Keep_below_limit_fmu --startTime=0 --stopTime=150 --stepSize=0.3 --timeout=50 --tolerance=1e-06 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: 15.209165436972398] Failed to read output from testmodel.py, exit status != 0: 12.444021962990519 12.472579752 12.330440785 Calling exit ...