Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.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_case_studies.Primary_secondary_tertiary,fileNamePrefix="AES_AES_Coursework_ElecSys_case_studies_Primary_secondary_tertiary",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary,fileNamePrefix="AES_AES_Coursework_ElecSys_case_studies_Primary_secondary_tertiary",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.1618/0.1618, allocations: 21.62 MB / 36.56 MB, free: 1.09 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.001599/0.001599, allocations: 179.2 kB / 42.83 MB, free: 3.809 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.489/1.489, allocations: 223.2 MB / 272.1 MB, free: 1.762 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.001097/0.001096, allocations: 98.81 kB / 328.7 MB, free: 12.12 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004142/0.0004144, allocations: 8 kB / 397.1 MB, free: 46.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09064/0.09108, allocations: 55.82 MB / 452.9 MB, free: 6.605 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3284/0.4195, allocations: 81.79 MB / 0.5222 GB, free: 12.94 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002269/0.4198, allocations: 79.38 kB / 0.5223 GB, free: 12.94 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01828/0.4381, allocations: 6.437 MB / 0.5286 GB, free: 11.22 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.4381, allocations: 0 / 0.5286 GB, free: 11.22 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.712e-05/0.4382, allocations: 15.16 kB / 0.5286 GB, free: 11.21 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001271/0.4395, allocations: 0.7392 MB / 0.5293 GB, free: 10.63 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.154e-05/0.4395, allocations: 7.375 kB / 0.5293 GB, free: 10.63 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.548e-05/0.4396, allocations: 67.44 kB / 0.5294 GB, free: 10.59 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.677e-05/0.4396, allocations: 53.16 kB / 0.5294 GB, free: 10.56 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007951/0.4404, allocations: 420.5 kB / 0.5298 GB, free: 10.25 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.165e-05/0.4405, allocations: 30.88 kB / 0.5298 GB, free: 10.25 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.474e-05/0.4405, allocations: 34.39 kB / 0.5299 GB, free: 10.24 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003994/0.4409, allocations: 303.7 kB / 0.5302 GB, free: 10.12 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.356e-05/0.441, allocations: 0 / 0.5302 GB, free: 10.12 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.931e-05/0.441, allocations: 12.59 kB / 0.5302 GB, free: 10.12 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-06/0.441, allocations: 3.844 kB / 0.5302 GB, free: 10.12 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003504/0.4414, allocations: 221.5 kB / 0.5304 GB, free: 10.08 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001276/0.4427, allocations: 1.035 MB / 0.5314 GB, free: 9.418 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007069/0.4434, allocations: 377 kB / 0.5318 GB, free: 9.34 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.536e-05/0.4434, allocations: 7.859 kB / 0.5318 GB, free: 9.336 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.85e-05/0.4434, allocations: 39 kB / 0.5318 GB, free: 9.293 MB / 362.7 MB Notification: Performance of pre-optimization done (n=37): time 1.724e-06/0.4434, allocations: 7.875 kB / 0.5318 GB, free: 9.285 MB / 362.7 MB Notification: Performance of matching and sorting (n=39): time 0.001653/0.4451, allocations: 1.097 MB / 0.5329 GB, free: 8.746 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.509e-05/0.4451, allocations: 59.25 kB / 0.5329 GB, free: 8.68 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000616/0.4458, allocations: 396.7 kB / 0.5333 GB, free: 8.508 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.19e-05/0.4458, allocations: 29.39 kB / 0.5334 GB, free: 8.477 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.803e-05/0.4459, allocations: 204 kB / 0.5335 GB, free: 8.344 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.584e-05/0.446, allocations: 144.2 kB / 0.5337 GB, free: 8.242 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.432e-05/0.446, allocations: 7.688 kB / 0.5337 GB, free: 8.242 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.271e-05/0.446, allocations: 356.8 kB / 0.534 GB, free: 7.914 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001617/0.4462, allocations: 105.5 kB / 0.5341 GB, free: 7.898 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000174/0.4464, allocations: 176.3 kB / 0.5343 GB, free: 7.812 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001887/0.4466, allocations: 132.1 kB / 0.5344 GB, free: 7.809 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.4466, allocations: 0 / 0.5344 GB, free: 7.809 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.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 matching and sorting (n=52) (initialization): time 0.0007998/0.4474, allocations: 0.798 MB / 0.5352 GB, free: 7.258 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.4474, allocations: 3.906 kB / 0.5352 GB, free: 7.258 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.4474, allocations: 3.906 kB / 0.5352 GB, free: 7.258 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002621/0.4477, allocations: 95.55 kB / 0.5353 GB, free: 7.215 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003579/0.4481, allocations: 89.3 kB / 0.5354 GB, free: 7.195 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002909/0.451, allocations: 7.312 MB / 0.5425 GB, free: 15.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000404/0.4514, allocations: 45.67 kB / 0.5426 GB, free: 15.94 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.202e-05/0.4514, allocations: 18.84 kB / 0.5426 GB, free: 15.94 MB / 378.7 MB Warning: Assuming fixed start value for the following 1 variables: Ge2.deltag:VARIABLE(unit = "rad" fixed = true ) "generator angle wrt port" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 8} Notification: Performance of prepare postOptimizeDAE: time 0.0002041/0.4517, allocations: 158 kB / 0.5427 GB, free: 15.82 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.868e-05/0.4517, allocations: 38.91 kB / 0.5428 GB, free: 15.8 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.147e-05/0.4518, allocations: 55.09 kB / 0.5428 GB, free: 15.78 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.4518, allocations: 7.984 kB / 0.5428 GB, free: 15.78 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.4518, allocations: 0 / 0.5428 GB, free: 15.78 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.4518, allocations: 7.969 kB / 0.5428 GB, free: 15.77 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001128/0.453, allocations: 0.8758 MB / 0.5437 GB, free: 15.31 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.453, allocations: 0 / 0.5437 GB, free: 15.31 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000293/0.4533, allocations: 69.19 kB / 0.5438 GB, free: 15.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002083/0.4535, allocations: 69.31 kB / 0.5438 GB, free: 15.27 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.742e-05/0.4535, allocations: 14.36 kB / 0.5438 GB, free: 15.26 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001384/0.4549, allocations: 1.731 MB / 0.5455 GB, free: 13.82 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.4549, allocations: 3.938 kB / 0.5455 GB, free: 13.81 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007396/0.4557, allocations: 0.604 MB / 0.5461 GB, free: 13.58 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001067/0.4558, allocations: 115.9 kB / 0.5462 GB, free: 13.46 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.298e-05/0.4559, allocations: 15.41 kB / 0.5463 GB, free: 13.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004104/0.4563, allocations: 36.55 kB / 0.5463 GB, free: 13.45 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.446e-05/0.4563, allocations: 30.89 kB / 0.5463 GB, free: 13.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.624e-05/0.4564, allocations: 7.812 kB / 0.5463 GB, free: 13.43 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005728/0.4569, allocations: 327.3 kB / 0.5466 GB, free: 13.29 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.457, allocations: 0 / 0.5466 GB, free: 13.29 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004936/0.4575, allocations: 86.72 kB / 0.5467 GB, free: 13.29 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.thetap,Ge2.deltag,Ge2.wg) * 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 (31): * Single equations (assignments): 30 * 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 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.001052/0.4585, allocations: 1.167 MB / 0.5479 GB, free: 12.52 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007688/0.4593, allocations: 0.6382 MB / 0.5485 GB, free: 12.12 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.4593, allocations: 0 / 0.5485 GB, free: 12.12 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003417/0.4597, allocations: 289.8 kB / 0.5488 GB, free: 11.97 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000321/0.46, allocations: 54.5 kB / 0.5488 GB, free: 11.95 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.005272/0.4653, allocations: 4.031 MB / 0.5528 GB, free: 9.27 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003981/0.4657, allocations: 0.8389 MB / 0.5536 GB, free: 8.504 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001861/0.4659, allocations: 50.16 kB / 0.5536 GB, free: 8.48 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001652/0.4661, allocations: 136.7 kB / 0.5537 GB, free: 8.461 MB / 378.7 MB Notification: Performance of SimCode: time 8.62e-07/0.4661, allocations: 0 / 0.5537 GB, free: 8.461 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02142/0.4875, allocations: 7.624 MB / 0.5612 GB, free: 4.246 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002022/0.4878, allocations: 210.3 kB / 0.5614 GB, free: 4.008 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.236/2.724, allocations: 0 / 0.5614 GB, free: 4.008 MB / 378.7 MB (rm -f AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.pipe ; mkfifo AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.pipe >> ../files/AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ElecSys_case_studies_Primary_secondary_tertiary_fmu --startTime=0 --stopTime=2000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ElecSys_case_studies_Primary_secondary_tertiary.fmu > AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.pipe 2>&1)