Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.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.FF_compensation_simple_lead_lag,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag") translateModel(AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag") [/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.09921/0.09921, allocations: 21.46 MB / 36.43 MB, free: 1.156 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.0009562/0.0009564, allocations: 189.4 kB / 42.65 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.412/1.412, 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.0006851/0.0006852, allocations: 84.81 kB / 307.8 MB, free: 11.31 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004201/0.0004202, allocations: 11.78 kB / 373.3 MB, free: 59.26 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.1185, allocations: 52.96 MB / 426.2 MB, free: 13.3 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag): time 0.00152/0.1201, allocations: 0.8662 MB / 427.1 MB, free: 12.43 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002068/0.1221, allocations: 1.351 MB / 428.4 MB, free: 11.06 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001198/0.1223, allocations: 3.938 kB / 428.4 MB, free: 11.06 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004413/0.1227, allocations: 71.72 kB / 428.5 MB, free: 10.99 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003228/0.1231, allocations: 79.59 kB / 428.6 MB, free: 10.91 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003543/0.1235, allocations: 151.8 kB / 428.7 MB, free: 10.76 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004607/0.1239, allocations: 391.1 kB / 429.1 MB, free: 10.38 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001476/0.1241, allocations: 49.14 kB / 429.2 MB, free: 10.33 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002742/0.1244, allocations: 203.4 kB / 429.4 MB, free: 10.13 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003422/0.1247, allocations: 215.2 kB / 429.6 MB, free: 9.922 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.072e-05/0.1248, allocations: 12 kB / 429.6 MB, free: 9.91 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.095e-05/0.1249, allocations: 12 kB / 429.6 MB, free: 9.898 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001364/0.125, allocations: 91.69 kB / 429.7 MB, free: 9.809 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.249e-05/0.1251, allocations: 61.52 kB / 429.7 MB, free: 9.742 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002353/0.1254, allocations: 219.5 kB / 430 MB, free: 9.527 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.399e-06/0.1254, allocations: 4 kB / 430 MB, free: 9.523 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1254, allocations: 0 / 430 MB, free: 9.523 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.811e-06/0.1254, allocations: 0 / 430 MB, free: 9.523 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: 35 * Number of variables: 35 Notification: Performance of Generate backend data structure: time 0.002851/0.1283, allocations: 0.7749 MB / 430.7 MB, free: 8.699 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/0.1283, allocations: 12.03 kB / 430.8 MB, free: 8.688 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.148e-05/0.1284, allocations: 35.62 kB / 430.8 MB, free: 8.652 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001606/0.13, allocations: 446.7 kB / 431.2 MB, free: 8.176 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.21e-05/0.1301, allocations: 8 kB / 431.2 MB, free: 8.168 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.868e-05/0.1301, allocations: 23.91 kB / 431.3 MB, free: 8.145 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004744/0.1306, allocations: 197.3 kB / 431.4 MB, free: 7.945 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.93e-05/0.1307, allocations: 0 / 431.4 MB, free: 7.945 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.079e-05/0.1307, allocations: 8 kB / 431.5 MB, free: 7.938 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.643e-06/0.1307, allocations: 3.938 kB / 431.5 MB, free: 7.934 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005666/0.1313, allocations: 215.8 kB / 431.7 MB, free: 7.723 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001605/0.1329, allocations: 0.7148 MB / 432.4 MB, free: 6.957 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008858/0.1338, allocations: 297.3 kB / 432.7 MB, free: 6.66 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002831/0.1341, allocations: 124.8 kB / 432.8 MB, free: 6.535 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.551e-05/0.1342, allocations: 4 kB / 432.8 MB, free: 6.531 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.649e-05/0.1342, allocations: 38.5 kB / 432.8 MB, free: 6.484 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 1.943e-06/0.1342, allocations: 0 / 432.8 MB, free: 6.484 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.001919/0.1361, allocations: 0.5966 MB / 433.4 MB, free: 5.859 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.514e-05/0.1362, allocations: 51.41 kB / 433.5 MB, free: 5.797 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001535/0.1377, allocations: 476.3 kB / 434 MB, free: 5.32 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.89e-05/0.1378, allocations: 29.7 kB / 434 MB, free: 5.285 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000132/0.1379, allocations: 168.4 kB / 434.1 MB, free: 5.117 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.096e-05/0.138, allocations: 78.81 kB / 434.2 MB, free: 5.039 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.062e-05/0.138, allocations: 12 kB / 434.2 MB, free: 5.027 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.704e-05/0.1381, allocations: 346.8 kB / 434.6 MB, free: 4.68 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002637/0.1384, allocations: 99.94 kB / 434.7 MB, free: 4.582 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002913/0.1387, allocations: 145.5 kB / 434.8 MB, free: 4.434 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003223/0.1391, allocations: 124.3 kB / 434.9 MB, free: 4.312 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.1391, allocations: 0 / 434.9 MB, free: 4.312 MB / 298.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.001026/0.1401, allocations: 421.8 kB / 435.3 MB, free: 3.891 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.917e-05/0.1402, allocations: 4 kB / 435.3 MB, free: 3.887 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.1402, allocations: 4 kB / 435.4 MB, free: 3.883 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003648/0.1406, allocations: 68.73 kB / 435.4 MB, free: 3.812 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003411/0.1409, allocations: 39.98 kB / 435.5 MB, free: 3.773 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001625/0.1426, allocations: 1.558 MB / 437 MB, free: 2.082 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007216/0.1433, allocations: 83.7 kB / 437.1 MB, free: 2 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.856e-05/0.1433, allocations: 12 kB / 437.1 MB, free: 1.988 MB / 298.7 MB Warning: Assuming fixed start value for the following 7 variables: C.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] K.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] M.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] H.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] H.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] P.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] P.x_scaled[2]: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: 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 (27): * Single equations (assignments): 26 * 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: 1 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002692/0.1436, allocations: 171.6 kB / 437.3 MB, free: 1.812 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.297e-05/0.1437, allocations: 31.62 kB / 437.3 MB, free: 1.781 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000111/0.1438, allocations: 51.17 kB / 437.4 MB, free: 1.73 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.1439, allocations: 0 / 437.4 MB, free: 1.73 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/0.1439, allocations: 3.953 kB / 437.4 MB, free: 1.727 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.783e-06/0.1439, allocations: 7.984 kB / 437.4 MB, free: 1.719 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005206/0.1444, allocations: 361.5 kB / 437.7 MB, free: 1.316 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.546e-06/0.1444, allocations: 7.938 kB / 437.7 MB, free: 1.309 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004251/0.1449, allocations: 43.92 kB / 437.8 MB, free: 1.266 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002812/0.1452, allocations: 60.8 kB / 437.8 MB, free: 1.203 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.384e-05/0.1452, allocations: 8 kB / 437.8 MB, free: 1.195 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00166/0.1469, allocations: 1.546 MB / 439.4 MB, free: 15.52 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.897e-06/0.1469, allocations: 3.953 kB / 439.4 MB, free: 15.51 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001417/0.1484, allocations: 0.5859 MB / 440 MB, free: 14.91 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001348/0.1485, allocations: 124.7 kB / 440.1 MB, free: 14.77 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.395e-05/0.1486, allocations: 4 kB / 440.1 MB, free: 14.76 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008086/0.1494, allocations: 68.08 kB / 440.2 MB, free: 14.7 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.719e-05/0.1495, allocations: 15.98 kB / 440.2 MB, free: 14.68 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.738e-05/0.1496, allocations: 12 kB / 440.2 MB, free: 14.67 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001547/0.1511, allocations: 382.8 kB / 440.6 MB, free: 14.29 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.11e-07/0.1511, allocations: 0 / 440.6 MB, free: 14.29 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005909/0.1517, allocations: 63.91 kB / 440.6 MB, free: 14.23 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (P.x_scaled[1],P.x_scaled[2],H.x_scaled[1],H.x_scaled[2],M.x_scaled[1],K.x_scaled[1],C.x_scaled[1]) * 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 (19): * Single equations (assignments): 18 * 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: 1 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001564/0.1519, allocations: 99.03 kB / 440.7 MB, free: 14.12 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001053/0.153, allocations: 418.5 kB / 441.1 MB, free: 13.7 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/0.153, allocations: 4 kB / 441.1 MB, free: 13.7 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000552/0.1536, allocations: 263.8 kB / 441.4 MB, free: 13.43 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006518/0.1542, allocations: 45.06 kB / 441.4 MB, free: 13.39 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001868/0.1561, allocations: 0.7856 MB / 442.2 MB, free: 12.57 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004369/0.1566, allocations: 0.8144 MB / 443 MB, free: 11.73 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002941/0.1569, allocations: 66.23 kB / 443.1 MB, free: 11.67 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001196/0.157, allocations: 23.44 kB / 443.1 MB, free: 11.64 MB / 314.7 MB Notification: Performance of SimCode: time 3.41e-07/0.157, allocations: 0 / 443.1 MB, free: 11.64 MB / 314.7 MB Notification: Performance of Templates: time 0.008917/0.1659, allocations: 3.089 MB / 446.2 MB, free: 8.555 MB / 314.7 MB make -j1 -f AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.makefile (rm -f AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.sim & ./AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.pipe 2>&1)