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.1486/0.1486, allocations: 21.41 MB / 36.66 MB, free: 1.113 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.001519/0.001519, allocations: 173.2 kB / 42.84 MB, free: 3.867 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.737/1.737, allocations: 205 MB / 253.9 MB, free: 15 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.0007922/0.0007923, allocations: 86.3 kB / 307.2 MB, free: 11.46 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003144/0.0003144, allocations: 8.562 kB / 372.5 MB, free: 59.55 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08905/0.08938, allocations: 52.51 MB / 425 MB, free: 14.33 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_with_locks): time 0.002691/0.09211, allocations: 1.925 MB / 426.9 MB, free: 12.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003323/0.09247, allocations: 191.3 kB / 427.1 MB, free: 12.2 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.52e-05/0.09257, allocations: 0 / 427.1 MB, free: 12.2 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001312/0.09272, allocations: 27.73 kB / 427.1 MB, free: 12.17 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.097e-05/0.09279, allocations: 11.88 kB / 427.1 MB, free: 12.16 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.0001806/0.09297, allocations: 75.91 kB / 427.2 MB, free: 12.09 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001936/0.09317, allocations: 224.8 kB / 427.4 MB, free: 11.87 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001391/0.09332, allocations: 64.36 kB / 427.5 MB, free: 11.8 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.886e-05/0.09339, allocations: 75.58 kB / 427.6 MB, free: 11.73 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.881e-05/0.09349, allocations: 95.52 kB / 427.7 MB, free: 11.63 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.25e-05/0.09353, allocations: 12 kB / 427.7 MB, free: 11.62 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.277e-05/0.09356, allocations: 8 kB / 427.7 MB, free: 11.61 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.467e-05/0.0936, allocations: 39.84 kB / 427.7 MB, free: 11.57 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.442e-05/0.09367, allocations: 91.39 kB / 427.8 MB, free: 11.48 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001482/0.09382, allocations: 179.3 kB / 428 MB, free: 11.31 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.936e-06/0.09383, allocations: 0 / 428 MB, free: 11.31 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.09384, allocations: 0 / 428 MB, free: 11.31 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.929e-06/0.09385, allocations: 0 / 428 MB, free: 11.31 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.0006671/0.09452, allocations: 0.4992 MB / 428.5 MB, free: 10.76 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.477e-05/0.09456, allocations: 8.031 kB / 428.5 MB, free: 10.75 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.982e-05/0.09462, allocations: 32.56 kB / 428.5 MB, free: 10.72 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001902/0.09481, allocations: 240.5 kB / 428.8 MB, free: 10.45 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.861e-05/0.09485, allocations: 16.81 kB / 428.8 MB, free: 10.43 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.008e-05/0.0949, allocations: 24.38 kB / 428.8 MB, free: 10.41 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003314/0.09523, allocations: 244.8 kB / 429 MB, free: 10.14 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/0.09525, allocations: 192 / 429 MB, free: 10.14 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.12e-05/0.09528, allocations: 11.94 kB / 429 MB, free: 10.13 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.478e-06/0.0953, allocations: 7.938 kB / 429.1 MB, free: 10.12 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002791/0.09558, allocations: 165 kB / 429.2 MB, free: 9.961 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001234/0.09682, allocations: 1.018 MB / 430.2 MB, free: 8.879 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002439/0.09708, allocations: 154.5 kB / 430.4 MB, free: 8.719 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001169/0.09721, allocations: 64.83 kB / 430.4 MB, free: 8.652 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.34e-05/0.09725, allocations: 4 kB / 430.4 MB, free: 8.648 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.394e-05/0.09727, allocations: 38.56 kB / 430.5 MB, free: 8.602 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.292e-06/0.09727, allocations: 0 / 430.5 MB, free: 8.602 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004531/0.09773, allocations: 253.4 kB / 430.7 MB, free: 8.348 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.357e-05/0.09776, allocations: 55.41 kB / 430.8 MB, free: 8.281 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001279/0.0979, allocations: 211.1 kB / 431 MB, free: 8.066 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.494e-05/0.09792, allocations: 33.64 kB / 431 MB, free: 8.027 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.131e-05/0.09799, allocations: 164.1 kB / 431.2 MB, free: 7.863 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.48e-05/0.09803, allocations: 74.91 kB / 431.3 MB, free: 7.789 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.148e-05/0.09811, allocations: 73.39 kB / 431.3 MB, free: 7.711 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.4e-05/0.09817, allocations: 330.8 kB / 431.7 MB, free: 7.379 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000136/0.09831, allocations: 75.95 kB / 431.7 MB, free: 7.305 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001584/0.09848, allocations: 168.3 kB / 431.9 MB, free: 7.102 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00118/0.09966, allocations: 478.7 kB / 432.4 MB, free: 6.594 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.09968, allocations: 0 / 432.4 MB, free: 6.594 MB / 298.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0004021/0.1001, allocations: 312.9 kB / 432.7 MB, free: 6.281 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.1001, allocations: 4.375 kB / 432.7 MB, free: 6.277 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.1001, allocations: 8 kB / 432.7 MB, free: 6.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.491e-05/0.1001, allocations: 11.92 kB / 432.7 MB, free: 6.258 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002675/0.1004, allocations: 79.89 kB / 432.8 MB, free: 6.18 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.386e-06/0.1004, allocations: 8 kB / 432.8 MB, free: 6.172 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001409/0.1006, allocations: 39.67 kB / 432.8 MB, free: 6.133 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.754e-05/0.1006, allocations: 16 kB / 432.8 MB, free: 6.117 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.0002062/0.1008, allocations: 149.9 kB / 433 MB, free: 5.961 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.711e-05/0.1009, allocations: 23.66 kB / 433 MB, free: 5.938 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003758/0.1012, allocations: 225.8 kB / 433.2 MB, free: 5.715 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/0.1013, allocations: 0 / 433.2 MB, free: 5.715 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.1013, allocations: 0 / 433.2 MB, free: 5.715 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.347e-06/0.1013, allocations: 0 / 433.2 MB, free: 5.715 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000351/0.1016, allocations: 313.3 kB / 433.5 MB, free: 5.359 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.1016, allocations: 11.94 kB / 433.5 MB, free: 5.348 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000286/0.1019, allocations: 55.91 kB / 433.6 MB, free: 5.293 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.1019, allocations: 0 / 433.6 MB, free: 5.293 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.833e-05/0.102, allocations: 8 kB / 433.6 MB, free: 5.285 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.102, allocations: 0 / 433.6 MB, free: 5.285 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.102, allocations: 0 / 433.6 MB, free: 5.285 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004459/0.1024, allocations: 387.5 kB / 434 MB, free: 4.887 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.337e-05/0.1025, allocations: 100.9 kB / 434.1 MB, free: 4.77 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.75e-05/0.1025, allocations: 0 / 434.1 MB, free: 4.77 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001421/0.1027, allocations: 11.98 kB / 434.1 MB, free: 4.758 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.619e-05/0.1027, allocations: 27.95 kB / 434.1 MB, free: 4.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.091e-05/0.1027, allocations: 4 kB / 434.1 MB, free: 4.727 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.636e-05/0.1029, allocations: 147.5 kB / 434.3 MB, free: 4.582 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1029, allocations: 0 / 434.3 MB, free: 4.582 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002537/0.1031, allocations: 47.84 kB / 434.3 MB, free: 4.535 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 9.405e-05/0.1032, allocations: 111.3 kB / 434.4 MB, free: 4.418 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003542/0.1036, allocations: 199.8 kB / 434.6 MB, free: 4.223 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.1036, allocations: 0 / 434.6 MB, free: 4.223 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000139/0.1037, allocations: 104.5 kB / 434.7 MB, free: 4.121 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003064/0.104, allocations: 36.59 kB / 434.8 MB, free: 4.086 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007959/0.1049, allocations: 0.6019 MB / 435.4 MB, free: 3.457 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001862/0.1051, allocations: 0.7485 MB / 436.1 MB, free: 2.684 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001604/0.1052, allocations: 30.28 kB / 436.1 MB, free: 2.652 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.793e-05/0.1053, allocations: 23.44 kB / 436.2 MB, free: 2.629 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.1053, allocations: 4 kB / 436.2 MB, free: 2.625 MB / 298.7 MB Notification: Performance of Templates: time 0.004332/0.1096, allocations: 1.808 MB / 438 MB, free: 0.8164 MB / 298.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)