Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.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.Tuning_brushup.MSL_loop_SPtimeTable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable") translateModel(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable") [/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.1526/0.1526, allocations: 21.44 MB / 36.39 MB, free: 1.164 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.001441/0.001441, allocations: 184.6 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.878/1.878, allocations: 205.4 MB / 254.1 MB, free: 15.2 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.001056/0.001056, allocations: 80.2 kB / 307.8 MB, free: 11.09 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004629/0.000463, allocations: 12.19 kB / 373.2 MB, free: 58.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.1169, allocations: 52.96 MB / 426.2 MB, free: 13.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3753/0.4923, allocations: 79.51 MB / 0.4938 GB, free: 24.37 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002399/0.4926, allocations: 72.33 kB / 0.4939 GB, free: 24.37 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01437/0.5069, allocations: 4.723 MB / 0.4985 GB, free: 23.82 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.507, allocations: 0 / 0.4985 GB, free: 23.82 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.637e-05/0.507, allocations: 12.12 kB / 0.4985 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.000935/0.508, allocations: 0.5811 MB / 0.4991 GB, free: 23.34 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.508, allocations: 11.31 kB / 0.4991 GB, free: 23.34 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.942e-05/0.5081, allocations: 28.19 kB / 0.4991 GB, free: 23.33 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000639/0.5087, allocations: 325.5 kB / 0.4995 GB, free: 23.11 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.859e-05/0.5087, allocations: 4.906 kB / 0.4995 GB, free: 23.11 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.523e-05/0.5088, allocations: 13.03 kB / 0.4995 GB, free: 23.11 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002837/0.5091, allocations: 161.1 kB / 0.4996 GB, free: 23.07 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.13e-05/0.5091, allocations: 1.438 kB / 0.4996 GB, free: 23.07 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.98e-05/0.5091, allocations: 1.469 kB / 0.4996 GB, free: 23.07 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.5091, allocations: 2.781 kB / 0.4996 GB, free: 23.07 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003558/0.5095, allocations: 149.1 kB / 0.4998 GB, free: 23.07 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007086/0.5102, allocations: 0.4887 MB / 0.5002 GB, free: 22.79 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004451/0.5107, allocations: 216.3 kB / 0.5005 GB, free: 22.75 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.566e-05/0.5107, allocations: 5.547 kB / 0.5005 GB, free: 22.75 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000263/0.511, allocations: 191.1 kB / 0.5006 GB, free: 22.67 MB / 362.7 MB Notification: Performance of pre-optimization done (n=19): time 1.653e-06/0.511, allocations: 4 kB / 0.5006 GB, free: 22.66 MB / 362.7 MB Notification: Performance of matching and sorting (n=19): time 0.00134/0.5123, allocations: 0.6931 MB / 0.5013 GB, free: 22.38 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.909e-05/0.5124, allocations: 88.84 kB / 0.5014 GB, free: 22.28 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005406/0.5129, allocations: 290.6 kB / 0.5017 GB, free: 22.18 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.313e-05/0.513, allocations: 31.11 kB / 0.5017 GB, free: 22.14 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.686e-05/0.513, allocations: 127.3 kB / 0.5018 GB, free: 22.06 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.717e-05/0.5131, allocations: 63.42 kB / 0.5019 GB, free: 22.02 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.223e-05/0.5131, allocations: 8.938 kB / 0.5019 GB, free: 22.02 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.452e-05/0.5132, allocations: 333.2 kB / 0.5022 GB, free: 21.71 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001695/0.5134, allocations: 93.34 kB / 0.5023 GB, free: 21.71 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001626/0.5136, allocations: 94.86 kB / 0.5024 GB, free: 21.71 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001946/0.5138, allocations: 137.6 kB / 0.5025 GB, free: 21.67 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.5138, allocations: 0 / 0.5025 GB, free: 21.67 MB / 362.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007353/0.5145, allocations: 429.9 kB / 0.5029 GB, free: 21.57 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.763e-05/0.5146, allocations: 38.94 kB / 0.503 GB, free: 21.54 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.5146, allocations: 0 / 0.503 GB, free: 21.54 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002395/0.5148, allocations: 52.53 kB / 0.503 GB, free: 21.53 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001121/0.5149, allocations: 26.73 kB / 0.5031 GB, free: 21.53 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001281/0.5162, allocations: 1.509 MB / 0.5045 GB, free: 20.24 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002835/0.5165, allocations: 39.27 kB / 0.5046 GB, free: 20.23 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.811e-05/0.5166, allocations: 6.875 kB / 0.5046 GB, free: 20.23 MB / 362.7 MB Warning: Assuming fixed start value for the following 3 variables: C.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Process.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,SP.a,SP.b,SP.last,$PRE.SP.nextEvent,SP.nextEvent,SP.nextEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 1 * 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: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001008/0.5176, allocations: 194.1 kB / 0.5048 GB, free: 36.08 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.897e-05/0.5177, allocations: 24.42 kB / 0.5048 GB, free: 36.07 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.688e-05/0.5177, allocations: 32.73 kB / 0.5048 GB, free: 36.06 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.5177, allocations: 2.328 kB / 0.5048 GB, free: 36.06 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.5178, allocations: 1.375 kB / 0.5048 GB, free: 36.06 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/0.5178, allocations: 4.891 kB / 0.5048 GB, free: 36.05 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003326/0.5181, allocations: 298.4 kB / 0.5051 GB, free: 35.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.5181, allocations: 0 / 0.5051 GB, free: 35.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001313/0.5183, allocations: 24.02 kB / 0.5051 GB, free: 35.86 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001915/0.5185, allocations: 50.75 kB / 0.5052 GB, free: 35.85 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.912e-05/0.5185, allocations: 12.28 kB / 0.5052 GB, free: 35.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001293/0.5198, allocations: 1.51 MB / 0.5067 GB, free: 34.56 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.5198, allocations: 7.953 kB / 0.5067 GB, free: 34.55 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001029/0.5208, allocations: 0.5853 MB / 0.5072 GB, free: 34.42 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.407e-05/0.5209, allocations: 99.55 kB / 0.5073 GB, free: 34.32 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.009e-05/0.521, allocations: 12.25 kB / 0.5073 GB, free: 34.31 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002562/0.5212, allocations: 31.3 kB / 0.5074 GB, free: 34.31 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.795e-05/0.5213, allocations: 14.06 kB / 0.5074 GB, free: 34.31 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.832e-05/0.5214, allocations: 6.594 kB / 0.5074 GB, free: 34.31 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005082/0.5219, allocations: 250.2 kB / 0.5076 GB, free: 34.23 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.5219, allocations: 0 / 0.5076 GB, free: 34.23 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004056/0.5223, allocations: 72.3 kB / 0.5077 GB, free: 34.22 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (Process.x_scaled[1],Process.x_scaled[2],C.x_scaled[1]) * Number of discrete variables: 6 ($whenCondition1,SP.a,SP.b,SP.last,SP.nextEvent,SP.nextEventScaled) * Number of discrete states: 6 (SP.nextEvent,SP.last,SP.nextEventScaled,SP.b,SP.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 1 * 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: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000272/0.5226, allocations: 142.2 kB / 0.5078 GB, free: 34.11 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007361/0.5233, allocations: 433.2 kB / 0.5083 GB, free: 33.94 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.5233, allocations: 1.031 kB / 0.5083 GB, free: 33.94 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003736/0.5237, allocations: 326.9 kB / 0.5086 GB, free: 33.75 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002279/0.5239, allocations: 32.11 kB / 0.5086 GB, free: 33.75 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007972/0.5248, allocations: 0.5212 MB / 0.5091 GB, free: 33.48 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003278/0.5251, allocations: 0.7602 MB / 0.5098 GB, free: 32.79 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001014/0.5252, allocations: 32.98 kB / 0.5099 GB, free: 32.78 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.472e-05/0.5253, allocations: 14.97 kB / 0.5099 GB, free: 32.77 MB / 378.7 MB Notification: Performance of SimCode: time 2.4e-07/0.5253, allocations: 0 / 0.5099 GB, free: 32.77 MB / 378.7 MB Notification: Performance of Templates: time 0.006551/0.5318, allocations: 2.553 MB / 0.5124 GB, free: 32.59 MB / 378.7 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.makefile (rm -f AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.sim & ./AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe 2>&1)