Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P,fileNamePrefix="AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_prescribed_P",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P,fileNamePrefix="AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_prescribed_P",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001202/0.001202, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001379/0.001379, allocations: 194.6 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2082/0.2082, allocations: 22.35 MB / 312.7 MB, free: 12.59 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001504/0.001504, allocations: 63.91 kB / 378.8 MB, free: 12.62 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2566/0.2581, allocations: 54.94 MB / 433.8 MB, free: 38.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P): time 0.00222/0.2604, allocations: 1.47 MB / 435.2 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000542/0.2609, allocations: 419.6 kB / 435.7 MB, free: 37.42 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.458e-05/0.261, allocations: 0 / 435.7 MB, free: 37.42 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.624e-05/0.261, allocations: 15.14 kB / 435.7 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001681/0.2612, allocations: 25.83 kB / 435.7 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.463e-05/0.2613, allocations: 13.64 kB / 435.7 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.905e-05/0.2614, allocations: 67.83 kB / 435.8 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.675e-05/0.2614, allocations: 12.39 kB / 435.8 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.66e-05/0.2615, allocations: 29.38 kB / 435.8 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.32e-05/0.2616, allocations: 37.59 kB / 435.8 MB, free: 37.33 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.919e-05/0.2616, allocations: 2.938 kB / 435.9 MB, free: 37.33 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.513e-05/0.2617, allocations: 6.812 kB / 435.9 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.162e-05/0.2617, allocations: 14.22 kB / 435.9 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.595e-05/0.2617, allocations: 31.75 kB / 435.9 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.347e-05/0.2618, allocations: 48.41 kB / 436 MB, free: 37.28 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.2618, allocations: 0 / 436 MB, free: 37.28 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2618, allocations: 0 / 436 MB, free: 37.28 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.2618, allocations: 0 / 436 MB, free: 37.28 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0004849/0.2623, allocations: 376 kB / 436.3 MB, free: 36.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.754e-05/0.2624, allocations: 12.31 kB / 436.3 MB, free: 36.9 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.266e-05/0.2624, allocations: 44.97 kB / 436.4 MB, free: 36.86 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.887e-05/0.2625, allocations: 10.72 kB / 436.4 MB, free: 36.85 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001279/0.2626, allocations: 185.1 kB / 436.6 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.278e-05/0.2626, allocations: 7.219 kB / 436.6 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.537e-05/0.2627, allocations: 14.94 kB / 436.6 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001131/0.2628, allocations: 59.5 kB / 436.6 MB, free: 36.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.297e-06/0.2628, allocations: 0 / 436.6 MB, free: 36.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.668e-06/0.2628, allocations: 0 / 436.6 MB, free: 36.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.552e-06/0.2628, allocations: 2.875 kB / 436.6 MB, free: 36.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.251e-05/0.2629, allocations: 32.58 kB / 436.7 MB, free: 36.58 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004304/0.2633, allocations: 319 kB / 437 MB, free: 36.28 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002166/0.2636, allocations: 82.67 kB / 437.1 MB, free: 36.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.974e-05/0.2636, allocations: 32.39 kB / 437.1 MB, free: 36.22 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.053e-05/0.2636, allocations: 7.203 kB / 437.1 MB, free: 36.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.352e-05/0.2636, allocations: 38.5 kB / 437.1 MB, free: 36.17 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.242e-06/0.2637, allocations: 0 / 437.1 MB, free: 36.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.000618/0.2643, allocations: 387.6 kB / 437.5 MB, free: 35.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.313e-05/0.2643, allocations: 54.31 kB / 437.6 MB, free: 35.78 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.522e-05/0.2644, allocations: 140.3 kB / 437.7 MB, free: 35.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.055e-06/0.2644, allocations: 25.7 kB / 437.7 MB, free: 35.62 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.001e-05/0.2645, allocations: 97.5 kB / 437.8 MB, free: 35.54 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.362e-05/0.2645, allocations: 41.53 kB / 437.9 MB, free: 35.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.631e-05/0.2645, allocations: 26.62 kB / 437.9 MB, free: 35.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.868e-05/0.2646, allocations: 320.9 kB / 438.2 MB, free: 35.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.791e-05/0.2646, allocations: 19.67 kB / 438.2 MB, free: 35.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.873e-05/0.2647, allocations: 55.12 kB / 438.3 MB, free: 35.12 MB / 350.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0003546/0.265, allocations: 228.9 kB / 438.5 MB, free: 34.95 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.82e-07/0.265, allocations: 0 / 438.5 MB, free: 34.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001885/0.2652, allocations: 137.5 kB / 438.6 MB, free: 34.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.281e-05/0.2653, allocations: 4.438 kB / 438.7 MB, free: 34.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.2653, allocations: 0 / 438.7 MB, free: 34.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001375/0.2654, allocations: 44.25 kB / 438.7 MB, free: 34.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.137e-05/0.2655, allocations: 21.88 kB / 438.7 MB, free: 34.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001008/0.2665, allocations: 1.576 MB / 440.3 MB, free: 33.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.585e-05/0.2666, allocations: 6.594 kB / 440.3 MB, free: 33.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.534e-06/0.2666, allocations: 2.969 kB / 440.3 MB, free: 33.27 MB / 350.1 MB Warning: Assuming fixed start value for the following 1 variables: 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 system: Pm = 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 (12): * Single equations (assignments): 11 * 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 prepare postOptimizeDAE: time 8.564e-05/0.2667, allocations: 132.7 kB / 440.4 MB, free: 33.14 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.962e-05/0.2667, allocations: 10.59 kB / 440.4 MB, free: 33.13 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.845e-05/0.2668, allocations: 12.22 kB / 440.5 MB, free: 33.13 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.2668, allocations: 4.078 kB / 440.5 MB, free: 33.12 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.936e-06/0.2668, allocations: 3.344 kB / 440.5 MB, free: 33.12 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.2668, allocations: 0 / 440.5 MB, free: 33.12 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003414/0.2671, allocations: 387.4 kB / 440.8 MB, free: 32.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.2671, allocations: 0 / 440.8 MB, free: 32.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.52e-05/0.2672, allocations: 18.28 kB / 440.9 MB, free: 32.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000104/0.2673, allocations: 30.78 kB / 440.9 MB, free: 32.75 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.104e-05/0.2674, allocations: 9.438 kB / 440.9 MB, free: 32.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007278/0.2681, allocations: 1.585 MB / 442.5 MB, free: 31.17 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.2681, allocations: 0 / 442.5 MB, free: 31.17 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002085/0.2683, allocations: 239.7 kB / 442.7 MB, free: 30.98 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.356e-05/0.2683, allocations: 83.64 kB / 442.8 MB, free: 30.88 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.58e-05/0.2684, allocations: 10.19 kB / 442.8 MB, free: 30.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.453e-05/0.2685, allocations: 0 / 442.8 MB, free: 30.88 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.391e-05/0.2685, allocations: 11.03 kB / 442.8 MB, free: 30.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.4e-06/0.2685, allocations: 3.75 kB / 442.8 MB, free: 30.88 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.389e-05/0.2685, allocations: 101.1 kB / 442.9 MB, free: 30.79 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2686, allocations: 0 / 442.9 MB, free: 30.79 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003233/0.2689, allocations: 24.19 kB / 442.9 MB, free: 30.79 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (thetap,deltag,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 (7): * Single equations (assignments): 6 * 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.0003644/0.2693, allocations: 0.7836 MB / 443.7 MB, free: 30.07 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002649/0.2695, allocations: 186 kB / 443.9 MB, free: 29.93 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.726e-06/0.2695, allocations: 0 / 443.9 MB, free: 29.93 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001166/0.2697, allocations: 156.3 kB / 444.1 MB, free: 29.8 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000225/0.2699, allocations: 10.94 kB / 444.1 MB, free: 29.79 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001589/0.2715, allocations: 1.789 MB / 445.9 MB, free: 28.27 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001136/0.2716, allocations: 0.6964 MB / 446.6 MB, free: 27.58 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.442e-05/0.2717, allocations: 10.7 kB / 446.6 MB, free: 27.57 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.422e-05/0.2717, allocations: 24.88 kB / 446.6 MB, free: 27.55 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2717, allocations: 0 / 446.6 MB, free: 27.55 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02176/0.2935, allocations: 2.496 MB / 449.1 MB, free: 27.19 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.9/11.19, allocations: 16.11 kB / 449.1 MB, free: 27.18 MB / 350.1 MB (rm -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe ; mkfifo AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe ; head -c 1048576 < AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe >> ../files/AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.sim & python3 -m fmpy simulate --output-file AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_prescribed_P.fmu > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe 2>&1)