Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ElecSys_case_studies.foo.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_case_studies.foo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_case_studies.foo") translateModel(AES.Coursework.ElecSys_case_studies.foo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_case_studies.foo") [/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.09634/0.09634, allocations: 21.61 MB / 36.55 MB, free: 1.16 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.0009255/0.0009256, allocations: 178.4 kB / 42.82 MB, free: 3.836 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.828 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.001024/0.001024, allocations: 106.3 kB / 328.7 MB, free: 12.13 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002988/0.0002988, allocations: 12 kB / 397 MB, free: 46.51 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07933/0.07964, allocations: 55.82 MB / 452.9 MB, free: 6.676 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2633/0.343, allocations: 80.71 MB / 0.5211 GB, free: 13.04 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001703/0.3432, allocations: 73.72 kB / 0.5211 GB, free: 13.04 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007598/0.3508, allocations: 2.763 MB / 0.5238 GB, free: 12.59 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.3508, allocations: 3.594 kB / 0.5238 GB, free: 12.59 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.015e-05/0.3508, allocations: 4 kB / 0.5238 GB, free: 12.59 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0006027/0.3514, allocations: 474.9 kB / 0.5243 GB, free: 12.19 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.968e-05/0.3515, allocations: 7.344 kB / 0.5243 GB, free: 12.19 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.607e-05/0.3515, allocations: 15.34 kB / 0.5243 GB, free: 12.18 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003133/0.3518, allocations: 247.2 kB / 0.5245 GB, free: 11.97 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.317e-05/0.3518, allocations: 12.97 kB / 0.5246 GB, free: 11.97 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.564e-05/0.3519, allocations: 10.84 kB / 0.5246 GB, free: 11.97 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001765/0.3521, allocations: 113.1 kB / 0.5247 GB, free: 11.93 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.133e-06/0.3521, allocations: 0 / 0.5247 GB, free: 11.93 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.327e-05/0.3521, allocations: 7.25 kB / 0.5247 GB, free: 11.93 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.3521, allocations: 3.953 kB / 0.5247 GB, free: 11.93 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001628/0.3523, allocations: 90.83 kB / 0.5248 GB, free: 11.92 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006071/0.3529, allocations: 477.1 kB / 0.5252 GB, free: 11.63 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002609/0.3532, allocations: 161.8 kB / 0.5254 GB, free: 11.6 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.19e-05/0.3532, allocations: 0 / 0.5254 GB, free: 11.6 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.116e-05/0.3532, allocations: 34.5 kB / 0.5254 GB, free: 11.56 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 9.82e-07/0.3532, allocations: 3.844 kB / 0.5254 GB, free: 11.56 MB / 362.7 MB Notification: Performance of matching and sorting (n=16): time 0.0007668/0.354, allocations: 0.5374 MB / 0.5259 GB, free: 11.26 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.627e-05/0.354, allocations: 51.41 kB / 0.526 GB, free: 11.2 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002367/0.3543, allocations: 181.4 kB / 0.5262 GB, free: 11.11 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.288e-05/0.3543, allocations: 29.02 kB / 0.5262 GB, free: 11.08 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.821e-05/0.3543, allocations: 115.4 kB / 0.5263 GB, free: 10.98 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.913e-05/0.3544, allocations: 67.08 kB / 0.5264 GB, free: 10.94 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.472e-06/0.3544, allocations: 3.5 kB / 0.5264 GB, free: 10.94 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 4.016e-05/0.3544, allocations: 327.3 kB / 0.5267 GB, free: 10.63 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.877e-05/0.3545, allocations: 46.36 kB / 0.5267 GB, free: 10.63 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001026/0.3546, allocations: 71.89 kB / 0.5268 GB, free: 10.61 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.251e-05/0.3547, allocations: 58.97 kB / 0.5269 GB, free: 10.61 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.81e-07/0.3547, allocations: 0 / 0.5269 GB, free: 10.61 MB / 362.7 MB 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=21) (initialization): time 0.0003983/0.3551, allocations: 388.7 kB / 0.5272 GB, free: 10.34 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.153e-05/0.3551, allocations: 3.688 kB / 0.5272 GB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.597e-06/0.3551, allocations: 3.938 kB / 0.5272 GB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001389/0.3553, allocations: 57.78 kB / 0.5273 GB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001626/0.3555, allocations: 39.19 kB / 0.5273 GB, free: 10.31 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001333/0.3568, allocations: 4.242 MB / 0.5315 GB, free: 6.098 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001577/0.357, allocations: 13.55 kB / 0.5315 GB, free: 6.098 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.009e-05/0.357, allocations: 7.281 kB / 0.5315 GB, free: 6.098 MB / 362.7 MB Warning: Assuming fixed start value for the following 1 variables: Ge1.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: 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 (17): * Single equations (assignments): 15 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 8.723e-05/0.3571, allocations: 136 kB / 0.5316 GB, free: 5.977 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.362e-05/0.3571, allocations: 23.23 kB / 0.5316 GB, free: 5.965 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.15e-05/0.3572, allocations: 19.94 kB / 0.5317 GB, free: 5.965 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.3572, allocations: 4 kB / 0.5317 GB, free: 5.961 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.573e-06/0.3572, allocations: 0 / 0.5317 GB, free: 5.961 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.3572, allocations: 3.047 kB / 0.5317 GB, free: 5.961 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004865/0.3577, allocations: 0.4977 MB / 0.5321 GB, free: 5.598 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.3577, allocations: 0 / 0.5321 GB, free: 5.598 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000138/0.3578, allocations: 27.14 kB / 0.5322 GB, free: 5.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001051/0.3579, allocations: 39.77 kB / 0.5322 GB, free: 5.566 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.476e-05/0.358, allocations: 11.45 kB / 0.5322 GB, free: 5.562 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007105/0.3587, allocations: 1.455 MB / 0.5336 GB, free: 4.168 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.3587, allocations: 0 / 0.5336 GB, free: 4.168 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003468/0.359, allocations: 340.4 kB / 0.534 GB, free: 3.988 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.395e-05/0.3591, allocations: 88.95 kB / 0.5341 GB, free: 3.887 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.114e-05/0.3591, allocations: 11.59 kB / 0.5341 GB, free: 3.879 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001819/0.3593, allocations: 11.67 kB / 0.5341 GB, free: 3.875 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.022e-05/0.3594, allocations: 18.8 kB / 0.5341 GB, free: 3.867 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.827e-06/0.3594, allocations: 3.875 kB / 0.5341 GB, free: 3.867 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001931/0.3596, allocations: 155.9 kB / 0.5342 GB, free: 3.77 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3596, allocations: 0 / 0.5342 GB, free: 3.77 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000356/0.3599, allocations: 49.12 kB / 0.5343 GB, free: 3.762 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Ge1.thetap,Ge1.deltag,Ge1.wg,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 (13): * Single equations (assignments): 12 * 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 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002165/0.3602, allocations: 105.7 kB / 0.5344 GB, free: 19.67 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000409/0.3606, allocations: 341.8 kB / 0.5347 GB, free: 19.43 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.3606, allocations: 0 / 0.5347 GB, free: 19.43 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000213/0.3608, allocations: 190.3 kB / 0.5349 GB, free: 19.29 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001848/0.361, allocations: 19 kB / 0.5349 GB, free: 19.29 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006848/0.3617, allocations: 0.6026 MB / 0.5355 GB, free: 18.83 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000287/0.362, allocations: 0.7382 MB / 0.5362 GB, free: 18.11 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 7.41e-05/0.3621, allocations: 20.73 kB / 0.5362 GB, free: 18.1 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.135e-05/0.3621, allocations: 15.12 kB / 0.5363 GB, free: 18.09 MB / 378.7 MB Notification: Performance of SimCode: time 3e-07/0.3621, allocations: 0 / 0.5363 GB, free: 18.09 MB / 378.7 MB Notification: Performance of Templates: time 0.003535/0.3657, allocations: 1.731 MB / 0.538 GB, free: 17.25 MB / 378.7 MB make -j1 -f AES_AES.Coursework.ElecSys_case_studies.foo.makefile (rm -f AES_AES.Coursework.ElecSys_case_studies.foo.pipe ; mkfifo AES_AES.Coursework.ElecSys_case_studies.foo.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_case_studies.foo.pipe >> ../files/AES_AES.Coursework.ElecSys_case_studies.foo.sim & ./AES_AES.Coursework.ElecSys_case_studies.foo -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_case_studies.foo.pipe 2>&1)