Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_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_order0_fixed_P,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P") translateModel(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_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.177/0.177, allocations: 21.46 MB / 36.42 MB, free: 1.203 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.001207/0.001207, allocations: 187.4 kB / 42.64 MB, free: 4 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.393/1.393, allocations: 205.4 MB / 254.1 MB, free: 15.48 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.0007557/0.0007559, allocations: 92.3 kB / 307.8 MB, free: 11.33 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002865/0.0002865, allocations: 7.625 kB / 371.3 MB, free: 60.39 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07482/0.07512, allocations: 52.95 MB / 424.2 MB, free: 15.33 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P): time 0.001203/0.07636, allocations: 1.288 MB / 425.5 MB, free: 14.03 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005215/0.0769, allocations: 464.8 kB / 426 MB, free: 13.57 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.143e-05/0.07695, allocations: 0 / 426 MB, free: 13.57 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.064e-05/0.07698, allocations: 7.922 kB / 426 MB, free: 13.56 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001449/0.07713, allocations: 27.84 kB / 426 MB, free: 13.54 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 4.528e-05/0.07719, allocations: 19.97 kB / 426 MB, free: 13.52 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.847e-05/0.07727, allocations: 95.64 kB / 426.1 MB, free: 13.42 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.178e-05/0.07736, allocations: 16.27 kB / 426.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.016e-05/0.07745, allocations: 35.8 kB / 426.1 MB, free: 13.37 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.953e-05/0.07753, allocations: 43.81 kB / 426.2 MB, free: 13.33 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.602e-05/0.07755, allocations: 7.938 kB / 426.2 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.462e-05/0.07757, allocations: 8 kB / 426.2 MB, free: 13.31 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.296e-05/0.07759, allocations: 15.92 kB / 426.2 MB, free: 13.3 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.848e-05/0.07761, allocations: 37.7 kB / 426.3 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.622e-05/0.07768, allocations: 63.81 kB / 426.3 MB, free: 13.19 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.07769, allocations: 0 / 426.3 MB, free: 13.19 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.0777, allocations: 0 / 426.3 MB, free: 13.19 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.116e-06/0.07771, allocations: 0 / 426.3 MB, free: 13.19 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.00041/0.07812, allocations: 398.9 kB / 426.7 MB, free: 12.75 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.849e-05/0.07816, allocations: 8.031 kB / 426.7 MB, free: 12.75 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.373e-05/0.0782, allocations: 11.81 kB / 426.7 MB, free: 12.73 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001085/0.07831, allocations: 191 kB / 426.9 MB, free: 12.51 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.036e-05/0.07833, allocations: 0 / 426.9 MB, free: 12.51 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.164e-05/0.07836, allocations: 15.91 kB / 426.9 MB, free: 12.49 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001131/0.07848, allocations: 75.48 kB / 427 MB, free: 12.41 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.502e-06/0.07849, allocations: 4 kB / 427 MB, free: 12.41 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.748e-06/0.07851, allocations: 0 / 427 MB, free: 12.41 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.07852, allocations: 0 / 427 MB, free: 12.41 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.018e-05/0.07859, allocations: 51.91 kB / 427.1 MB, free: 12.36 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004208/0.07902, allocations: 376.6 kB / 427.4 MB, free: 11.94 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00021/0.07924, allocations: 86.64 kB / 427.5 MB, free: 11.85 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.179e-05/0.0793, allocations: 44.84 kB / 427.6 MB, free: 11.8 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.889e-06/0.07932, allocations: 0 / 427.6 MB, free: 11.8 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.199e-05/0.07934, allocations: 34.75 kB / 427.6 MB, free: 11.76 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 9.01e-07/0.07935, allocations: 3.938 kB / 427.6 MB, free: 11.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0005575/0.07991, allocations: 414.7 kB / 428 MB, free: 11.29 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2e-05/0.07994, allocations: 55.41 kB / 428.1 MB, free: 11.23 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.222e-05/0.08003, allocations: 148.6 kB / 428.2 MB, free: 11.07 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.945e-06/0.08004, allocations: 25.7 kB / 428.2 MB, free: 11.04 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.132e-05/0.08008, allocations: 100 kB / 428.3 MB, free: 10.94 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.996e-05/0.08011, allocations: 43.45 kB / 428.4 MB, free: 10.9 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.278e-06/0.08012, allocations: 0 / 428.4 MB, free: 10.9 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.435e-05/0.08016, allocations: 318.8 kB / 428.7 MB, free: 10.58 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.054e-05/0.0802, allocations: 35.92 kB / 428.7 MB, free: 10.54 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.931e-05/0.08026, allocations: 58.5 kB / 428.8 MB, free: 10.48 MB / 298.7 MB Notification: The given system is mixed-determined. [index = 1] Notification: Performance of analyzeInitialSystem (initialization): time 0.0003066/0.08057, allocations: 108.1 kB / 428.9 MB, free: 10.37 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-06/0.08058, allocations: 4 kB / 428.9 MB, free: 10.37 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002234/0.08081, allocations: 158.2 kB / 429 MB, free: 10.2 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.024e-05/0.08083, allocations: 4 kB / 429 MB, free: 10.2 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.08084, allocations: 0 / 429 MB, free: 10.2 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001305/0.08098, allocations: 36.84 kB / 429.1 MB, free: 10.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.961e-05/0.08108, allocations: 24.05 kB / 429.1 MB, free: 10.14 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008249/0.08191, allocations: 1.455 MB / 430.6 MB, free: 8.551 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.885e-05/0.08199, allocations: 0 / 430.6 MB, free: 8.551 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.875e-06/0.08201, allocations: 4 kB / 430.6 MB, free: 8.547 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 Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: G.Pm = G.Pcmd. 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 (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 prepare postOptimizeDAE: time 7.557e-05/0.08209, allocations: 125.8 kB / 430.7 MB, free: 8.414 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.907e-05/0.08212, allocations: 12.56 kB / 430.7 MB, free: 8.402 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.121e-05/0.08215, allocations: 16.7 kB / 430.7 MB, free: 8.383 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.08216, allocations: 0 / 430.7 MB, free: 8.383 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-06/0.08216, allocations: 11.95 kB / 430.7 MB, free: 8.371 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.08217, allocations: 0 / 430.7 MB, free: 8.371 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003539/0.08253, allocations: 432.8 kB / 431.1 MB, free: 7.883 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.08254, allocations: 4 kB / 431.1 MB, free: 7.879 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.273e-05/0.08263, allocations: 15.98 kB / 431.2 MB, free: 7.863 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001131/0.08275, allocations: 48.81 kB / 431.2 MB, free: 7.812 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.105e-05/0.08277, allocations: 8 kB / 431.2 MB, free: 7.805 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006751/0.08346, allocations: 1.44 MB / 432.7 MB, free: 6.23 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.08347, allocations: 0 / 432.7 MB, free: 6.23 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002225/0.0837, allocations: 273.8 kB / 432.9 MB, free: 5.938 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.693e-05/0.08373, allocations: 89.05 kB / 433 MB, free: 5.832 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.519e-05/0.08376, allocations: 7.953 kB / 433 MB, free: 5.824 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.222e-05/0.08385, allocations: 4 kB / 433 MB, free: 5.82 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.888e-05/0.08388, allocations: 7.984 kB / 433 MB, free: 5.812 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.171e-06/0.08389, allocations: 4 kB / 433 MB, free: 5.809 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.718e-05/0.08395, allocations: 111.3 kB / 433.1 MB, free: 5.699 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08396, allocations: 0 / 433.1 MB, free: 5.699 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002953/0.08426, allocations: 24 kB / 433.2 MB, free: 5.676 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (G.thetap,G.deltag,G.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 (8): * Single equations (assignments): 7 * 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 6.347e-05/0.08433, allocations: 103 kB / 433.3 MB, free: 5.566 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000255/0.08459, allocations: 203.4 kB / 433.5 MB, free: 5.355 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.0846, allocations: 0 / 433.5 MB, free: 5.355 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001118/0.08472, allocations: 150.7 kB / 433.6 MB, free: 5.195 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002367/0.08497, allocations: 17.39 kB / 433.6 MB, free: 5.18 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006682/0.08565, allocations: 0.5365 MB / 434.2 MB, free: 4.613 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001023/0.08576, allocations: 0.7048 MB / 434.9 MB, free: 3.883 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.231e-05/0.08581, allocations: 8.875 kB / 434.9 MB, free: 3.871 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.664e-05/0.08584, allocations: 15.44 kB / 434.9 MB, free: 3.855 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.08585, allocations: 0 / 434.9 MB, free: 3.855 MB / 298.7 MB Notification: Performance of Templates: time 0.002878/0.08873, allocations: 1.21 MB / 436.1 MB, free: 2.645 MB / 298.7 MB make -j1 -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.makefile (rm -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.pipe ; mkfifo AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.pipe ; head -c 1048576 < AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.pipe >> ../files/AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.sim & ./AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.pipe 2>&1)