Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Running command: "" <> buildModelFMU(AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop,fileNamePrefix="AES_AES_Coursework_ElecSys_power_frequency_control_PA_two_generators_loadDroop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop,fileNamePrefix="AES_AES_Coursework_ElecSys_power_frequency_control_PA_two_generators_loadDroop",fmuType="me",version="2.0",platforms={"static"}) [/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.1076/0.1076, allocations: 21.62 MB / 36.57 MB, free: 1.059 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001059/0.001059, allocations: 182.4 kB / 42.83 MB, free: 3.789 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.44/1.44, allocations: 223.2 MB / 272.1 MB, free: 1.398 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009824/0.0009823, allocations: 104.6 kB / 328.7 MB, free: 11.75 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003729/0.0003732, allocations: 8 kB / 397.1 MB, free: 46.38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09102/0.09142, allocations: 55.83 MB / 452.9 MB, free: 6.547 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3459/0.4373, allocations: 82.27 MB / 0.5227 GB, free: 13.13 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001945/0.4376, allocations: 73.53 kB / 0.5227 GB, free: 13.13 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0205/0.4581, allocations: 6.688 MB / 0.5293 GB, free: 11.18 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.4581, allocations: 0 / 0.5293 GB, free: 11.18 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.003e-05/0.4582, allocations: 7.906 kB / 0.5293 GB, free: 11.18 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001476/0.4596, allocations: 0.7545 MB / 0.53 GB, free: 10.6 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/0.4597, allocations: 19.48 kB / 0.53 GB, free: 10.59 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.26e-05/0.4598, allocations: 59.58 kB / 0.5301 GB, free: 10.55 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.001e-05/0.4599, allocations: 49.66 kB / 0.5301 GB, free: 10.52 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008509/0.4607, allocations: 443.6 kB / 0.5306 GB, free: 10.2 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.214e-05/0.4608, allocations: 22.28 kB / 0.5306 GB, free: 10.2 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.927e-05/0.4608, allocations: 35.62 kB / 0.5306 GB, free: 10.2 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004346/0.4613, allocations: 311 kB / 0.5309 GB, free: 10.08 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.251e-05/0.4613, allocations: 3.953 kB / 0.5309 GB, free: 10.07 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.583e-05/0.4613, allocations: 13.66 kB / 0.5309 GB, free: 10.07 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.195e-06/0.4613, allocations: 13.22 kB / 0.5309 GB, free: 10.07 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003705/0.4617, allocations: 229.8 kB / 0.5312 GB, free: 10.03 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001373/0.4631, allocations: 1.067 MB / 0.5322 GB, free: 9.352 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007128/0.4638, allocations: 406.7 kB / 0.5326 GB, free: 9.266 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.4e-05/0.4639, allocations: 11.81 kB / 0.5326 GB, free: 9.262 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.476e-05/0.4639, allocations: 34.08 kB / 0.5326 GB, free: 9.223 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 1.713e-06/0.4639, allocations: 3.938 kB / 0.5326 GB, free: 9.219 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.002929/0.4668, allocations: 1.21 MB / 0.5338 GB, free: 8.727 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.551e-05/0.4669, allocations: 55.28 kB / 0.5339 GB, free: 8.664 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006805/0.4676, allocations: 407.4 kB / 0.5343 GB, free: 8.484 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.528e-05/0.4676, allocations: 32.33 kB / 0.5343 GB, free: 8.453 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.765e-05/0.4677, allocations: 203.2 kB / 0.5345 GB, free: 8.328 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.201e-05/0.4678, allocations: 157.2 kB / 0.5346 GB, free: 8.215 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.631e-05/0.4678, allocations: 10.56 kB / 0.5346 GB, free: 8.211 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.701e-05/0.4679, allocations: 354 kB / 0.535 GB, free: 7.887 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002122/0.4681, allocations: 115.5 kB / 0.5351 GB, free: 7.871 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001986/0.4683, allocations: 174.5 kB / 0.5353 GB, free: 7.801 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002129/0.4685, allocations: 139.8 kB / 0.5354 GB, free: 7.789 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.4685, allocations: 0 / 0.5354 GB, free: 7.789 MB / 362.7 MB Warning: The linear system: 1 : Ge2.Pm = Ge2.Pcmd 2 : Ge2.Pcmd = Ge2.Pm [ 1.0 , -1.0 ; -1.0 , 1.0 ] * [ Ge2.Pm ; Ge2.Pcmd ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge2.Pcmd since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Warning: The linear system: 1 : Ge1.Pm = Ge1.Pcmd 2 : Ge1.Pcmd = Ge1.Pm [ -1.0 , 1.0 ; 1.0 , -1.0 ] * [ Ge1.Pcmd ; Ge1.Pm ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge1.Pm since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=54) (initialization): time 0.002288/0.4708, allocations: 0.9784 MB / 0.5364 GB, free: 7.184 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/0.4708, allocations: 11.64 kB / 0.5364 GB, free: 7.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.331e-06/0.4709, allocations: 0 / 0.5364 GB, free: 7.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001771/0.4726, allocations: 291.7 kB / 0.5366 GB, free: 7.066 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003675/0.473, allocations: 81.23 kB / 0.5367 GB, free: 7.051 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008468/0.4815, allocations: 8.067 MB / 0.5446 GB, free: 15.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005839/0.4821, allocations: 34.61 kB / 0.5446 GB, free: 15.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.143e-05/0.4822, allocations: 19.69 kB / 0.5446 GB, free: 15.58 MB / 378.7 MB Warning: Assuming fixed start value for the following 1 variables: L1.port.theta:VARIABLE(flow=false unit = "rad" fixed = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 1 (Cs.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 39 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {1 10} Notification: Performance of prepare postOptimizeDAE: time 0.000325/0.4825, allocations: 171.8 kB / 0.5448 GB, free: 15.45 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001175/0.4827, allocations: 38.75 kB / 0.5448 GB, free: 15.43 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001603/0.4843, allocations: 0.5737 MB / 0.5454 GB, free: 15.25 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.4843, allocations: 3.906 kB / 0.5454 GB, free: 15.25 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.365e-06/0.4843, allocations: 3.812 kB / 0.5454 GB, free: 15.25 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.4843, allocations: 0 / 0.5454 GB, free: 15.25 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002144/0.4865, allocations: 1.069 MB / 0.5465 GB, free: 14.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.4865, allocations: 0 / 0.5465 GB, free: 14.71 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002988/0.4868, allocations: 61.88 kB / 0.5465 GB, free: 14.71 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001057/0.4879, allocations: 230.6 kB / 0.5467 GB, free: 14.62 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.555e-05/0.4879, allocations: 11.12 kB / 0.5467 GB, free: 14.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004279/0.4922, allocations: 2.284 MB / 0.549 GB, free: 13.04 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.4922, allocations: 0 / 0.549 GB, free: 13.04 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00184/0.4941, allocations: 0.799 MB / 0.5498 GB, free: 12.73 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001726/0.4942, allocations: 118.6 kB / 0.5499 GB, free: 12.61 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.179e-05/0.4943, allocations: 12.88 kB / 0.5499 GB, free: 12.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004188/0.4947, allocations: 38.23 kB / 0.5499 GB, free: 12.6 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.215e-05/0.4948, allocations: 37.88 kB / 0.55 GB, free: 12.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.107e-05/0.4949, allocations: 11.69 kB / 0.55 GB, free: 12.58 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006831/0.4956, allocations: 327.9 kB / 0.5503 GB, free: 12.44 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4956, allocations: 4 kB / 0.5503 GB, free: 12.44 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006248/0.4962, allocations: 103.2 kB / 0.5504 GB, free: 12.43 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (G1.x_scaled[1],G2.x_scaled[1],Cs.y,Ge1.deltag,Ge1.wg,Ge2.deltag,Ge2.wg,L1.port.theta) * 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 (32): * Single equations (assignments): 31 * 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 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.002173/0.4984, allocations: 1.345 MB / 0.5517 GB, free: 11.61 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001028/0.4994, allocations: 0.6692 MB / 0.5524 GB, free: 11.2 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.4994, allocations: 0 / 0.5524 GB, free: 11.2 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004311/0.4999, allocations: 306.9 kB / 0.5526 GB, free: 11.05 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004079/0.5003, allocations: 45.08 kB / 0.5527 GB, free: 11.04 MB / 378.7 MB Warning: The linear system: 1 : Ge2.Pm = Ge2.Pcmd 2 : Ge2.Pcmd = Ge2.Pm [ 1.0 , -1.0 ; -1.0 , 1.0 ] * [ Ge2.Pm ; Ge2.Pcmd ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge2.Pcmd since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Warning: The linear system: 1 : Ge1.Pm = Ge1.Pcmd 2 : Ge1.Pcmd = Ge1.Pm [ 1.0 , -1.0 ; -1.0 , 1.0 ] * [ Ge1.Pm ; Ge1.Pcmd ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge1.Pcmd since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007139/0.5075, allocations: 4.142 MB / 0.5567 GB, free: 8.426 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004635/0.5079, allocations: 0.8466 MB / 0.5576 GB, free: 7.656 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002036/0.5082, allocations: 46.2 kB / 0.5576 GB, free: 7.637 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001841/0.5084, allocations: 135.7 kB / 0.5577 GB, free: 7.617 MB / 378.7 MB Notification: Performance of SimCode: time 7.91e-07/0.5084, allocations: 3.938 kB / 0.5577 GB, free: 7.613 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02523/0.5336, allocations: 8.461 MB / 0.566 GB, free: 96 kB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000254/0.5339, allocations: 234.2 kB / 0.5662 GB, free: 15.85 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.146/2.68, allocations: 4 kB / 0.5662 GB, free: 15.84 MB / 394.7 MB (rm -f AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.pipe ; mkfifo AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.pipe >> ../files/AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ElecSys_power_frequency_control_PA_two_generators_loadDroop_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ElecSys_power_frequency_control_PA_two_generators_loadDroop.fmu > AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.pipe 2>&1)