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: translateModel(AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop") translateModel(AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop") [/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.09346/0.09346, allocations: 21.61 MB / 36.55 MB, free: 1.121 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.001016/0.001016, allocations: 182.5 kB / 42.83 MB, free: 3.832 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.243/1.243, allocations: 223.2 MB / 272.1 MB, free: 1.812 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.000856/0.000856, allocations: 108.5 kB / 328.7 MB, free: 12.14 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003147/0.0003147, allocations: 4 kB / 397 MB, free: 46.54 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.078/0.07833, allocations: 55.83 MB / 452.9 MB, free: 6.695 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2808/0.3592, allocations: 82.28 MB / 0.5226 GB, free: 12.91 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001828/0.3595, allocations: 72.44 kB / 0.5227 GB, free: 12.91 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01851/0.378, allocations: 6.684 MB / 0.5292 GB, free: 10.95 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.378, allocations: 0 / 0.5292 GB, free: 10.95 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.543e-05/0.378, allocations: 11.66 kB / 0.5292 GB, free: 10.95 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.001301/0.3793, allocations: 0.7579 MB / 0.5299 GB, free: 10.36 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.1e-05/0.3794, allocations: 7.812 kB / 0.53 GB, free: 10.36 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.268e-05/0.3795, allocations: 47.91 kB / 0.53 GB, free: 10.34 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000761/0.3802, allocations: 434.2 kB / 0.5304 GB, free: 10.02 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.041e-05/0.3803, allocations: 22.31 kB / 0.5304 GB, free: 10.02 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.798e-05/0.3803, allocations: 40.75 kB / 0.5305 GB, free: 10.02 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000408/0.3807, allocations: 309.3 kB / 0.5308 GB, free: 9.895 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.3807, allocations: 0 / 0.5308 GB, free: 9.895 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.059e-05/0.3808, allocations: 17.25 kB / 0.5308 GB, free: 9.887 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.3808, allocations: 7.719 kB / 0.5308 GB, free: 9.887 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003774/0.3812, allocations: 233.5 kB / 0.531 GB, free: 9.844 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001281/0.3825, allocations: 1.071 MB / 0.5321 GB, free: 9.164 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007157/0.3832, allocations: 413.8 kB / 0.5325 GB, free: 9.074 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.141e-05/0.3832, allocations: 8 kB / 0.5325 GB, free: 9.07 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.55e-05/0.3833, allocations: 41.77 kB / 0.5325 GB, free: 9.027 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 1.383e-06/0.3833, allocations: 0 / 0.5325 GB, free: 9.027 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.002781/0.3861, allocations: 1.216 MB / 0.5337 GB, free: 8.531 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.532e-05/0.3861, allocations: 54.69 kB / 0.5337 GB, free: 8.469 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006192/0.3867, allocations: 401.3 kB / 0.5341 GB, free: 8.293 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.359e-05/0.3867, allocations: 32.08 kB / 0.5342 GB, free: 8.262 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.812e-05/0.3868, allocations: 206.2 kB / 0.5344 GB, free: 8.137 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.976e-05/0.3869, allocations: 150.1 kB / 0.5345 GB, free: 8.027 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.637e-05/0.3869, allocations: 14.78 kB / 0.5345 GB, free: 8.023 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.032e-05/0.387, allocations: 351 kB / 0.5348 GB, free: 7.695 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001793/0.3872, allocations: 119.1 kB / 0.535 GB, free: 7.68 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001895/0.3874, allocations: 167.5 kB / 0.5351 GB, free: 7.613 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002081/0.3876, allocations: 150.9 kB / 0.5353 GB, free: 7.594 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.3876, allocations: 0 / 0.5353 GB, free: 7.594 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.002166/0.3898, allocations: 0.9794 MB / 0.5362 GB, free: 6.992 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/0.3898, allocations: 9.797 kB / 0.5362 GB, free: 6.988 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.3898, allocations: 0 / 0.5362 GB, free: 6.988 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001561/0.3914, allocations: 280.8 kB / 0.5365 GB, free: 6.887 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003245/0.3917, allocations: 85.47 kB / 0.5366 GB, free: 6.871 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006858/0.3986, allocations: 8.066 MB / 0.5445 GB, free: 15.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004726/0.3991, allocations: 42.64 kB / 0.5445 GB, free: 15.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.268e-05/0.3991, allocations: 14.81 kB / 0.5445 GB, free: 15.39 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.0002301/0.3994, allocations: 179.3 kB / 0.5447 GB, free: 15.25 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.257e-05/0.3994, allocations: 38.59 kB / 0.5447 GB, free: 15.23 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001436/0.4009, allocations: 0.5703 MB / 0.5453 GB, free: 15.05 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.017e-06/0.4009, allocations: 3.844 kB / 0.5453 GB, free: 15.05 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.824e-06/0.4009, allocations: 3.844 kB / 0.5453 GB, free: 15.05 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.4009, allocations: 3.984 kB / 0.5453 GB, free: 15.05 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001902/0.4028, allocations: 1.064 MB / 0.5463 GB, free: 14.53 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.4028, allocations: 4 kB / 0.5463 GB, free: 14.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002788/0.4031, allocations: 62.44 kB / 0.5464 GB, free: 14.51 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009979/0.4041, allocations: 222.8 kB / 0.5466 GB, free: 14.43 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.113e-05/0.4042, allocations: 15.44 kB / 0.5466 GB, free: 14.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003996/0.4082, allocations: 2.288 MB / 0.5488 GB, free: 12.84 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.4082, allocations: 112 / 0.5488 GB, free: 12.84 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001734/0.4099, allocations: 0.7929 MB / 0.5496 GB, free: 12.55 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001379/0.4101, allocations: 127.2 kB / 0.5497 GB, free: 12.42 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.113e-05/0.4101, allocations: 11.09 kB / 0.5498 GB, free: 12.42 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003869/0.4105, allocations: 36.27 kB / 0.5498 GB, free: 12.41 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.863e-05/0.4106, allocations: 29.95 kB / 0.5498 GB, free: 12.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.269e-05/0.4106, allocations: 14.64 kB / 0.5498 GB, free: 12.39 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006035/0.4112, allocations: 329.1 kB / 0.5501 GB, free: 12.25 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4113, allocations: 0 / 0.5501 GB, free: 12.25 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005247/0.4118, allocations: 98.72 kB / 0.5502 GB, free: 12.25 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.0001292/0.4119, allocations: 108.9 kB / 0.5503 GB, free: 12.16 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007926/0.4127, allocations: 0.6662 MB / 0.551 GB, free: 11.76 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.551e-06/0.4127, allocations: 0 / 0.551 GB, free: 11.76 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003678/0.4131, allocations: 311.9 kB / 0.5513 GB, free: 11.6 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003317/0.4135, allocations: 54.72 kB / 0.5513 GB, free: 11.59 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00153/0.415, allocations: 1.264 MB / 0.5526 GB, free: 10.71 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000356/0.4154, allocations: 0.8466 MB / 0.5534 GB, free: 9.945 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001648/0.4155, allocations: 42.45 kB / 0.5534 GB, free: 9.926 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.932e-05/0.4156, allocations: 26.66 kB / 0.5535 GB, free: 9.922 MB / 378.7 MB Notification: Performance of SimCode: time 3.71e-07/0.4156, allocations: 4 kB / 0.5535 GB, free: 9.918 MB / 378.7 MB Notification: Performance of Templates: time 0.007507/0.4231, allocations: 4.576 MB / 0.5579 GB, free: 7.605 MB / 378.7 MB make -j1 -f AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.makefile (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 & ./AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.pipe 2>&1)