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.08848/0.08848, allocations: 21.6 MB / 37.4 MB, free: 0.7656 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.00105/0.00105, allocations: 188.5 kB / 43.64 MB, free: 3.57 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.299/1.299, allocations: 205.1 MB / 254.8 MB, free: 14.25 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.000911/0.000911, allocations: 107.9 kB / 307.5 MB, free: 11.37 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001046/0.001046, allocations: 53.5 kB / 370.3 MB, free: 60.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07694/0.07801, allocations: 51.97 MB / 422.2 MB, free: 16.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P): time 0.002349/0.08039, allocations: 1.729 MB / 424 MB, free: 14.8 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006552/0.08107, allocations: 0.4924 MB / 424.5 MB, free: 14.31 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.678e-05/0.08117, allocations: 0 / 424.5 MB, free: 14.31 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.413e-05/0.08123, allocations: 11.92 kB / 424.5 MB, free: 14.3 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001772/0.08141, allocations: 27.83 kB / 424.5 MB, free: 14.27 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 7.951e-05/0.08152, allocations: 23.97 kB / 424.5 MB, free: 14.25 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001408/0.08166, allocations: 123.5 kB / 424.6 MB, free: 14.12 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001065/0.08178, allocations: 25.38 kB / 424.7 MB, free: 14.1 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.061e-05/0.08188, allocations: 47.78 kB / 424.7 MB, free: 14.05 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.239e-05/0.08197, allocations: 55.77 kB / 424.8 MB, free: 14 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.895e-05/0.08199, allocations: 4 kB / 424.8 MB, free: 14 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.67e-05/0.08201, allocations: 8 kB / 424.8 MB, free: 13.99 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.184e-05/0.08204, allocations: 19.84 kB / 424.8 MB, free: 13.97 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.337e-05/0.08209, allocations: 55.66 kB / 424.9 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.366e-05/0.08219, allocations: 95.61 kB / 425 MB, free: 13.82 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.0822, allocations: 0 / 425 MB, free: 13.82 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.61e-07/0.0822, allocations: 0 / 425 MB, free: 13.82 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.707e-06/0.08221, allocations: 0 / 425 MB, free: 13.82 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.0005397/0.08276, allocations: 427 kB / 425.4 MB, free: 13.36 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.977e-05/0.08281, allocations: 8.031 kB / 425.4 MB, free: 13.35 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.157e-05/0.08287, allocations: 16.75 kB / 425.4 MB, free: 13.33 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002262/0.08311, allocations: 204.7 kB / 425.6 MB, free: 13.09 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.658e-05/0.08313, allocations: 12.12 kB / 425.6 MB, free: 13.08 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.415e-05/0.08317, allocations: 7.906 kB / 425.6 MB, free: 13.07 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001508/0.08333, allocations: 84.16 kB / 425.7 MB, free: 12.99 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.08335, allocations: 0 / 425.7 MB, free: 12.99 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.371e-05/0.08337, allocations: 7.984 kB / 425.7 MB, free: 12.98 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.623e-06/0.08338, allocations: 7.938 kB / 425.7 MB, free: 12.97 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.583e-05/0.08347, allocations: 43.97 kB / 425.8 MB, free: 12.93 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006114/0.08409, allocations: 400.4 kB / 426.1 MB, free: 12.49 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002809/0.08438, allocations: 171.5 kB / 426.3 MB, free: 12.29 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.281e-05/0.08448, allocations: 52.83 kB / 426.4 MB, free: 12.24 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.781e-05/0.0845, allocations: 0 / 426.4 MB, free: 12.24 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.589e-05/0.08452, allocations: 30.56 kB / 426.4 MB, free: 12.2 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 9.22e-07/0.08453, allocations: 0 / 426.4 MB, free: 12.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.000698/0.08523, allocations: 443 kB / 426.8 MB, free: 11.71 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.974e-05/0.08526, allocations: 55.34 kB / 426.9 MB, free: 11.64 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001031/0.08537, allocations: 164.8 kB / 427 MB, free: 11.47 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.335e-06/0.08539, allocations: 25.7 kB / 427.1 MB, free: 11.44 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.447e-05/0.08543, allocations: 104.3 kB / 427.2 MB, free: 11.34 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.293e-05/0.08546, allocations: 43.3 kB / 427.2 MB, free: 11.29 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.992e-05/0.0855, allocations: 41.62 kB / 427.3 MB, free: 11.25 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.297e-05/0.08555, allocations: 322.8 kB / 427.6 MB, free: 10.92 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.457e-05/0.0856, allocations: 31.98 kB / 427.6 MB, free: 10.89 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.254e-05/0.08566, allocations: 54.55 kB / 427.7 MB, free: 10.83 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003531/0.08602, allocations: 174.4 kB / 427.8 MB, free: 10.65 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.08603, allocations: 3.938 kB / 427.8 MB, free: 10.64 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.Pm ; G.Pcmd ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable G.Pcmd 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.0003795/0.08641, allocations: 354.1 kB / 428.2 MB, free: 10.25 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.15e-05/0.08643, allocations: 4 kB / 428.2 MB, free: 10.24 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.08644, allocations: 4 kB / 428.2 MB, free: 10.24 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001444/0.08659, allocations: 53.56 kB / 428.2 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.655e-05/0.08669, allocations: 28.05 kB / 428.3 MB, free: 10.15 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001351/0.08805, allocations: 4.251 MB / 432.5 MB, free: 5.574 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.933e-05/0.08813, allocations: 8.031 kB / 432.5 MB, free: 5.566 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.196e-06/0.08814, allocations: 4 kB / 432.5 MB, free: 5.562 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 (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 7.485e-05/0.08822, allocations: 125.8 kB / 432.6 MB, free: 5.43 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.926e-05/0.08826, allocations: 19.78 kB / 432.7 MB, free: 5.41 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.471e-05/0.08829, allocations: 16.7 kB / 432.7 MB, free: 5.395 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.0883, allocations: 4 kB / 432.7 MB, free: 5.391 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.513e-06/0.0883, allocations: 0 / 432.7 MB, free: 5.391 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-06/0.08831, allocations: 3.938 kB / 432.7 MB, free: 5.387 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003862/0.0887, allocations: 452.8 kB / 433.1 MB, free: 4.879 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.08871, allocations: 3.984 kB / 433.1 MB, free: 4.875 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.939e-05/0.08881, allocations: 16 kB / 433.2 MB, free: 4.859 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001035/0.08892, allocations: 40.81 kB / 433.2 MB, free: 4.816 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.115e-05/0.08894, allocations: 8.062 kB / 433.2 MB, free: 4.809 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006333/0.08958, allocations: 1.447 MB / 434.6 MB, free: 3.227 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.08959, allocations: 3.984 kB / 434.7 MB, free: 3.223 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001945/0.09154, allocations: 2.977 MB / 437.6 MB, free: 15.95 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.143e-05/0.09161, allocations: 97.02 kB / 437.7 MB, free: 15.84 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.772e-05/0.09163, allocations: 8 kB / 437.7 MB, free: 15.83 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.928e-05/0.09173, allocations: 0 / 437.7 MB, free: 15.83 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.535e-05/0.09176, allocations: 11.98 kB / 437.7 MB, free: 15.82 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.546e-06/0.09178, allocations: 4 kB / 437.7 MB, free: 15.81 MB / 314.7 MB Notification: Performance of sorting global known variables: time 8.541e-05/0.09187, allocations: 123.9 kB / 437.9 MB, free: 15.69 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09187, allocations: 0 / 437.9 MB, free: 15.69 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004798/0.09236, allocations: 40 kB / 437.9 MB, free: 15.65 MB / 314.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 (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.0001176/0.09248, allocations: 115.1 kB / 438 MB, free: 15.53 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003761/0.09287, allocations: 317.4 kB / 438.3 MB, free: 15.2 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.409e-05/0.09289, allocations: 4 kB / 438.3 MB, free: 15.19 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001661/0.09306, allocations: 154.5 kB / 438.5 MB, free: 15.03 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002752/0.09335, allocations: 25.19 kB / 438.5 MB, free: 15 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001095/0.09446, allocations: 0.8043 MB / 439.3 MB, free: 14.15 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003237/0.09479, allocations: 0.7124 MB / 440 MB, free: 13.41 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 6.97e-05/0.09487, allocations: 16.91 kB / 440 MB, free: 13.39 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.91e-05/0.09492, allocations: 15.44 kB / 440.1 MB, free: 13.38 MB / 314.7 MB Notification: Performance of SimCode: time 5.31e-07/0.09493, allocations: 4 kB / 440.1 MB, free: 13.38 MB / 314.7 MB Notification: Performance of Templates: time 0.005715/0.1006, allocations: 1.894 MB / 442 MB, free: 11.48 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)