Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.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.001372/0.001372, allocations: 77.86 kB / 19.76 MB, free: 2.031 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.001517/0.001517, allocations: 162.4 kB / 23.01 MB, free: 4.945 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.294/1.294, allocations: 177.2 MB / 203.4 MB, free: 8.961 MB / 190.1 MB " [Timeout remaining time 179] 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.09163/0.09163, allocations: 17.8 MB / 277.6 MB, free: 15.32 MB / 270.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) Running command: translateModel(AES.Coursework.Typical_control_structures.Cascade_with_locks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Cascade_with_locks") translateModel(AES.Coursework.Typical_control_structures.Cascade_with_locks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Cascade_with_locks") [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.00213/0.00213, allocations: 71.91 kB / 415.4 MB, free: 3.699 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1179, allocations: 59.56 MB / 475 MB, free: 8.027 MB / 446.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_with_locks): time 0.003351/0.1212, allocations: 1.817 MB / 476.8 MB, free: 6.195 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005214/0.1217, allocations: 187.4 kB / 477 MB, free: 6.012 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.749e-05/0.1218, allocations: 3.938 kB / 477 MB, free: 6.008 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001681/0.122, allocations: 43.53 kB / 477 MB, free: 5.965 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 6.539e-05/0.1221, allocations: 15.81 kB / 477.1 MB, free: 5.949 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002121/0.1223, allocations: 91.88 kB / 477.1 MB, free: 5.859 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.000315/0.1226, allocations: 236.8 kB / 477.4 MB, free: 5.625 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001411/0.1227, allocations: 40.58 kB / 477.4 MB, free: 5.586 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001155/0.1229, allocations: 87.69 kB / 477.5 MB, free: 5.5 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001448/0.123, allocations: 83.47 kB / 477.6 MB, free: 5.418 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.343e-05/0.123, allocations: 20 kB / 477.6 MB, free: 5.398 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.181e-05/0.1231, allocations: 20 kB / 477.6 MB, free: 5.379 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 5.964e-05/0.1231, allocations: 47.83 kB / 477.7 MB, free: 5.328 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 8.313e-05/0.1232, allocations: 83.58 kB / 477.8 MB, free: 5.246 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002348/0.1235, allocations: 199 kB / 477.9 MB, free: 5.051 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.1235, allocations: 0 / 477.9 MB, free: 5.051 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.1235, allocations: 0 / 477.9 MB, free: 5.051 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.179e-06/0.1235, allocations: 0 / 477.9 MB, free: 5.051 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0009912/0.1245, allocations: 449.8 kB / 478.4 MB, free: 4.578 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/0.1245, allocations: 8.922 kB / 478.4 MB, free: 4.57 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.698e-05/0.1246, allocations: 32.75 kB / 478.4 MB, free: 4.539 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000312/0.1249, allocations: 186.8 kB / 478.6 MB, free: 4.328 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.164e-05/0.1249, allocations: 16.88 kB / 478.6 MB, free: 4.312 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.637e-05/0.125, allocations: 28.33 kB / 478.7 MB, free: 4.285 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004749/0.1255, allocations: 233.7 kB / 478.9 MB, free: 4.035 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.676e-05/0.1255, allocations: 8.109 kB / 478.9 MB, free: 4.027 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.149e-05/0.1255, allocations: 15.94 kB / 478.9 MB, free: 4.012 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.017e-05/0.1255, allocations: 4 kB / 478.9 MB, free: 4.008 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004411/0.126, allocations: 157 kB / 479.1 MB, free: 3.855 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001875/0.1278, allocations: 0.9046 MB / 480 MB, free: 2.906 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003888/0.1282, allocations: 154.5 kB / 480.1 MB, free: 2.746 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001678/0.1284, allocations: 72.83 kB / 480.2 MB, free: 2.672 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.577e-05/0.1284, allocations: 7.938 kB / 480.2 MB, free: 2.664 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.175e-05/0.1285, allocations: 34.56 kB / 480.2 MB, free: 2.621 MB / 446.1 MB Notification: Performance of pre-optimization done (n=21): time 2.685e-06/0.1285, allocations: 0 / 480.2 MB, free: 2.621 MB / 446.1 MB Notification: Performance of matching and sorting (n=21): time 0.0009215/0.1294, allocations: 237.7 kB / 480.5 MB, free: 2.383 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.765e-05/0.1295, allocations: 59.33 kB / 480.5 MB, free: 2.312 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002435/0.1297, allocations: 203.8 kB / 480.7 MB, free: 2.105 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.072e-05/0.1297, allocations: 33.7 kB / 480.8 MB, free: 2.066 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001279/0.1299, allocations: 156.3 kB / 480.9 MB, free: 1.906 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.973e-05/0.13, allocations: 87.31 kB / 481 MB, free: 1.82 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001043/0.1301, allocations: 77.44 kB / 481.1 MB, free: 1.738 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001682/0.1302, allocations: 330.8 kB / 481.4 MB, free: 1.406 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003104/0.1306, allocations: 79.95 kB / 481.5 MB, free: 1.328 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003423/0.1309, allocations: 159.1 kB / 481.6 MB, free: 1.133 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001542/0.1324, allocations: 484.7 kB / 482.1 MB, free: 0.6172 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.1324, allocations: 0 / 482.1 MB, free: 0.6172 MB / 446.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005558/0.133, allocations: 309.1 kB / 482.4 MB, free: 316 kB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.651e-05/0.133, allocations: 11.94 kB / 482.4 MB, free: 304 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.339e-05/0.133, allocations: 8 kB / 482.4 MB, free: 296 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.812e-05/0.1331, allocations: 4 kB / 482.4 MB, free: 292 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003948/0.1334, allocations: 75.89 kB / 482.5 MB, free: 216 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.086e-05/0.1335, allocations: 4.375 kB / 482.5 MB, free: 212 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001768/0.1336, allocations: 43.77 kB / 482.5 MB, free: 168 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.433e-05/0.1337, allocations: 16 kB / 482.6 MB, free: 152 kB / 446.1 MB Warning: Assuming fixed start value for the following 2 variables: P_I.y:VARIABLE(flow=false start = P_I.y_start fixed = true ) \"Connector of Real output signal\" type: Real P_E.y:VARIABLE(flow=false start = P_E.y_start fixed = true ) \"Connector of Real output signal\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 8 (PI_I.LOsat,PI_I.HIsat,PI_E.LOsat,PI_E.HIsat,PI_I.iNoDec,PI_I.iNoInc,PI_I.iTS,PI_E.iTS) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 43 * 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.0002247/0.1339, allocations: 145 kB / 482.7 MB, free: 0 / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.3199/0.4538, allocations: 21.36 kB / 482.7 MB, free: 52.39 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006109/0.4544, allocations: 219.8 kB / 482.9 MB, free: 52.36 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.4544, allocations: 4.531 kB / 482.9 MB, free: 52.36 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/0.4544, allocations: 0 / 482.9 MB, free: 52.36 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.648e-06/0.4544, allocations: 0 / 482.9 MB, free: 52.36 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004883/0.4549, allocations: 231.3 kB / 483.2 MB, free: 52.23 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.548e-06/0.4549, allocations: 0 / 483.2 MB, free: 52.23 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003408/0.4552, allocations: 54.83 kB / 483.2 MB, free: 52.23 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.524e-06/0.4552, allocations: 6.938 kB / 483.2 MB, free: 52.23 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.463e-05/0.4553, allocations: 9.859 kB / 483.2 MB, free: 52.23 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.099e-06/0.4553, allocations: 3.312 kB / 483.2 MB, free: 52.23 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.4553, allocations: 0 / 483.2 MB, free: 52.23 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005691/0.4558, allocations: 376.2 kB / 483.6 MB, free: 52.09 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.028e-05/0.4559, allocations: 26.39 kB / 483.6 MB, free: 52.08 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.427e-05/0.4559, allocations: 9.5 kB / 483.6 MB, free: 52.08 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001597/0.4561, allocations: 9.125 kB / 483.6 MB, free: 52.08 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001084/0.4562, allocations: 24.95 kB / 483.7 MB, free: 52.08 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.93e-05/0.4562, allocations: 10.66 kB / 483.7 MB, free: 52.08 MB / 446.1 MB Notification: Performance of sorting global known variables: time 9.284e-05/0.4563, allocations: 137.9 kB / 483.8 MB, free: 52 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4563, allocations: 0 / 483.8 MB, free: 52 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003376/0.4566, allocations: 48.84 kB / 483.9 MB, free: 52 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (P_I.y,P_E.y,PI_E.xfb,PI_E.xBias,PI_E.u,PI_E.csfil,PI_I.xfb,PI_I.xBias,PI_I.u,PI_I.csfil) * Number of discrete variables: 4 (PI_E.HIsat,PI_E.LOsat,PI_I.HIsat,PI_I.LOsat) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 Backend phase and start with SimCode phase: time 0.0001156/0.4567, allocations: 101.1 kB / 484 MB, free: 51.91 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004839/0.4572, allocations: 199.8 kB / 484.2 MB, free: 51.91 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.4572, allocations: 0 / 484.2 MB, free: 51.91 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001581/0.4574, allocations: 89.5 kB / 484.2 MB, free: 51.91 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003513/0.4577, allocations: 25.44 kB / 484.3 MB, free: 51.91 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009478/0.4587, allocations: 0.5396 MB / 484.8 MB, free: 51.64 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001048/0.4588, allocations: 141.4 kB / 485 MB, free: 51.56 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001094/0.4589, allocations: 25.16 kB / 485 MB, free: 51.56 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.229e-05/0.459, allocations: 31.47 kB / 485 MB, free: 51.55 MB / 446.1 MB Notification: Performance of SimCode: time 9.22e-07/0.459, allocations: 1.688 kB / 485 MB, free: 51.55 MB / 446.1 MB Notification: Performance of Templates: time 0.005924/0.4649, allocations: 2.064 MB / 487.1 MB, free: 51.4 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.makefile [Timeout 660] (rm -f AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.sim & ./AES_AES.Coursework.Typical_control_structures.Cascade_with_locks -lv=LOG_STDOUT,LOG_ASSERT,LOG_STATS -s=dassl -variableFilter=.* -abortSlowSimulation -alarm=480 -s ida -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.921591190970503] Failed to read output from testmodel.py, exit status != 0: 0.47496429504826665 0.488698717 0.362602807 Calling exit ...