Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_control_problems.Thermal_control_actuator_split.Actuator_split_cascadeLoops.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: "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Thermal_control_actuator_split.Actuator_split_cascadeLoops,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Thermal_control_actuator_split_Actuator_split_cascadeLoops",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Thermal_control_actuator_split.Actuator_split_cascadeLoops,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Thermal_control_actuator_split_Actuator_split_cascadeLoops",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009142/0.0009144, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.005216/0.005216, allocations: 173.9 kB / 16.26 MB, free: 6.676 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.251/1.251, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1914/0.1914, allocations: 22.34 MB / 313.8 MB, free: 13.1 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003303/0.0003303, allocations: 16.12 kB / 382.7 MB, free: 10.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2317/0.232, allocations: 55.97 MB / 438.7 MB, free: 39.42 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Thermal_control_actuator_split.Actuator_split_cascadeLoops): time 0.001963/0.234, allocations: 2.407 MB / 441.1 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000618/0.2347, allocations: 493 kB / 441.6 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001292/0.2348, allocations: 9.594 kB / 441.6 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.299e-05/0.2349, allocations: 28.23 kB / 441.6 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002308/0.2351, allocations: 65.73 kB / 441.7 MB, free: 37.26 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003399/0.2355, allocations: 238.4 kB / 441.9 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003126/0.2358, allocations: 448.9 kB / 442.3 MB, free: 36.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002353/0.236, allocations: 184.8 kB / 442.5 MB, free: 36.81 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.666e-05/0.2361, allocations: 126 kB / 442.7 MB, free: 36.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001339/0.2363, allocations: 145.3 kB / 442.8 MB, free: 36.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.558e-05/0.2363, allocations: 14.72 kB / 442.8 MB, free: 36.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.254e-05/0.2363, allocations: 11.75 kB / 442.8 MB, free: 36.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.88e-05/0.2364, allocations: 64.88 kB / 442.9 MB, free: 36.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.589e-05/0.2365, allocations: 194.7 kB / 443.1 MB, free: 36.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002327/0.2367, allocations: 418.6 kB / 443.5 MB, free: 36.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.2367, allocations: 0 / 443.5 MB, free: 36.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.2367, allocations: 0 / 443.5 MB, free: 36.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.2367, allocations: 0 / 443.5 MB, free: 36.36 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.000771/0.2375, allocations: 0.6608 MB / 444.1 MB, free: 35.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.338e-05/0.2376, allocations: 12.47 kB / 444.2 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.601e-05/0.2376, allocations: 68.69 kB / 444.2 MB, free: 35.78 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.172e-05/0.2377, allocations: 49.78 kB / 444.3 MB, free: 35.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002719/0.238, allocations: 340 kB / 444.6 MB, free: 35.46 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.472e-05/0.238, allocations: 22.03 kB / 444.6 MB, free: 35.45 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.891e-05/0.238, allocations: 33.31 kB / 444.7 MB, free: 35.44 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005589/0.2386, allocations: 391.8 kB / 445 MB, free: 35.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.416e-05/0.2386, allocations: 7.938 kB / 445 MB, free: 35.26 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.979e-05/0.2387, allocations: 15.25 kB / 445.1 MB, free: 35.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.373e-06/0.2387, allocations: 8.719 kB / 445.1 MB, free: 35.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005414/0.2392, allocations: 299.6 kB / 445.4 MB, free: 35.16 MB / 350.1 MB Warning: Alias set with conflicting start values * Candidate: Cap.T(start = 293.15, confidence number = 7) * Candidate: Cap.port.T(start = 288.15, confidence number = 8) * Candidate: Gloss.port_b.T(start = 288.15, confidence number = 8) * Candidate: Pa1.port.T(start = 288.15, confidence number = 8) * Candidate: Pa2.port.T(start = 288.15, confidence number = 8) * Candidate: sT.port.T(start = 288.15, confidence number = 8) => Select value from Cap.T(start = 293.15) for variable: Cap.T Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001411/0.2406, allocations: 1.503 MB / 446.9 MB, free: 34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005244/0.2412, allocations: 329.7 kB / 447.2 MB, free: 33.88 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002663/0.2415, allocations: 163.5 kB / 447.3 MB, free: 33.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.817e-05/0.2415, allocations: 7.875 kB / 447.4 MB, free: 33.81 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.362e-05/0.2415, allocations: 41.83 kB / 447.4 MB, free: 33.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.393e-06/0.2415, allocations: 0 / 447.4 MB, free: 33.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.0008327/0.2424, allocations: 456.9 kB / 447.8 MB, free: 33.6 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.389e-05/0.2424, allocations: 131.4 kB / 448 MB, free: 33.45 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001817/0.2426, allocations: 272.5 kB / 448.2 MB, free: 33.29 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.237e-05/0.2426, allocations: 29.7 kB / 448.3 MB, free: 33.26 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.656e-05/0.2427, allocations: 200.5 kB / 448.5 MB, free: 33.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.229e-05/0.2428, allocations: 110.5 kB / 448.6 MB, free: 33.01 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.888e-05/0.2428, allocations: 37.91 kB / 448.6 MB, free: 32.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.657e-05/0.2429, allocations: 339.2 kB / 448.9 MB, free: 32.65 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002442/0.2431, allocations: 124.4 kB / 449.1 MB, free: 32.61 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002626/0.2434, allocations: 178.5 kB / 449.2 MB, free: 32.53 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001973/0.2454, allocations: 0.6367 MB / 449.9 MB, free: 32.33 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.2454, allocations: 6.281 kB / 449.9 MB, free: 32.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0006043/0.246, allocations: 366.4 kB / 450.2 MB, free: 32.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.865e-05/0.246, allocations: 95.94 kB / 450.3 MB, free: 32.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.246, allocations: 6.562 kB / 450.3 MB, free: 32.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.032e-05/0.246, allocations: 3.938 kB / 450.3 MB, free: 32.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003281/0.2464, allocations: 84.17 kB / 450.4 MB, free: 32.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.833e-06/0.2464, allocations: 7.688 kB / 450.4 MB, free: 32.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002106/0.2466, allocations: 43.69 kB / 450.5 MB, free: 32.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.984e-05/0.2466, allocations: 9.969 kB / 450.5 MB, free: 32.05 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.59e-06/0.2467, allocations: 9.406 kB / 450.5 MB, free: 32.04 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002893/0.2469, allocations: 221.2 kB / 450.7 MB, free: 31.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.224e-06/0.247, allocations: 2.844 kB / 450.7 MB, free: 31.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.114e-06/0.247, allocations: 0 / 450.7 MB, free: 31.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002304/0.2472, allocations: 58.14 kB / 450.8 MB, free: 31.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.016e-06/0.2472, allocations: 2.562 kB / 450.8 MB, free: 31.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001495/0.2474, allocations: 27.78 kB / 450.8 MB, free: 31.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.402e-05/0.2474, allocations: 9.031 kB / 450.8 MB, free: 31.93 MB / 350.1 MB Warning: Assuming fixed start value for the following 3 variables: Act2.y:VARIABLE(flow=false start = Act2.y_start fixed = true ) "Connector of Real output signal" type: Real Act1.y:VARIABLE(flow=false start = Act1.y_start fixed = true ) "Connector of Real output signal" type: Real Cap.T:VARIABLE(min = max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 0.0))))) start = 293.15 unit = "K" fixed = true nominal = 300.0 ) "Temperature of element" type: Real 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 (36): * Single equations (assignments): 36 * 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.000188/0.2476, allocations: 258.4 kB / 451.1 MB, free: 31.7 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.346e-05/0.2476, allocations: 32 kB / 451.1 MB, free: 31.69 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006716/0.2483, allocations: 377.1 kB / 451.5 MB, free: 31.54 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.2483, allocations: 2.938 kB / 451.5 MB, free: 31.54 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.2484, allocations: 0 / 451.5 MB, free: 31.54 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.2484, allocations: 7.172 kB / 451.5 MB, free: 31.53 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003351/0.2487, allocations: 427.1 kB / 451.9 MB, free: 31.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.2487, allocations: 2.688 kB / 451.9 MB, free: 31.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003386/0.2491, allocations: 79.25 kB / 452 MB, free: 31.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.2491, allocations: 0 / 452 MB, free: 31.22 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.164e-05/0.2491, allocations: 14.56 kB / 452 MB, free: 31.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.2491, allocations: 6.719 kB / 452 MB, free: 31.21 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.2491, allocations: 0 / 452 MB, free: 31.21 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008465/0.25, allocations: 0.6087 MB / 452.6 MB, free: 30.91 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.162e-05/0.25, allocations: 104.7 kB / 452.7 MB, free: 30.79 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.217e-05/0.2501, allocations: 6.375 kB / 452.7 MB, free: 30.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002309/0.2503, allocations: 34.89 kB / 452.7 MB, free: 30.78 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.392e-05/0.2503, allocations: 18.55 kB / 452.8 MB, free: 30.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.481e-05/0.2504, allocations: 5.875 kB / 452.8 MB, free: 30.78 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000123/0.2505, allocations: 198.4 kB / 453 MB, free: 30.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2505, allocations: 0 / 453 MB, free: 30.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003914/0.2509, allocations: 147.9 kB / 453.1 MB, free: 30.61 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (Act2.y,Act1.y,Cap.T,CT.FO.y,CA1.FO.y,CA2.FO.y) * 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 (31): * Single equations (assignments): 31 * 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.0009787/0.2519, allocations: 1.141 MB / 454.2 MB, free: 29.79 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006764/0.2526, allocations: 427.5 kB / 454.7 MB, free: 29.67 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.2526, allocations: 3.125 kB / 454.7 MB, free: 29.67 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002535/0.2528, allocations: 163.9 kB / 454.8 MB, free: 29.62 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004898/0.2533, allocations: 81.41 kB / 454.9 MB, free: 29.59 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00386/0.2572, allocations: 3.596 MB / 458.5 MB, free: 27.37 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001697/0.2574, allocations: 0.8018 MB / 459.3 MB, free: 26.67 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001595/0.2575, allocations: 36.28 kB / 459.3 MB, free: 26.66 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001555/0.2577, allocations: 123.6 kB / 459.5 MB, free: 26.57 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.2577, allocations: 4 kB / 459.5 MB, free: 26.57 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.772/2.03, allocations: 6.821 MB / 466.3 MB, free: 26.15 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000161/2.03, allocations: 248.9 kB / 466.5 MB, free: 25.9 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.785/3.815, allocations: 1.094 kB / 466.5 MB, free: 25.9 MB / 350.1 MB (rm -f AES_AES.Coursework.ThermSys_control_problems.Thermal_control_actuator_split.Actuator_split_cascadeLoops.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Thermal_control_actuator_split.Actuator_split_cascadeLoops.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Thermal_control_actuator_split.Actuator_split_cascadeLoops.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Thermal_control_actuator_split.Actuator_split_cascadeLoops.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_control_problems_Thermal_control_actuator_split_Actuator_split_cascadeLoops_fmu --startTime=0 --stopTime=3000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_control_problems_Thermal_control_actuator_split_Actuator_split_cascadeLoops.fmu > AES_AES.Coursework.ThermSys_control_problems.Thermal_control_actuator_split.Actuator_split_cascadeLoops.pipe 2>&1)