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.1066/0.1066, allocations: 21.44 MB / 36.4 MB, free: 1.188 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.001085/0.001085, allocations: 182.4 kB / 42.62 MB, free: 3.969 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.781/1.781, allocations: 205.4 MB / 254.1 MB, free: 15.24 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.0008314/0.0008313, allocations: 93.22 kB / 307.8 MB, free: 11.08 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003644/0.0003647, allocations: 6.844 kB / 373.2 MB, free: 59.1 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09123/0.09162, allocations: 52.96 MB / 426.2 MB, free: 13.03 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag): time 0.001135/0.09282, allocations: 0.8774 MB / 427.1 MB, free: 12.15 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001316/0.09415, allocations: 1.351 MB / 428.4 MB, free: 10.78 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000106/0.09427, allocations: 4 kB / 428.4 MB, free: 10.77 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003165/0.0946, allocations: 67.67 kB / 428.5 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001883/0.0948, allocations: 99.67 kB / 428.6 MB, free: 10.61 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002405/0.09505, allocations: 127.8 kB / 428.7 MB, free: 10.48 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002196/0.09528, allocations: 259.5 kB / 428.9 MB, free: 10.23 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001136/0.09541, allocations: 57.12 kB / 429 MB, free: 10.18 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002087/0.09562, allocations: 211.4 kB / 429.2 MB, free: 9.969 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002011/0.09583, allocations: 187.4 kB / 429.4 MB, free: 9.785 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.494e-05/0.09588, allocations: 12 kB / 429.4 MB, free: 9.773 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.127e-05/0.09592, allocations: 12 kB / 429.4 MB, free: 9.762 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.564e-05/0.09601, allocations: 91.69 kB / 429.5 MB, free: 9.672 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.991e-05/0.09605, allocations: 57.58 kB / 429.6 MB, free: 9.609 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001543/0.09621, allocations: 223.4 kB / 429.8 MB, free: 9.391 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.09623, allocations: 0 / 429.8 MB, free: 9.391 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.524e-06/0.09624, allocations: 0 / 429.8 MB, free: 9.391 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.049e-06/0.09625, allocations: 4 kB / 429.8 MB, free: 9.387 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.001826/0.09808, allocations: 0.7749 MB / 430.6 MB, free: 8.562 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.244e-05/0.09812, allocations: 12.03 kB / 430.6 MB, free: 8.551 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.392e-05/0.09819, allocations: 35.61 kB / 430.6 MB, free: 8.516 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009751/0.09917, allocations: 446.7 kB / 431 MB, free: 8.039 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.576e-05/0.0992, allocations: 12 kB / 431.1 MB, free: 8.027 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.839e-05/0.09925, allocations: 23.91 kB / 431.1 MB, free: 8.004 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000278/0.09953, allocations: 197.3 kB / 431.3 MB, free: 7.805 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.288e-05/0.09956, allocations: 0 / 431.3 MB, free: 7.805 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.038e-05/0.09958, allocations: 4 kB / 431.3 MB, free: 7.801 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.573e-06/0.0996, allocations: 4 kB / 431.3 MB, free: 7.797 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000312/0.09991, allocations: 219.8 kB / 431.5 MB, free: 7.582 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001063/0.101, allocations: 0.7148 MB / 432.2 MB, free: 6.816 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005477/0.1015, allocations: 297.3 kB / 432.5 MB, free: 6.52 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.958e-05/0.1016, allocations: 0 / 432.5 MB, free: 6.52 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.4e-05/0.1016, allocations: 38.56 kB / 432.5 MB, free: 6.473 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 1.142e-06/0.1016, allocations: 0 / 432.5 MB, free: 6.473 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.001231/0.1028, allocations: 0.5933 MB / 433.1 MB, free: 5.852 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.942e-05/0.1029, allocations: 63.28 kB / 433.2 MB, free: 5.777 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000929/0.1038, allocations: 480.3 kB / 433.7 MB, free: 5.297 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.043e-05/0.1039, allocations: 25.7 kB / 433.7 MB, free: 5.266 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.417e-05/0.104, allocations: 172.4 kB / 433.9 MB, free: 5.094 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.509e-05/0.104, allocations: 78.83 kB / 433.9 MB, free: 5.016 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.138e-05/0.104, allocations: 4 kB / 433.9 MB, free: 5.012 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.251e-05/0.1041, allocations: 346.8 kB / 434.3 MB, free: 4.664 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001446/0.1042, allocations: 107.9 kB / 434.4 MB, free: 4.559 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001504/0.1044, allocations: 137.6 kB / 434.5 MB, free: 4.418 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001967/0.1046, allocations: 136.1 kB / 434.6 MB, free: 4.285 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.616e-06/0.1046, allocations: 0 / 434.6 MB, free: 4.285 MB / 298.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006137/0.1052, allocations: 417.8 kB / 435.1 MB, free: 3.867 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/0.1053, allocations: 4 kB / 435.1 MB, free: 3.863 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.1053, allocations: 0 / 435.1 MB, free: 3.863 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002588/0.1055, allocations: 68.83 kB / 435.1 MB, free: 3.793 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002008/0.1058, allocations: 43.92 kB / 435.2 MB, free: 3.75 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001101/0.1069, allocations: 1.562 MB / 436.7 MB, free: 2.055 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004673/0.1074, allocations: 79.69 kB / 436.8 MB, free: 1.977 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.831e-05/0.1074, allocations: 8 kB / 436.8 MB, free: 1.969 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.0002224/0.1076, allocations: 179.7 kB / 437 MB, free: 1.785 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.161e-05/0.1077, allocations: 35.61 kB / 437 MB, free: 1.75 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.415e-05/0.1078, allocations: 47.17 kB / 437.1 MB, free: 1.703 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.726e-06/0.1078, allocations: 4 kB / 437.1 MB, free: 1.699 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.165e-06/0.1078, allocations: 3.953 kB / 437.1 MB, free: 1.695 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.1078, allocations: 0 / 437.1 MB, free: 1.695 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003369/0.1082, allocations: 373.3 kB / 437.4 MB, free: 1.281 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.1082, allocations: 0 / 437.4 MB, free: 1.281 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002279/0.1084, allocations: 40.28 kB / 437.5 MB, free: 1.242 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002307/0.1086, allocations: 60.81 kB / 437.5 MB, free: 1.18 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.934e-05/0.1087, allocations: 11.98 kB / 437.6 MB, free: 1.168 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001235/0.1099, allocations: 1.554 MB / 439.1 MB, free: 15.48 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.367e-06/0.1099, allocations: 3.953 kB / 439.1 MB, free: 15.48 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008586/0.1108, allocations: 0.586 MB / 439.7 MB, free: 14.87 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001034/0.1109, allocations: 120.6 kB / 439.8 MB, free: 14.73 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.285e-05/0.111, allocations: 8 kB / 439.8 MB, free: 14.73 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004769/0.1115, allocations: 75.84 kB / 439.9 MB, free: 14.65 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.456e-05/0.1115, allocations: 11.97 kB / 439.9 MB, free: 14.64 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.574e-05/0.1116, allocations: 12 kB / 439.9 MB, free: 14.63 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0008979/0.1125, allocations: 370.8 kB / 440.3 MB, free: 14.27 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1125, allocations: 0 / 440.3 MB, free: 14.27 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003493/0.1128, allocations: 63.91 kB / 440.3 MB, free: 14.2 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.0001343/0.113, allocations: 119 kB / 440.5 MB, free: 14.08 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006821/0.1137, allocations: 406.5 kB / 440.9 MB, free: 13.67 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.1137, allocations: 0 / 440.9 MB, free: 13.67 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003439/0.114, allocations: 262.6 kB / 441.1 MB, free: 13.4 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003096/0.1143, allocations: 49.5 kB / 441.2 MB, free: 13.35 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00133/0.1157, allocations: 0.7865 MB / 441.9 MB, free: 12.54 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004286/0.1161, allocations: 0.8184 MB / 442.8 MB, free: 11.69 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001729/0.1163, allocations: 66.23 kB / 442.8 MB, free: 11.63 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.431e-05/0.1164, allocations: 31.42 kB / 442.9 MB, free: 11.6 MB / 314.7 MB Notification: Performance of SimCode: time 2.21e-07/0.1164, allocations: 0 / 442.9 MB, free: 11.6 MB / 314.7 MB Notification: Performance of Templates: time 0.006713/0.1231, allocations: 3.077 MB / 445.9 MB, free: 8.52 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)