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.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) Running command: translateModel(AES.Coursework.Typical_control_structures.Cascade_with_locks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,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=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Cascade_with_locks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008296/0.008296, allocations: 102.7 kB / 15.73 MB, free: 5.957 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.00176/0.00176, allocations: 192.2 kB / 16.67 MB, free: 5.879 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.469/1.469, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09064/0.09064, allocations: 22.32 MB / 312.8 MB, free: 8.852 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00122/0.00122, allocations: 68.12 kB / 437 MB, free: 11.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1298/0.131, allocations: 54.96 MB / 492 MB, free: 4.742 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_with_locks): time 0.003151/0.1342, allocations: 1.871 MB / 493.9 MB, free: 2.852 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004241/0.1347, allocations: 191.3 kB / 494 MB, free: 2.664 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.243e-05/0.1348, allocations: 0 / 494 MB, free: 2.664 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001427/0.1349, allocations: 43.55 kB / 494.1 MB, free: 2.621 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 6.754e-05/0.135, allocations: 23.78 kB / 494.1 MB, free: 2.598 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:71:5-71:30:writable] Warning: Conditional component 'ovrMax' is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:77:5-77:30:writable] Warning: Conditional component 'ovrMin' is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:71:5-71:30:writable] Warning: Conditional component 'ovrMax' is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:77:5-77:30:writable] Warning: Conditional component 'ovrMin' is used in a non-connect context. Notification: Performance of NFTyping.typeClassSections: time 0.0002295/0.1352, allocations: 79.89 kB / 494.2 MB, free: 2.52 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002931/0.1355, allocations: 240.8 kB / 494.4 MB, free: 2.285 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001709/0.1357, allocations: 56.39 kB / 494.5 MB, free: 2.234 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.884e-05/0.1358, allocations: 83.69 kB / 494.6 MB, free: 2.152 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001476/0.136, allocations: 99.47 kB / 494.7 MB, free: 2.055 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.875e-05/0.136, allocations: 23.94 kB / 494.7 MB, free: 2.031 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.903e-05/0.1361, allocations: 20 kB / 494.7 MB, free: 2.012 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.691e-05/0.1361, allocations: 47.83 kB / 494.7 MB, free: 1.965 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 8.121e-05/0.1362, allocations: 95.45 kB / 494.8 MB, free: 1.871 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002267/0.1364, allocations: 203.2 kB / 495 MB, free: 1.672 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.85e-06/0.1364, allocations: 3.938 kB / 495 MB, free: 1.668 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.053e-06/0.1364, allocations: 4 kB / 495 MB, free: 1.664 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.532e-06/0.1365, allocations: 0 / 495 MB, free: 1.664 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0008718/0.1373, allocations: 0.5031 MB / 495.5 MB, free: 1.109 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/0.1374, allocations: 8.031 kB / 495.6 MB, free: 1.102 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.89e-05/0.1374, allocations: 24.66 kB / 495.6 MB, free: 1.078 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002691/0.1377, allocations: 244.5 kB / 495.8 MB, free: 0.7969 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.353e-05/0.1378, allocations: 16.81 kB / 495.8 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.574e-05/0.1378, allocations: 24.38 kB / 495.9 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003927/0.1382, allocations: 236.8 kB / 496.1 MB, free: 0.5 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/0.1382, allocations: 192 / 496.1 MB, free: 0.5 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.552e-05/0.1383, allocations: 15.94 kB / 496.1 MB, free: 496 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.376e-06/0.1383, allocations: 8 kB / 496.1 MB, free: 488 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003244/0.1386, allocations: 157 kB / 496.3 MB, free: 332 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00157/0.1402, allocations: 1.022 MB / 497.3 MB, free: 15.24 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002767/0.1405, allocations: 150.6 kB / 497.4 MB, free: 15.08 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001444/0.1406, allocations: 80.75 kB / 497.5 MB, free: 15 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.033e-05/0.1407, allocations: 7.938 kB / 497.5 MB, free: 14.99 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.996e-05/0.1407, allocations: 34.5 kB / 497.6 MB, free: 14.95 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.252e-06/0.1407, allocations: 0 / 497.6 MB, free: 14.95 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.0005447/0.1412, allocations: 233.7 kB / 497.8 MB, free: 14.71 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.274e-05/0.1413, allocations: 55.39 kB / 497.8 MB, free: 14.65 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001755/0.1415, allocations: 215.8 kB / 498 MB, free: 14.43 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.213e-05/0.1415, allocations: 29.7 kB / 498.1 MB, free: 14.39 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.977e-05/0.1416, allocations: 160.1 kB / 498.2 MB, free: 14.23 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.207e-05/0.1417, allocations: 74.91 kB / 498.3 MB, free: 14.15 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.4e-05/0.1418, allocations: 73.59 kB / 498.4 MB, free: 14.07 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001163/0.1419, allocations: 334.8 kB / 498.7 MB, free: 13.74 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001576/0.142, allocations: 71.92 kB / 498.8 MB, free: 13.67 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002106/0.1423, allocations: 174.8 kB / 498.9 MB, free: 13.46 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001348/0.1436, allocations: 488.8 kB / 499.4 MB, free: 12.94 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.1436, allocations: 0 / 499.4 MB, free: 12.94 MB / 382.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0004779/0.1441, allocations: 305.1 kB / 499.7 MB, free: 12.64 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/0.1441, allocations: 4 kB / 499.7 MB, free: 12.63 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.1442, allocations: 4 kB / 499.7 MB, free: 12.63 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.612e-05/0.1442, allocations: 4 kB / 499.7 MB, free: 12.62 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000299/0.1445, allocations: 83.83 kB / 499.8 MB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.454e-05/0.1445, allocations: 12 kB / 499.8 MB, free: 12.53 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001704/0.1447, allocations: 39.61 kB / 499.9 MB, free: 12.49 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.046e-05/0.1447, allocations: 16.25 kB / 499.9 MB, free: 12.48 MB / 382.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.0001686/0.1449, allocations: 157.7 kB / 0.4883 GB, free: 12.31 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.282e-05/0.1449, allocations: 23.66 kB / 0.4883 GB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004618/0.1454, allocations: 220.9 kB / 0.4885 GB, free: 12.06 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.1454, allocations: 4 kB / 0.4885 GB, free: 12.06 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.1454, allocations: 0 / 0.4885 GB, free: 12.06 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.131e-06/0.1454, allocations: 7.984 kB / 0.4886 GB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004524/0.1459, allocations: 309.3 kB / 0.4889 GB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.1459, allocations: 3.938 kB / 0.4889 GB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003396/0.1463, allocations: 59.91 kB / 0.4889 GB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.1463, allocations: 0 / 0.4889 GB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.242e-05/0.1463, allocations: 15.92 kB / 0.4889 GB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.1463, allocations: 0 / 0.4889 GB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.1463, allocations: 3.984 kB / 0.4889 GB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005732/0.1469, allocations: 386.3 kB / 0.4893 GB, free: 11.22 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.575e-05/0.147, allocations: 100.8 kB / 0.4894 GB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.188e-05/0.147, allocations: 7.984 kB / 0.4894 GB, free: 11.1 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001505/0.1472, allocations: 4.188 kB / 0.4894 GB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.848e-05/0.1472, allocations: 27.95 kB / 0.4894 GB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.2e-05/0.1472, allocations: 11.94 kB / 0.4894 GB, free: 11.05 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001098/0.1474, allocations: 145 kB / 0.4896 GB, free: 10.91 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1474, allocations: 4 kB / 0.4896 GB, free: 10.91 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003047/0.1477, allocations: 44 kB / 0.4896 GB, free: 10.87 MB / 382.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.0001079/0.1478, allocations: 107.2 kB / 0.4897 GB, free: 10.75 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004092/0.1482, allocations: 208.3 kB / 0.4899 GB, free: 10.55 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.1482, allocations: 8.125 kB / 0.4899 GB, free: 10.54 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001612/0.1484, allocations: 87.77 kB / 0.49 GB, free: 10.46 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003369/0.1487, allocations: 38.56 kB / 0.4901 GB, free: 10.42 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000875/0.1496, allocations: 0.5313 MB / 0.4906 GB, free: 9.871 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003216/0.15, allocations: 0.7482 MB / 0.4913 GB, free: 9.098 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.947e-05/0.1501, allocations: 34.28 kB / 0.4913 GB, free: 9.062 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.56e-05/0.1501, allocations: 27.44 kB / 0.4914 GB, free: 9.035 MB / 382.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1501, allocations: 7.938 kB / 0.4914 GB, free: 9.027 MB / 382.1 MB Notification: Performance of Templates: time 0.005021/0.1552, allocations: 2.102 MB / 0.4934 GB, free: 6.926 MB / 382.1 MB make -j1 -f AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.makefile (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_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.pipe 2>&1)