Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Keep_below_limit.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.Keep_below_limit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Keep_below_limit") translateModel(AES.Coursework.Typical_control_structures.Keep_below_limit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Keep_below_limit") [/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.158/0.158, allocations: 21.44 MB / 36.39 MB, free: 1.207 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.001095/0.001095, allocations: 186.8 kB / 42.62 MB, free: 3.988 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.819/1.819, allocations: 205.4 MB / 254.1 MB, free: 15.43 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.001012/0.001012, allocations: 90.3 kB / 307.8 MB, free: 11.32 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005166/0.0005165, allocations: 7.375 kB / 373.2 MB, free: 59.27 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1263/0.1268, allocations: 52.95 MB / 426.2 MB, free: 13.36 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.388/0.5148, allocations: 79.75 MB / 0.4941 GB, free: 24.27 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002745/0.5152, allocations: 78.89 kB / 0.4941 GB, free: 24.27 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01007/0.5252, allocations: 3.246 MB / 0.4973 GB, free: 23.82 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.5253, allocations: 0 / 0.4973 GB, free: 23.82 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.946e-05/0.5253, allocations: 5.219 kB / 0.4973 GB, free: 23.82 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 27 * Number of variables: 27 Notification: Performance of Generate backend data structure: time 0.0008053/0.5261, allocations: 0.499 MB / 0.4978 GB, free: 23.4 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.208e-05/0.5262, allocations: 10.31 kB / 0.4978 GB, free: 23.4 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.575e-05/0.5262, allocations: 20.66 kB / 0.4978 GB, free: 23.39 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005169/0.5268, allocations: 276 kB / 0.4981 GB, free: 23.17 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.98e-05/0.5268, allocations: 9.984 kB / 0.4981 GB, free: 23.17 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.223e-05/0.5268, allocations: 20.39 kB / 0.4981 GB, free: 23.16 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003154/0.5272, allocations: 163.9 kB / 0.4983 GB, free: 23.11 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.333e-05/0.5272, allocations: 0 / 0.4983 GB, free: 23.11 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.163e-05/0.5272, allocations: 9.719 kB / 0.4983 GB, free: 23.11 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.982e-06/0.5272, allocations: 5.906 kB / 0.4983 GB, free: 23.11 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002954/0.5275, allocations: 125.7 kB / 0.4984 GB, free: 23.11 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009241/0.5285, allocations: 0.5232 MB / 0.4989 GB, free: 22.81 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005975/0.5291, allocations: 205.8 kB / 0.4991 GB, free: 22.78 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.229e-05/0.5291, allocations: 5.281 kB / 0.4991 GB, free: 22.77 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.06e-05/0.5291, allocations: 35.62 kB / 0.4992 GB, free: 22.73 MB / 362.7 MB Notification: Performance of pre-optimization done (n=12): time 1.323e-06/0.5291, allocations: 0 / 0.4992 GB, free: 22.73 MB / 362.7 MB Notification: Performance of matching and sorting (n=12): time 0.001566/0.5307, allocations: 0.5597 MB / 0.4997 GB, free: 22.57 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.887e-05/0.5308, allocations: 79.2 kB / 0.4998 GB, free: 22.48 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003498/0.5311, allocations: 200.7 kB / 0.5 GB, free: 22.38 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.113e-05/0.5312, allocations: 31.27 kB / 0.5 GB, free: 22.35 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.602e-05/0.5312, allocations: 127.2 kB / 0.5001 GB, free: 22.25 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.815e-05/0.5313, allocations: 47.77 kB / 0.5002 GB, free: 22.22 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.768e-06/0.5313, allocations: 0 / 0.5002 GB, free: 22.22 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.795e-05/0.5314, allocations: 339.2 kB / 0.5005 GB, free: 21.9 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001334/0.5315, allocations: 67.33 kB / 0.5006 GB, free: 21.89 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001572/0.5317, allocations: 88.73 kB / 0.5006 GB, free: 21.87 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001426/0.5318, allocations: 69.02 kB / 0.5007 GB, free: 21.87 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.5318, allocations: 4.031 kB / 0.5007 GB, free: 21.87 MB / 362.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003524/0.5322, allocations: 201.5 kB / 0.5009 GB, free: 21.82 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.408e-05/0.5323, allocations: 184.5 kB / 0.5011 GB, free: 21.63 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.5323, allocations: 1.438 kB / 0.5011 GB, free: 21.63 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.73e-05/0.5323, allocations: 1.344 kB / 0.5011 GB, free: 21.63 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002627/0.5326, allocations: 40.45 kB / 0.5011 GB, free: 21.63 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.668e-06/0.5326, allocations: 6.203 kB / 0.5011 GB, free: 21.63 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001931/0.5328, allocations: 30.45 kB / 0.5012 GB, free: 21.62 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.416e-05/0.5328, allocations: 3.25 kB / 0.5012 GB, free: 21.62 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.405e-06/0.5328, allocations: 8.719 kB / 0.5012 GB, free: 21.62 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002043/0.533, allocations: 120.5 kB / 0.5013 GB, free: 21.62 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.094e-06/0.533, allocations: 1.875 kB / 0.5013 GB, free: 21.62 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.975e-06/0.5331, allocations: 1.828 kB / 0.5013 GB, free: 21.62 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002259/0.5333, allocations: 41.86 kB / 0.5013 GB, free: 21.61 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.683e-06/0.5333, allocations: 1.375 kB / 0.5013 GB, free: 21.61 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001607/0.5335, allocations: 25.06 kB / 0.5014 GB, free: 21.61 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.216e-05/0.5335, allocations: 4.719 kB / 0.5014 GB, free: 21.61 MB / 362.7 MB 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 (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001304/0.5336, allocations: 212.2 kB / 0.5016 GB, free: 21.41 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.338e-05/0.5337, allocations: 18.77 kB / 0.5016 GB, free: 21.4 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008067/0.5345, allocations: 303.7 kB / 0.5019 GB, free: 21.34 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.5345, allocations: 2.844 kB / 0.5019 GB, free: 21.34 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.486e-06/0.5345, allocations: 3.953 kB / 0.5019 GB, free: 21.34 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.642e-06/0.5345, allocations: 4.969 kB / 0.5019 GB, free: 21.34 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003286/0.5349, allocations: 271.8 kB / 0.5021 GB, free: 21.14 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.5349, allocations: 0 / 0.5021 GB, free: 21.14 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001026/0.535, allocations: 16.14 kB / 0.5022 GB, free: 21.14 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004171/0.5354, allocations: 97.91 kB / 0.5022 GB, free: 21.12 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.799e-05/0.5354, allocations: 0.75 kB / 0.5022 GB, free: 21.12 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00289/0.5383, allocations: 1.796 MB / 0.504 GB, free: 35.83 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/0.5384, allocations: 5.422 kB / 0.504 GB, free: 35.82 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008182/0.5392, allocations: 464.5 kB / 0.5044 GB, free: 35.66 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.78e-05/0.5393, allocations: 92.09 kB / 0.5045 GB, free: 35.56 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.565e-05/0.5393, allocations: 9.5 kB / 0.5045 GB, free: 35.55 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000215/0.5395, allocations: 25.83 kB / 0.5046 GB, free: 35.55 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.993e-05/0.5396, allocations: 14.56 kB / 0.5046 GB, free: 35.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.093e-05/0.5396, allocations: 2.281 kB / 0.5046 GB, free: 35.55 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003092/0.5399, allocations: 168 kB / 0.5047 GB, free: 35.47 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5399, allocations: 1.062 kB / 0.5047 GB, free: 35.47 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004101/0.5403, allocations: 70.08 kB / 0.5048 GB, free: 35.46 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (C.FO.y,P.x_scaled[1],P.x_scaled[2]) * 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 (8): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001692/0.5405, allocations: 121.8 kB / 0.5049 GB, free: 35.36 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004785/0.541, allocations: 213.5 kB / 0.5051 GB, free: 35.35 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.541, allocations: 0 / 0.5051 GB, free: 35.35 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003538/0.5414, allocations: 211.2 kB / 0.5053 GB, free: 35.23 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002538/0.5416, allocations: 27.17 kB / 0.5054 GB, free: 35.22 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007295/0.5424, allocations: 453 kB / 0.5058 GB, free: 34.98 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003044/0.5427, allocations: 0.7456 MB / 0.5065 GB, free: 34.28 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000136/0.5428, allocations: 34.25 kB / 0.5066 GB, free: 34.28 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.611e-05/0.5429, allocations: 19.12 kB / 0.5066 GB, free: 34.27 MB / 378.7 MB Notification: Performance of SimCode: time 2.2e-07/0.5429, allocations: 0 / 0.5066 GB, free: 34.27 MB / 378.7 MB Notification: Performance of Templates: time 0.00597/0.5489, allocations: 2.19 MB / 0.5087 GB, free: 34.11 MB / 378.7 MB make -j1 -f AES_AES.Coursework.Typical_control_structures.Keep_below_limit.makefile (rm -f AES_AES.Coursework.Typical_control_structures.Keep_below_limit.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Keep_below_limit.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Keep_below_limit.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Keep_below_limit.sim & ./AES_AES.Coursework.Typical_control_structures.Keep_below_limit -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Keep_below_limit.pipe 2>&1)