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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002065/0.002065, allocations: 113.9 kB / 18.94 MB, free: 2.93 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002228/0.002228, allocations: 191.7 kB / 22.23 MB, free: 5.105 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.577/1.577, allocations: 225.6 MB / 251 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1122/0.1122, allocations: 22.94 MB / 329.2 MB, free: 2.113 MB / 254.1 MB " [Timeout remaining time 180] Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary") translateModel(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003006/0.003006, allocations: 67.88 kB / 463.5 MB, free: 14.29 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1568/0.1598, allocations: 58.12 MB / 0.5094 GB, free: 4.059 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary): time 0.005736/0.1655, allocations: 2.555 MB / 0.5119 GB, free: 1.48 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002116/0.1676, allocations: 0.7833 MB / 0.5126 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002062/0.1678, allocations: 7.938 kB / 0.5126 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005408/0.1684, allocations: 103.2 kB / 0.5127 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004729/0.1689, allocations: 139.1 kB / 0.5129 GB, free: 460 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000687/0.1695, allocations: 223.6 kB / 0.5131 GB, free: 236 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2708/0.4404, allocations: 0.558 MB / 0.5136 GB, free: 12.04 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002888/0.4407, allocations: 95.39 kB / 0.5137 GB, free: 12.02 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004842/0.4412, allocations: 237.5 kB / 0.5139 GB, free: 11.99 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003501/0.4415, allocations: 249.2 kB / 0.5142 GB, free: 11.94 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.46e-05/0.4416, allocations: 33.5 kB / 0.5142 GB, free: 11.94 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.116e-05/0.4417, allocations: 35.91 kB / 0.5142 GB, free: 11.94 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001535/0.4418, allocations: 111.6 kB / 0.5143 GB, free: 11.92 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001868/0.442, allocations: 190.6 kB / 0.5145 GB, free: 11.85 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005226/0.4425, allocations: 404.8 kB / 0.5149 GB, free: 11.78 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.379e-06/0.4426, allocations: 1.594 kB / 0.5149 GB, free: 11.78 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.4426, allocations: 0 / 0.5149 GB, free: 11.78 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.808e-06/0.4426, allocations: 5.062 kB / 0.5149 GB, free: 11.78 MB / 382.1 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.001922/0.4445, allocations: 0.7634 MB / 0.5157 GB, free: 11.36 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.513e-05/0.4445, allocations: 16.23 kB / 0.5157 GB, free: 11.36 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001027/0.4446, allocations: 50.92 kB / 0.5157 GB, free: 11.33 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008108/0.4455, allocations: 369.3 kB / 0.5161 GB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.088e-05/0.4455, allocations: 24.09 kB / 0.5161 GB, free: 11.15 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.035e-05/0.4455, allocations: 35.45 kB / 0.5161 GB, free: 11.15 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004785/0.446, allocations: 301.8 kB / 0.5164 GB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.446, allocations: 0.5625 kB / 0.5164 GB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.616e-05/0.4461, allocations: 10.91 kB / 0.5164 GB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.273e-05/0.4461, allocations: 10.03 kB / 0.5164 GB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003782/0.4465, allocations: 217.7 kB / 0.5167 GB, free: 11.08 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001401/0.4479, allocations: 1.001 MB / 0.5176 GB, free: 10.63 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00078/0.4486, allocations: 364.9 kB / 0.518 GB, free: 10.61 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000229/0.4489, allocations: 138.8 kB / 0.5181 GB, free: 10.6 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.944e-05/0.4489, allocations: 4.219 kB / 0.5181 GB, free: 10.6 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.129e-05/0.4489, allocations: 35.31 kB / 0.5181 GB, free: 10.56 MB / 382.1 MB Notification: Performance of pre-optimization done (n=37): time 1.583e-06/0.4489, allocations: 0 / 0.5181 GB, free: 10.56 MB / 382.1 MB Notification: Performance of matching and sorting (n=39): time 0.001925/0.4508, allocations: 0.964 MB / 0.5191 GB, free: 10.28 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.742e-05/0.4509, allocations: 56.28 kB / 0.5191 GB, free: 10.22 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008242/0.4517, allocations: 432.6 kB / 0.5196 GB, free: 10.1 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.6e-05/0.4517, allocations: 31.58 kB / 0.5196 GB, free: 10.07 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001234/0.4518, allocations: 203 kB / 0.5198 GB, free: 9.957 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.686e-05/0.4519, allocations: 151.9 kB / 0.5199 GB, free: 9.859 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001083/0.452, allocations: 83.91 kB / 0.52 GB, free: 9.832 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.848e-05/0.4521, allocations: 348.5 kB / 0.5203 GB, free: 9.52 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002108/0.4523, allocations: 110.2 kB / 0.5204 GB, free: 9.52 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002709/0.4526, allocations: 168.1 kB / 0.5206 GB, free: 9.461 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001689/0.4543, allocations: 0.6075 MB / 0.5212 GB, free: 9.395 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.4543, allocations: 0 / 0.5212 GB, free: 9.395 MB / 382.1 MB Warning: The linear system: 1 : Ge2.Pm = Ge2.Pcmd 2 : Ge2.Pm = Ge2.Pcmd [ 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.Pm = Ge1.Pcmd [ -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=52) (initialization): time 0.001063/0.4553, allocations: 0.5002 MB / 0.5217 GB, free: 9.191 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/0.4554, allocations: 11.38 kB / 0.5217 GB, free: 9.188 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.4554, allocations: 5.156 kB / 0.5217 GB, free: 9.184 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002948/0.4557, allocations: 101.3 kB / 0.5218 GB, free: 9.141 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003672/0.456, allocations: 83.23 kB / 0.5219 GB, free: 9.137 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003283/0.4593, allocations: 7.623 MB / 0.5293 GB, free: 1.586 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004328/0.4598, allocations: 41.44 kB / 0.5294 GB, free: 1.578 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.874e-05/0.4598, allocations: 10.91 kB / 0.5294 GB, free: 1.578 MB / 382.1 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0002838/0.4601, allocations: 169.2 kB / 0.5295 GB, free: 17.43 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.661e-05/0.4601, allocations: 42.62 kB / 0.5296 GB, free: 17.41 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001136/0.4603, allocations: 49.28 kB / 0.5296 GB, free: 17.38 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.4603, allocations: 4.25 kB / 0.5296 GB, free: 17.38 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.4603, allocations: 2.172 kB / 0.5296 GB, free: 17.38 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.4603, allocations: 1.875 kB / 0.5296 GB, free: 17.38 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00135/0.4616, allocations: 0.8462 MB / 0.5305 GB, free: 16.89 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.4616, allocations: 1.922 kB / 0.5305 GB, free: 16.89 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003318/0.462, allocations: 58.69 kB / 0.5305 GB, free: 16.89 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002542/0.4622, allocations: 82.97 kB / 0.5306 GB, free: 16.87 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.939e-05/0.4622, allocations: 14.05 kB / 0.5306 GB, free: 16.86 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001682/0.4639, allocations: 1.785 MB / 0.5323 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.4639, allocations: 1.172 kB / 0.5323 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00104/0.465, allocations: 0.6208 MB / 0.533 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.315e-05/0.4651, allocations: 41.66 kB / 0.533 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.282e-05/0.4651, allocations: 11.98 kB / 0.533 GB, free: 14.92 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003959/0.4655, allocations: 33.81 kB / 0.533 GB, free: 14.91 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.773e-05/0.4656, allocations: 30.75 kB / 0.5331 GB, free: 14.91 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.188e-05/0.4656, allocations: 18.25 kB / 0.5331 GB, free: 14.9 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007292/0.4663, allocations: 319.3 kB / 0.5334 GB, free: 14.77 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4663, allocations: 5.031 kB / 0.5334 GB, free: 14.77 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006182/0.4669, allocations: 86.31 kB / 0.5335 GB, free: 14.75 MB / 398.1 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 (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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001731/0.4671, allocations: 106.8 kB / 0.5336 GB, free: 14.66 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001143/0.4683, allocations: 0.6322 MB / 0.5342 GB, free: 14.22 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.4683, allocations: 0 / 0.5342 GB, free: 14.22 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004525/0.4687, allocations: 276.7 kB / 0.5345 GB, free: 14.06 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000515/0.4692, allocations: 61.39 kB / 0.5345 GB, free: 14.03 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001911/0.4711, allocations: 1.034 MB / 0.5355 GB, free: 13.4 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005314/0.4717, allocations: 0.833 MB / 0.5363 GB, free: 12.7 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001755/0.4719, allocations: 46.48 kB / 0.5364 GB, free: 12.69 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.428e-05/0.4719, allocations: 27.38 kB / 0.5364 GB, free: 12.68 MB / 398.1 MB Notification: Performance of SimCode: time 5.91e-07/0.4719, allocations: 0 / 0.5364 GB, free: 12.68 MB / 398.1 MB Notification: Performance of Templates: time 0.01173/0.4837, allocations: 4.665 MB / 0.541 GB, free: 12.37 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.makefile [Timeout 660] (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 & ./AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.4194198893383145] Failed to read output from testmodel.py, exit status != 0: 0.4951033415272832 0.509458807 0.063230863 Calling exit ... <OMPython.OMCSessionZMQ object at 0x7f0c2a6657b0>