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/AES main/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_SS_case_001.mo:3:1-67:19:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_case_001.mo:3:1-55:16:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_002.mo:3:1-91:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_001.mo:3:1-85:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09291/0.09291, allocations: 21.61 MB / 37.4 MB, free: 0.7344 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001345/0.001345, allocations: 180.5 kB / 43.63 MB, free: 3.574 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.287/1.287, allocations: 205.1 MB / 254.8 MB, free: 14.23 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00104/0.00104, allocations: 106.2 kB / 307.5 MB, free: 11.37 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00117/0.00117, allocations: 52.62 kB / 372.3 MB, free: 59.51 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07698/0.07817, allocations: 51.97 MB / 424.3 MB, free: 14.52 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_with_locks): time 0.00231/0.08052, allocations: 1.925 MB / 426.2 MB, free: 12.57 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003077/0.08084, allocations: 195.4 kB / 426.4 MB, free: 12.38 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.938e-05/0.08093, allocations: 0 / 426.4 MB, free: 12.38 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001229/0.08106, allocations: 23.73 kB / 426.4 MB, free: 12.36 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.829e-05/0.08113, allocations: 11.88 kB / 426.5 MB, free: 12.34 MB / 298.7 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.0001832/0.08132, allocations: 79.91 kB / 426.5 MB, free: 12.27 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002332/0.08156, allocations: 224.8 kB / 426.8 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001579/0.08173, allocations: 64.38 kB / 426.8 MB, free: 11.98 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.272e-05/0.0818, allocations: 71.64 kB / 426.9 MB, free: 11.91 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001063/0.08191, allocations: 95.52 kB / 427 MB, free: 11.82 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.054e-05/0.08195, allocations: 12 kB / 427 MB, free: 11.8 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.418e-05/0.08198, allocations: 12 kB / 427 MB, free: 11.79 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.29e-05/0.08201, allocations: 35.83 kB / 427 MB, free: 11.76 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.543e-05/0.08208, allocations: 87.41 kB / 427.1 MB, free: 11.67 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000203/0.08229, allocations: 187.3 kB / 427.3 MB, free: 11.49 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.08231, allocations: 0 / 427.3 MB, free: 11.49 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.223e-06/0.08231, allocations: 0 / 427.3 MB, free: 11.49 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.909e-06/0.08232, allocations: 0 / 427.3 MB, free: 11.49 MB / 298.7 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.0008057/0.08313, allocations: 0.503 MB / 427.8 MB, free: 10.93 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.765e-05/0.08319, allocations: 12.03 kB / 427.8 MB, free: 10.92 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.328e-05/0.08325, allocations: 32.56 kB / 427.9 MB, free: 10.89 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001977/0.08345, allocations: 232.6 kB / 428.1 MB, free: 10.62 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.938e-05/0.08349, allocations: 20.81 kB / 428.1 MB, free: 10.61 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.751e-05/0.08353, allocations: 28.31 kB / 428.1 MB, free: 10.58 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003118/0.08385, allocations: 232.8 kB / 428.4 MB, free: 10.32 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.08387, allocations: 4.188 kB / 428.4 MB, free: 10.32 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.869e-05/0.08389, allocations: 15.94 kB / 428.4 MB, free: 10.3 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.673e-06/0.0839, allocations: 4 kB / 428.4 MB, free: 10.3 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002675/0.08418, allocations: 161 kB / 428.5 MB, free: 10.14 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001223/0.08541, allocations: 1.029 MB / 429.6 MB, free: 9.051 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000232/0.08565, allocations: 146.6 kB / 429.7 MB, free: 8.898 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000116/0.08578, allocations: 72.83 kB / 429.8 MB, free: 8.824 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.705e-05/0.08581, allocations: 0 / 429.8 MB, free: 8.824 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.15e-05/0.08583, allocations: 38.56 kB / 429.8 MB, free: 8.777 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.062e-06/0.08583, allocations: 4 kB / 429.8 MB, free: 8.773 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004555/0.08629, allocations: 245.5 kB / 430.1 MB, free: 8.527 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.955e-05/0.08632, allocations: 55.41 kB / 430.1 MB, free: 8.461 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001145/0.08644, allocations: 215 kB / 430.3 MB, free: 8.242 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.359e-05/0.08646, allocations: 33.7 kB / 430.4 MB, free: 8.203 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.105e-05/0.08652, allocations: 148.1 kB / 430.5 MB, free: 8.055 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.371e-05/0.08656, allocations: 82.89 kB / 430.6 MB, free: 7.973 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.64e-05/0.08663, allocations: 77.39 kB / 430.7 MB, free: 7.891 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.597e-05/0.08668, allocations: 334.8 kB / 431 MB, free: 7.555 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001318/0.08682, allocations: 75.95 kB / 431.1 MB, free: 7.48 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001487/0.08697, allocations: 168.3 kB / 431.2 MB, free: 7.277 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001132/0.08811, allocations: 470.8 kB / 431.7 MB, free: 6.777 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.08813, allocations: 7.938 kB / 431.7 MB, free: 6.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0003887/0.08852, allocations: 309 kB / 432 MB, free: 6.461 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.37e-05/0.08854, allocations: 10.5 kB / 432 MB, free: 6.453 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.08856, allocations: 4.312 kB / 432 MB, free: 6.449 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.08858, allocations: 12 kB / 432 MB, free: 6.438 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002626/0.08884, allocations: 79.89 kB / 432.1 MB, free: 6.359 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.08886, allocations: 7.938 kB / 432.1 MB, free: 6.352 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001433/0.08901, allocations: 35.67 kB / 432.1 MB, free: 6.316 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.777e-05/0.08903, allocations: 16 kB / 432.2 MB, free: 6.301 MB / 298.7 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.0001614/0.0892, allocations: 145.6 kB / 432.3 MB, free: 6.148 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.615e-05/0.08924, allocations: 31.66 kB / 432.3 MB, free: 6.117 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003641/0.08961, allocations: 229.7 kB / 432.6 MB, free: 5.891 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.145e-06/0.08962, allocations: 4 kB / 432.6 MB, free: 5.887 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.08963, allocations: 0 / 432.6 MB, free: 5.887 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.08964, allocations: 0 / 432.6 MB, free: 5.887 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003494/0.09, allocations: 309.3 kB / 432.9 MB, free: 5.535 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.09001, allocations: 3.938 kB / 432.9 MB, free: 5.531 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003015/0.09031, allocations: 59.97 kB / 432.9 MB, free: 5.473 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.09033, allocations: 4 kB / 432.9 MB, free: 5.469 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.687e-05/0.09035, allocations: 4 kB / 432.9 MB, free: 5.465 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.09035, allocations: 4 kB / 432.9 MB, free: 5.461 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.09036, allocations: 0 / 432.9 MB, free: 5.461 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002805/0.09317, allocations: 2.282 MB / 435.2 MB, free: 3.035 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.784e-05/0.09321, allocations: 97 kB / 435.3 MB, free: 2.922 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.13e-05/0.09324, allocations: 8 kB / 435.3 MB, free: 2.914 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000138/0.09338, allocations: 15.88 kB / 435.3 MB, free: 2.898 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.902e-05/0.09345, allocations: 27.95 kB / 435.4 MB, free: 2.871 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.145e-05/0.09346, allocations: 4 kB / 435.4 MB, free: 2.867 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.958e-05/0.09354, allocations: 147.5 kB / 435.5 MB, free: 2.723 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.09355, allocations: 4 kB / 435.5 MB, free: 2.719 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003423/0.09389, allocations: 55.94 kB / 435.6 MB, free: 2.664 MB / 298.7 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 7.166e-05/0.09397, allocations: 107.5 kB / 435.7 MB, free: 2.547 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003366/0.09431, allocations: 216.3 kB / 435.9 MB, free: 2.336 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.09433, allocations: 0 / 435.9 MB, free: 2.336 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00013/0.09446, allocations: 87.84 kB / 436 MB, free: 2.25 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002791/0.09475, allocations: 32.59 kB / 436 MB, free: 2.219 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007641/0.09552, allocations: 0.8039 MB / 436.8 MB, free: 1.379 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001316/0.09566, allocations: 0.7524 MB / 437.6 MB, free: 0.6016 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001264/0.0958, allocations: 34.27 kB / 437.6 MB, free: 0.5664 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.124e-05/0.09587, allocations: 23.44 kB / 437.6 MB, free: 0.543 MB / 298.7 MB Notification: Performance of SimCode: time 2e-07/0.09588, allocations: 4 kB / 437.6 MB, free: 0.5391 MB / 298.7 MB Notification: Performance of Templates: time 0.004668/0.1006, allocations: 2.518 MB / 440.1 MB, free: 14.02 MB / 314.7 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)