Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.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.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P") translateModel(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P") [/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.1173/0.1173, allocations: 21.46 MB / 36.43 MB, free: 1.164 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.001302/0.001302, allocations: 178.7 kB / 42.65 MB, free: 3.992 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.429/1.429, allocations: 205.4 MB / 254.1 MB, free: 15.46 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.0007081/0.0007081, allocations: 80.27 kB / 307.8 MB, free: 11.32 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002996/0.0002997, allocations: 13.62 kB / 371.3 MB, free: 60.39 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1014, allocations: 52.96 MB / 424.2 MB, free: 15.31 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P): time 0.001708/0.1032, allocations: 1.354 MB / 425.6 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006863/0.1039, allocations: 484.7 kB / 426 MB, free: 13.47 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.716e-05/0.104, allocations: 4 kB / 426 MB, free: 13.46 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.428e-05/0.104, allocations: 7.922 kB / 426 MB, free: 13.46 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001809/0.1042, allocations: 27.84 kB / 426.1 MB, free: 13.43 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 7.715e-05/0.1043, allocations: 23.91 kB / 426.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001487/0.1045, allocations: 107.6 kB / 426.2 MB, free: 13.3 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001169/0.1046, allocations: 21.44 kB / 426.2 MB, free: 13.28 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.115e-05/0.1047, allocations: 43.8 kB / 426.3 MB, free: 13.23 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.319e-05/0.1048, allocations: 51.69 kB / 426.3 MB, free: 13.18 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.293e-05/0.1048, allocations: 12 kB / 426.3 MB, free: 13.17 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.93e-05/0.1049, allocations: 4 kB / 426.3 MB, free: 13.17 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.682e-05/0.1049, allocations: 19.86 kB / 426.4 MB, free: 13.15 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.485e-05/0.1049, allocations: 41.64 kB / 426.4 MB, free: 13.1 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.758e-05/0.105, allocations: 71.78 kB / 426.5 MB, free: 13.03 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.105, allocations: 0 / 426.5 MB, free: 13.03 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.105, allocations: 0 / 426.5 MB, free: 13.03 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.298e-06/0.105, allocations: 0 / 426.5 MB, free: 13.03 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0004962/0.1055, allocations: 414.8 kB / 426.9 MB, free: 12.58 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.313e-05/0.1056, allocations: 12.03 kB / 426.9 MB, free: 12.57 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.718e-05/0.1056, allocations: 11.81 kB / 426.9 MB, free: 12.55 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001842/0.1058, allocations: 203.4 kB / 427.1 MB, free: 12.32 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.374e-05/0.1058, allocations: 8 kB / 427.1 MB, free: 12.31 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.921e-05/0.1059, allocations: 4 kB / 427.1 MB, free: 12.3 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001442/0.106, allocations: 88.41 kB / 427.2 MB, free: 12.21 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.168e-06/0.106, allocations: 0 / 427.2 MB, free: 12.21 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.392e-05/0.1061, allocations: 8 kB / 427.2 MB, free: 12.21 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.583e-06/0.1061, allocations: 0 / 427.2 MB, free: 12.21 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.251e-05/0.1062, allocations: 39.98 kB / 427.2 MB, free: 12.17 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005618/0.1067, allocations: 392.4 kB / 427.6 MB, free: 11.73 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002765/0.107, allocations: 175.6 kB / 427.8 MB, free: 11.54 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.411e-05/0.1071, allocations: 44.84 kB / 427.8 MB, free: 11.49 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.077e-06/0.1071, allocations: 0 / 427.8 MB, free: 11.49 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.669e-05/0.1071, allocations: 34.56 kB / 427.9 MB, free: 11.45 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 9.11e-07/0.1071, allocations: 3.938 kB / 427.9 MB, free: 11.44 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.0007021/0.1079, allocations: 454.9 kB / 428.3 MB, free: 10.94 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.051e-05/0.1079, allocations: 51.41 kB / 428.4 MB, free: 10.88 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001062/0.108, allocations: 154.3 kB / 428.5 MB, free: 10.71 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.083e-05/0.108, allocations: 33.7 kB / 428.5 MB, free: 10.68 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.77e-05/0.1081, allocations: 104.2 kB / 428.7 MB, free: 10.57 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.618e-05/0.1081, allocations: 51.28 kB / 428.7 MB, free: 10.52 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.711e-06/0.1081, allocations: 4 kB / 428.7 MB, free: 10.52 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.925e-05/0.1082, allocations: 326.8 kB / 429 MB, free: 10.19 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.731e-05/0.1082, allocations: 31.98 kB / 429.1 MB, free: 10.16 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.833e-05/0.1083, allocations: 54.55 kB / 429.1 MB, free: 10.09 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.559e-05/0.1083, allocations: 39.94 kB / 429.1 MB, free: 10.05 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.82e-07/0.1084, allocations: 0 / 429.1 MB, free: 10.05 MB / 298.7 MB Warning: The linear system: 1 : G.Pm = G.Pcmd 2 : G.Pm = G.Pcmd [ -1.0 , 1.0 ; -1.0 , 1.0 ] * [ G.Pcmd ; G.Pm ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable G.Pm since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004346/0.1088, allocations: 358 kB / 429.5 MB, free: 9.652 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.1088, allocations: 4 kB / 429.5 MB, free: 9.648 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.1088, allocations: 0 / 429.5 MB, free: 9.648 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001876/0.109, allocations: 61.62 kB / 429.6 MB, free: 9.582 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001035/0.1091, allocations: 23.98 kB / 429.6 MB, free: 9.559 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001565/0.1107, allocations: 4.236 MB / 433.8 MB, free: 4.996 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.972e-05/0.1108, allocations: 8.062 kB / 433.8 MB, free: 4.988 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.978e-06/0.1108, allocations: 4.031 kB / 433.8 MB, free: 4.984 MB / 298.7 MB Warning: Assuming fixed start value for the following 1 variables: G.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: 3 * 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 (14): * 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: 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 9.876e-05/0.1109, allocations: 133.8 kB / 434 MB, free: 4.844 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.068e-05/0.111, allocations: 11.81 kB / 434 MB, free: 4.832 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.538e-05/0.111, allocations: 16.72 kB / 434 MB, free: 4.816 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.111, allocations: 3.938 kB / 434 MB, free: 4.812 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.194e-06/0.111, allocations: 0 / 434 MB, free: 4.812 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.111, allocations: 4 kB / 434 MB, free: 4.809 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000426/0.1115, allocations: 456.9 kB / 434.4 MB, free: 4.297 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.1115, allocations: 4 kB / 434.4 MB, free: 4.293 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001031/0.1116, allocations: 19.98 kB / 434.5 MB, free: 4.273 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001265/0.1117, allocations: 36.89 kB / 434.5 MB, free: 4.234 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.643e-05/0.1117, allocations: 8 kB / 434.5 MB, free: 4.227 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007261/0.1125, allocations: 1.447 MB / 436 MB, free: 2.645 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.1125, allocations: 4.031 kB / 436 MB, free: 2.641 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002549/0.1127, allocations: 293.8 kB / 436.3 MB, free: 2.328 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.105e-05/0.1128, allocations: 88.95 kB / 436.3 MB, free: 2.223 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.88e-05/0.1128, allocations: 8.031 kB / 436.3 MB, free: 2.215 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.752e-05/0.1129, allocations: 4 kB / 436.3 MB, free: 2.211 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.878e-05/0.113, allocations: 7.984 kB / 436.4 MB, free: 2.203 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.815e-06/0.113, allocations: 8 kB / 436.4 MB, free: 2.195 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.794e-05/0.113, allocations: 119.2 kB / 436.5 MB, free: 2.078 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.113, allocations: 0 / 436.5 MB, free: 2.078 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003422/0.1134, allocations: 32.09 kB / 436.5 MB, free: 2.047 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (G.thetap,G.deltag,G.wg,Gact.y) * 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 (9): * Single equations (assignments): 8 * 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 9.222e-05/0.1135, allocations: 107 kB / 436.6 MB, free: 1.934 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003408/0.1138, allocations: 313.2 kB / 436.9 MB, free: 1.602 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.1139, allocations: 0 / 436.9 MB, free: 1.602 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001208/0.114, allocations: 154.6 kB / 437.1 MB, free: 1.438 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002974/0.1143, allocations: 20.23 kB / 437.1 MB, free: 1.418 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008119/0.1151, allocations: 0.5921 MB / 437.7 MB, free: 0.793 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001553/0.1153, allocations: 0.7163 MB / 438.4 MB, free: 52 kB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.731e-05/0.1153, allocations: 12.64 kB / 438.4 MB, free: 40 kB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.39e-05/0.1154, allocations: 15.44 kB / 438.4 MB, free: 24 kB / 298.7 MB Notification: Performance of SimCode: time 2.11e-07/0.1154, allocations: 0 / 438.4 MB, free: 24 kB / 298.7 MB Notification: Performance of Templates: time 0.003899/0.1193, allocations: 1.42 MB / 439.8 MB, free: 14.6 MB / 314.7 MB make -j1 -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.makefile (rm -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe ; mkfifo AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe ; head -c 1048576 < AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe >> ../files/AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.sim & ./AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe 2>&1)