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.001928/0.001928, allocations: 83.7 kB / 19.96 MB, free: 1.758 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.001687/0.001687, allocations: 159.3 kB / 23.23 MB, free: 4.891 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.512/1.512, allocations: 177.1 MB / 203.5 MB, free: 9.176 MB / 190.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.1052/0.1052, allocations: 18.13 MB / 278.1 MB, free: 15.05 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: Performance of FrontEnd - loaded program: time 1.684e-06/1.684e-06, allocations: 0 / 416.4 MB, free: 1.781 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.091e-05/3.259e-05, allocations: 6.219 kB / 416.4 MB, free: 1.773 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_with_locks): time 0.003375/0.003408, allocations: 1.82 MB / 418.2 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000639/0.004047, allocations: 191.4 kB / 418.4 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001968/0.004244, allocations: 7.938 kB / 418.4 MB, free: 15.74 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000217/0.004461, allocations: 43.53 kB / 418.4 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001278/0.004588, allocations: 11.81 kB / 418.4 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002889/0.004877, allocations: 91.8 kB / 418.5 MB, free: 15.6 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003851/0.005262, allocations: 240.7 kB / 418.8 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001839/0.005446, allocations: 48.55 kB / 418.8 MB, free: 15.31 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001279/0.005574, allocations: 71.83 kB / 418.9 MB, free: 15.24 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001457/0.00572, allocations: 71.75 kB / 418.9 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.712e-05/0.005777, allocations: 20 kB / 419 MB, free: 15.15 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.672e-05/0.005814, allocations: 20 kB / 419 MB, free: 15.13 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.108e-05/0.005875, allocations: 51.77 kB / 419 MB, free: 15.08 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.963e-05/0.005964, allocations: 63.8 kB / 419.1 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003009/0.006265, allocations: 203.2 kB / 419.3 MB, free: 14.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.00627, allocations: 0 / 419.3 MB, free: 14.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.927e-06/0.006274, allocations: 3.984 kB / 419.3 MB, free: 14.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.372e-05/0.006288, allocations: 0 / 419.3 MB, free: 14.82 MB / 350.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.001041/0.007329, allocations: 445.8 kB / 419.7 MB, free: 14.35 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.911e-05/0.007368, allocations: 8.922 kB / 419.7 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.039e-05/0.007458, allocations: 32.8 kB / 419.8 MB, free: 14.31 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003446/0.007803, allocations: 174.1 kB / 419.9 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.905e-05/0.007842, allocations: 16.88 kB / 420 MB, free: 14.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.565e-05/0.007918, allocations: 28.36 kB / 420 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005171/0.008435, allocations: 237.6 kB / 420.2 MB, free: 13.81 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/0.008447, allocations: 192 / 420.2 MB, free: 13.81 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.473e-05/0.008472, allocations: 8.375 kB / 420.2 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.176e-05/0.008484, allocations: 8.375 kB / 420.2 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003987/0.008883, allocations: 164.9 kB / 420.4 MB, free: 13.63 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001867/0.01075, allocations: 0.9084 MB / 421.3 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003708/0.01112, allocations: 150.6 kB / 421.5 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001613/0.01128, allocations: 68.83 kB / 421.5 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.843e-05/0.01131, allocations: 4 kB / 421.5 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.572e-05/0.01135, allocations: 34.56 kB / 421.6 MB, free: 12.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.603e-06/0.01135, allocations: 0 / 421.6 MB, free: 12.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0006505/0.012, allocations: 233.8 kB / 421.8 MB, free: 12.17 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.772e-05/0.01205, allocations: 59.41 kB / 421.8 MB, free: 12.1 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002326/0.01228, allocations: 215.6 kB / 422.1 MB, free: 11.88 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.437e-05/0.01231, allocations: 29.7 kB / 422.1 MB, free: 11.85 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001327/0.01245, allocations: 160.3 kB / 422.2 MB, free: 11.69 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.837e-05/0.01252, allocations: 83.27 kB / 422.3 MB, free: 11.61 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001175/0.01264, allocations: 73.47 kB / 422.4 MB, free: 11.53 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001747/0.01282, allocations: 326.8 kB / 422.7 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000191/0.01301, allocations: 79.91 kB / 422.8 MB, free: 11.12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002641/0.01327, allocations: 175 kB / 423 MB, free: 10.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001535/0.01481, allocations: 485.2 kB / 423.4 MB, free: 10.4 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.01481, allocations: 0 / 423.4 MB, free: 10.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006217/0.01543, allocations: 305.2 kB / 423.7 MB, free: 10.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.01545, allocations: 4 kB / 423.7 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.01546, allocations: 4.375 kB / 423.7 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.212e-05/0.01548, allocations: 11.94 kB / 423.8 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003409/0.01582, allocations: 83.89 kB / 423.8 MB, free: 9.992 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.566e-05/0.01584, allocations: 7.938 kB / 423.8 MB, free: 9.984 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000188/0.01602, allocations: 35.77 kB / 423.9 MB, free: 9.949 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.845e-05/0.01605, allocations: 16 kB / 423.9 MB, free: 9.934 MB / 350.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.0002064/0.01626, allocations: 141.8 kB / 424 MB, free: 9.785 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.048e-05/0.01631, allocations: 27.8 kB / 424.1 MB, free: 9.758 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005012/0.01681, allocations: 217 kB / 424.3 MB, free: 9.547 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.68e-06/0.01682, allocations: 11.88 kB / 424.3 MB, free: 9.535 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.01682, allocations: 0 / 424.3 MB, free: 9.535 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/0.01683, allocations: 0 / 424.3 MB, free: 9.535 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004767/0.0173, allocations: 237 kB / 424.5 MB, free: 9.273 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.0173, allocations: 0 / 424.5 MB, free: 9.273 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003504/0.01765, allocations: 55.97 kB / 424.6 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.01766, allocations: 4 kB / 424.6 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.849e-05/0.01768, allocations: 4 kB / 424.6 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.368e-06/0.01768, allocations: 4 kB / 424.6 MB, free: 9.207 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.01768, allocations: 3.938 kB / 424.6 MB, free: 9.203 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006631/0.01835, allocations: 386.1 kB / 425 MB, free: 8.809 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.864e-05/0.01838, allocations: 15.84 kB / 425 MB, free: 8.793 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.125e-05/0.01842, allocations: 8 kB / 425 MB, free: 8.785 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001615/0.01858, allocations: 7.984 kB / 425 MB, free: 8.777 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.741e-05/0.01867, allocations: 27.89 kB / 425 MB, free: 8.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.605e-05/0.01868, allocations: 12 kB / 425 MB, free: 8.738 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000117/0.0188, allocations: 137.5 kB / 425.2 MB, free: 8.605 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.0188, allocations: 0 / 425.2 MB, free: 8.605 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003354/0.01913, allocations: 51.89 kB / 425.2 MB, free: 8.555 MB / 350.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.0001581/0.01929, allocations: 103.3 kB / 425.3 MB, free: 8.445 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004888/0.01978, allocations: 196.3 kB / 425.5 MB, free: 8.254 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.01979, allocations: 4 kB / 425.5 MB, free: 8.25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000195/0.01998, allocations: 87.89 kB / 425.6 MB, free: 8.164 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003572/0.02034, allocations: 26.73 kB / 425.6 MB, free: 8.141 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001047/0.02139, allocations: 483.1 kB / 426.1 MB, free: 7.637 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001616/0.02155, allocations: 142.5 kB / 426.2 MB, free: 7.477 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001079/0.02165, allocations: 22.3 kB / 426.3 MB, free: 7.457 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.222e-05/0.02174, allocations: 28.48 kB / 426.3 MB, free: 7.43 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.02174, allocations: 4 kB / 426.3 MB, free: 7.426 MB / 350.1 MB Notification: Performance of Templates: time 0.006346/0.02808, allocations: 2.055 MB / 428.3 MB, free: 5.391 MB / 350.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 -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.587757550179958] Failed to read output from testmodel.py, exit status != 0: 0.037592947483062744 0.053249958 0.043672494000000006 Calling exit ...