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.09268/0.09268, allocations: 21.6 MB / 37.4 MB, free: 0.7383 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.001066/0.001066, allocations: 188.5 kB / 43.63 MB, free: 3.57 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.281/1.281, allocations: 205.1 MB / 254.8 MB, free: 14.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.0008445/0.0008446, allocations: 96.48 kB / 307.5 MB, free: 11.37 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001171/0.001171, allocations: 54.28 kB / 372.3 MB, free: 59.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07553/0.07672, allocations: 51.98 MB / 424.3 MB, free: 14.5 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag): time 0.002121/0.07888, allocations: 1.267 MB / 425.6 MB, free: 13.23 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001145/0.08005, allocations: 1.382 MB / 427 MB, free: 11.83 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.375e-05/0.08016, allocations: 4 kB / 427 MB, free: 11.82 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003042/0.08047, allocations: 67.67 kB / 427 MB, free: 11.76 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001883/0.08068, allocations: 95.64 kB / 427.1 MB, free: 11.66 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002232/0.08092, allocations: 155.7 kB / 427.3 MB, free: 11.51 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002946/0.08122, allocations: 463.1 kB / 427.7 MB, free: 11.06 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001248/0.08135, allocations: 57.14 kB / 427.8 MB, free: 11 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001424/0.0815, allocations: 171.4 kB / 427.9 MB, free: 10.84 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002357/0.08174, allocations: 223.2 kB / 428.2 MB, free: 10.62 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.176e-05/0.08179, allocations: 12 kB / 428.2 MB, free: 10.61 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.398e-05/0.08183, allocations: 12 kB / 428.2 MB, free: 10.59 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001003/0.08194, allocations: 99.7 kB / 428.3 MB, free: 10.5 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.721e-05/0.08202, allocations: 123 kB / 428.4 MB, free: 10.38 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001729/0.0822, allocations: 283 kB / 428.7 MB, free: 10.1 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.08221, allocations: 0 / 428.7 MB, free: 10.1 MB / 298.7 MB Notification: Performance of FrontEnd: time 5.91e-07/0.08222, allocations: 4 kB / 428.7 MB, free: 10.09 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.047e-06/0.08223, allocations: 0 / 428.7 MB, free: 10.09 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.001784/0.08402, allocations: 0.8099 MB / 429.5 MB, free: 9.234 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.27e-05/0.08406, allocations: 12.02 kB / 429.5 MB, free: 9.223 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.987e-05/0.08412, allocations: 32.56 kB / 429.5 MB, free: 9.191 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009297/0.08506, allocations: 459.8 kB / 430 MB, free: 8.699 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.348e-05/0.08508, allocations: 8.375 kB / 430 MB, free: 8.691 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.019e-05/0.08512, allocations: 20.31 kB / 430 MB, free: 8.672 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002533/0.08538, allocations: 201.5 kB / 430.2 MB, free: 8.469 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.395e-05/0.0854, allocations: 4 kB / 430.2 MB, free: 8.465 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.648e-05/0.08542, allocations: 4 kB / 430.2 MB, free: 8.461 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.08543, allocations: 4 kB / 430.2 MB, free: 8.457 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003132/0.08575, allocations: 215.8 kB / 430.4 MB, free: 8.246 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009384/0.0867, allocations: 0.7031 MB / 431.1 MB, free: 7.492 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005211/0.08723, allocations: 306.3 kB / 431.4 MB, free: 7.184 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001549/0.0874, allocations: 128.7 kB / 431.6 MB, free: 7.055 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.899e-05/0.08742, allocations: 3.938 kB / 431.6 MB, free: 7.051 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.359e-05/0.08744, allocations: 38.56 kB / 431.6 MB, free: 7.004 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 1.363e-06/0.08745, allocations: 0 / 431.6 MB, free: 7.004 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.001129/0.08858, allocations: 0.5889 MB / 432.2 MB, free: 6.387 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.907e-05/0.08861, allocations: 55.41 kB / 432.2 MB, free: 6.32 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00085/0.08947, allocations: 476.2 kB / 432.7 MB, free: 5.848 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.435e-05/0.08949, allocations: 29.7 kB / 432.7 MB, free: 5.812 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.243e-05/0.08957, allocations: 160.5 kB / 432.9 MB, free: 5.652 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.762e-05/0.08962, allocations: 90.7 kB / 433 MB, free: 5.562 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.231e-05/0.08969, allocations: 45.7 kB / 433 MB, free: 5.512 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.074e-05/0.08975, allocations: 350.7 kB / 433.4 MB, free: 5.16 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001394/0.0899, allocations: 99.94 kB / 433.5 MB, free: 5.062 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001441/0.09005, allocations: 146.3 kB / 433.6 MB, free: 4.914 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001748/0.0918, allocations: 0.7007 MB / 434.3 MB, free: 4.207 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.09182, allocations: 4 kB / 434.3 MB, free: 4.203 MB / 298.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005512/0.09237, allocations: 414.4 kB / 434.7 MB, free: 3.789 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.144e-05/0.09239, allocations: 4 kB / 434.7 MB, free: 3.785 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.938e-06/0.0924, allocations: 4 kB / 434.7 MB, free: 3.781 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001878/0.0926, allocations: 56.75 kB / 434.8 MB, free: 3.723 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001818/0.09279, allocations: 55.91 kB / 434.8 MB, free: 3.668 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009318/0.09373, allocations: 1.558 MB / 436.4 MB, free: 1.977 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004208/0.09416, allocations: 79.84 kB / 436.5 MB, free: 1.898 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.643e-05/0.09419, allocations: 7.984 kB / 436.5 MB, free: 1.891 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[2]: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] 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000142/0.09433, allocations: 175.7 kB / 436.7 MB, free: 1.711 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.905e-05/0.09439, allocations: 31.56 kB / 436.7 MB, free: 1.68 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.728e-05/0.09448, allocations: 51.11 kB / 436.7 MB, free: 1.629 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.09449, allocations: 0 / 436.7 MB, free: 1.629 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.0945, allocations: 4 kB / 436.7 MB, free: 1.625 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.09451, allocations: 0 / 436.7 MB, free: 1.625 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002661/0.09478, allocations: 373.3 kB / 437.1 MB, free: 1.211 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.09479, allocations: 7.938 kB / 437.1 MB, free: 1.203 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002037/0.09499, allocations: 27.98 kB / 437.1 MB, free: 1.176 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000152/0.09516, allocations: 64.98 kB / 437.2 MB, free: 1.109 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.285e-05/0.09519, allocations: 8 kB / 437.2 MB, free: 1.102 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009818/0.09618, allocations: 1.565 MB / 438.8 MB, free: 15.4 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.09619, allocations: 0 / 438.8 MB, free: 15.4 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006096/0.1023, allocations: 4.818 MB / 443.6 MB, free: 10.29 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.965e-05/0.1024, allocations: 120.7 kB / 443.7 MB, free: 10.15 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.578e-05/0.1024, allocations: 8 kB / 443.7 MB, free: 10.14 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000469/0.1029, allocations: 59.97 kB / 443.8 MB, free: 10.09 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.378e-05/0.103, allocations: 19.97 kB / 443.8 MB, free: 10.07 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.483e-05/0.103, allocations: 4 kB / 443.8 MB, free: 10.06 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0008681/0.1039, allocations: 374.8 kB / 444.2 MB, free: 9.695 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1039, allocations: 0 / 444.2 MB, free: 9.695 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004172/0.1043, allocations: 84 kB / 444.3 MB, free: 9.613 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001073/0.1044, allocations: 115.2 kB / 444.4 MB, free: 9.492 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006138/0.1051, allocations: 406.4 kB / 444.8 MB, free: 9.082 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.1051, allocations: 0 / 444.8 MB, free: 9.082 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003322/0.1054, allocations: 258.6 kB / 445 MB, free: 8.816 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003886/0.1058, allocations: 55.47 kB / 445.1 MB, free: 8.766 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001528/0.1073, allocations: 1.15 MB / 446.2 MB, free: 7.57 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003986/0.1078, allocations: 0.8146 MB / 447 MB, free: 6.727 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001702/0.1079, allocations: 78.22 kB / 447.1 MB, free: 6.652 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.425e-05/0.108, allocations: 23.44 kB / 447.1 MB, free: 6.629 MB / 314.7 MB Notification: Performance of SimCode: time 2.21e-07/0.108, allocations: 0 / 447.1 MB, free: 6.629 MB / 314.7 MB Notification: Performance of Templates: time 0.008715/0.1168, allocations: 4.453 MB / 451.6 MB, free: 2.172 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 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.pipe 2>&1)