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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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.09298/0.09298, allocations: 21.6 MB / 37.4 MB, free: 0.7461 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001069/0.001069, allocations: 184.5 kB / 43.63 MB, free: 3.578 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.242/1.242, allocations: 205.1 MB / 254.8 MB, free: 14.28 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009375/0.0009376, allocations: 113.2 kB / 307.5 MB, free: 11.39 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009225/0.0009226, allocations: 48.64 kB / 372.3 MB, free: 59.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07723/0.07817, allocations: 51.98 MB / 424.3 MB, free: 14.53 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.foo): time 0.002733/0.08095, allocations: 1.915 MB / 426.2 MB, free: 12.59 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008683/0.08184, allocations: 0.5583 MB / 426.8 MB, free: 12.03 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.732e-05/0.08194, allocations: 0 / 426.8 MB, free: 12.03 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002713/0.08222, allocations: 19.86 kB / 426.8 MB, free: 12.01 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001267/0.08236, allocations: 47.73 kB / 426.8 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001162/0.08249, allocations: 43.95 kB / 426.9 MB, free: 11.92 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001555/0.08265, allocations: 195.5 kB / 427.1 MB, free: 11.73 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001264/0.08279, allocations: 45.47 kB / 427.1 MB, free: 11.69 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001163/0.08291, allocations: 75.7 kB / 427.2 MB, free: 11.61 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000126/0.08305, allocations: 91.58 kB / 427.3 MB, free: 11.52 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.69e-05/0.08308, allocations: 8 kB / 427.3 MB, free: 11.52 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.202e-05/0.08311, allocations: 12 kB / 427.3 MB, free: 11.5 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.532e-05/0.08317, allocations: 35.83 kB / 427.3 MB, free: 11.47 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.121e-05/0.08323, allocations: 55.67 kB / 427.4 MB, free: 11.41 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001172/0.08335, allocations: 151.4 kB / 427.5 MB, free: 11.27 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.08336, allocations: 0 / 427.5 MB, free: 11.27 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.08336, allocations: 0 / 427.5 MB, free: 11.27 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.757e-06/0.08337, allocations: 0 / 427.5 MB, free: 11.27 MB / 298.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.0008202/0.0842, allocations: 498.8 kB / 428 MB, free: 10.73 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.208e-05/0.08424, allocations: 12.03 kB / 428 MB, free: 10.72 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.883e-05/0.08428, allocations: 16.75 kB / 428.1 MB, free: 10.7 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003071/0.08459, allocations: 244 kB / 428.3 MB, free: 10.43 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.736e-05/0.08462, allocations: 12.38 kB / 428.3 MB, free: 10.41 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.977e-05/0.08466, allocations: 16.38 kB / 428.3 MB, free: 10.4 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001817/0.08485, allocations: 123 kB / 428.4 MB, free: 10.27 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.08486, allocations: 0 / 428.4 MB, free: 10.27 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.218e-05/0.08488, allocations: 7.938 kB / 428.4 MB, free: 10.27 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.08489, allocations: 4 kB / 428.5 MB, free: 10.26 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001609/0.08506, allocations: 83.94 kB / 428.5 MB, free: 10.18 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005889/0.08565, allocations: 472.3 kB / 429 MB, free: 9.668 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002678/0.08593, allocations: 154.7 kB / 429.1 MB, free: 9.508 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.21e-05/0.08604, allocations: 72.83 kB / 429.2 MB, free: 9.434 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.568e-05/0.08606, allocations: 4 kB / 429.2 MB, free: 9.43 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.152e-05/0.08608, allocations: 30.56 kB / 429.3 MB, free: 9.391 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.192e-06/0.08608, allocations: 0 / 429.3 MB, free: 9.391 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.0008009/0.08689, allocations: 0.5415 MB / 429.8 MB, free: 8.793 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.165e-05/0.08692, allocations: 51.41 kB / 429.8 MB, free: 8.73 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002399/0.08717, allocations: 202.1 kB / 430 MB, free: 8.523 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.117e-05/0.08719, allocations: 33.7 kB / 430.1 MB, free: 8.484 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.179e-05/0.08723, allocations: 108.3 kB / 430.2 MB, free: 8.371 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.012e-05/0.08727, allocations: 63.09 kB / 430.2 MB, free: 8.309 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.38e-05/0.08732, allocations: 37.7 kB / 430.3 MB, free: 8.266 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.14e-05/0.08737, allocations: 330.8 kB / 430.6 MB, free: 7.934 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.834e-05/0.08745, allocations: 47.91 kB / 430.6 MB, free: 7.887 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.096e-05/0.08754, allocations: 65.69 kB / 430.7 MB, free: 7.816 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006414/0.08819, allocations: 266.8 kB / 431 MB, free: 7.551 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.61e-07/0.0882, allocations: 3.938 kB / 431 MB, free: 7.547 MB / 298.7 MB Warning: The linear system: 1 : Ge1.Pm = Ge1.Pcmd 2 : Ge1.Pm = Ge1.Pcmd [ 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.0004172/0.08862, allocations: 393.5 kB / 431.4 MB, free: 7.113 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.215e-05/0.08864, allocations: 7.938 kB / 431.4 MB, free: 7.105 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.08865, allocations: 4 kB / 431.4 MB, free: 7.102 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001451/0.0888, allocations: 53.7 kB / 431.4 MB, free: 7.043 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001506/0.08896, allocations: 35.92 kB / 431.5 MB, free: 7.008 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001433/0.0904, allocations: 4.235 MB / 435.7 MB, free: 2.441 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001447/0.09056, allocations: 24.06 kB / 435.7 MB, free: 2.418 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.049e-05/0.09058, allocations: 8 kB / 435.7 MB, free: 2.41 MB / 298.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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 8.349e-05/0.09067, allocations: 130 kB / 435.9 MB, free: 2.273 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.388e-05/0.09071, allocations: 15.81 kB / 435.9 MB, free: 2.258 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.528e-05/0.09075, allocations: 25.17 kB / 435.9 MB, free: 2.234 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.09076, allocations: 0 / 435.9 MB, free: 2.234 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.343e-06/0.09076, allocations: 3.938 kB / 435.9 MB, free: 2.23 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.09077, allocations: 4 kB / 435.9 MB, free: 2.227 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004593/0.09123, allocations: 0.4952 MB / 436.4 MB, free: 1.672 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.09125, allocations: 0 / 436.4 MB, free: 1.672 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001278/0.09138, allocations: 35.92 kB / 436.4 MB, free: 1.637 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001027/0.09149, allocations: 40.81 kB / 436.5 MB, free: 1.594 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.352e-05/0.09151, allocations: 3.938 kB / 436.5 MB, free: 1.59 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008367/0.09236, allocations: 1.455 MB / 437.9 MB, free: 0 / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.09237, allocations: 0 / 437.9 MB, free: 0 / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003293/0.09567, allocations: 3.327 MB / 441.3 MB, free: 12.39 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.348e-05/0.09574, allocations: 89.05 kB / 441.3 MB, free: 12.29 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.253e-05/0.09577, allocations: 8 kB / 441.4 MB, free: 12.28 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001766/0.09595, allocations: 15.98 kB / 441.4 MB, free: 12.26 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.14e-05/0.096, allocations: 7.984 kB / 441.4 MB, free: 12.25 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.267e-06/0.09601, allocations: 4 kB / 441.4 MB, free: 12.25 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002355/0.09626, allocations: 163.5 kB / 441.5 MB, free: 12.09 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.09627, allocations: 3.938 kB / 441.5 MB, free: 12.09 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004932/0.09676, allocations: 51.94 kB / 441.6 MB, free: 12.04 MB / 314.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 (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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001073/0.09688, allocations: 107.4 kB / 441.7 MB, free: 11.92 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004372/0.09732, allocations: 357.2 kB / 442 MB, free: 11.55 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.09734, allocations: 4.062 kB / 442.1 MB, free: 11.54 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002325/0.09757, allocations: 178.6 kB / 442.2 MB, free: 11.36 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002659/0.09785, allocations: 23.98 kB / 442.2 MB, free: 11.33 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009962/0.09886, allocations: 0.8412 MB / 443.1 MB, free: 10.44 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002591/0.09913, allocations: 0.7398 MB / 443.8 MB, free: 9.676 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 8.275e-05/0.09922, allocations: 21.42 kB / 443.9 MB, free: 9.652 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.896e-05/0.09928, allocations: 15.44 kB / 443.9 MB, free: 9.637 MB / 314.7 MB Notification: Performance of SimCode: time 2.1e-07/0.09928, allocations: 0 / 443.9 MB, free: 9.637 MB / 314.7 MB Notification: Performance of Templates: time 0.004681/0.104, allocations: 2.379 MB / 446.2 MB, free: 7.258 MB / 314.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)