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.001244/0.001244, allocations: 103.4 kB / 15.33 MB, free: 0.5078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001262/0.001262, allocations: 198.1 kB / 16.26 MB, free: 6.621 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.252/1.252, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.234/0.234, allocations: 22.35 MB / 312.4 MB, free: 12.62 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 67.88 kB / 378.3 MB, free: 12.96 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2527/0.254, allocations: 54.93 MB / 433.3 MB, free: 38.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P): time 0.001981/0.256, allocations: 1.532 MB / 434.8 MB, free: 37.6 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004775/0.2565, allocations: 430.3 kB / 435.2 MB, free: 37.31 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.622e-05/0.2565, allocations: 0 / 435.2 MB, free: 37.31 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.262e-05/0.2566, allocations: 0 / 435.2 MB, free: 37.31 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001632/0.2568, allocations: 25.5 kB / 435.2 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.053e-05/0.2568, allocations: 5.578 kB / 435.2 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.382e-05/0.2569, allocations: 72.19 kB / 435.3 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.994e-05/0.257, allocations: 5.25 kB / 435.3 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.985e-05/0.2571, allocations: 41.02 kB / 435.4 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.078e-05/0.2571, allocations: 32.95 kB / 435.4 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.909e-05/0.2572, allocations: 2.812 kB / 435.4 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.261e-05/0.2572, allocations: 9.469 kB / 435.4 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.753e-05/0.2572, allocations: 14.17 kB / 435.4 MB, free: 37.22 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.961e-05/0.2572, allocations: 27.64 kB / 435.5 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 7.152e-05/0.2573, allocations: 44.28 kB / 435.5 MB, free: 37.19 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.2573, allocations: 0 / 435.5 MB, free: 37.19 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2573, allocations: 0 / 435.5 MB, free: 37.19 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.749e-06/0.2573, allocations: 0 / 435.5 MB, free: 37.19 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.0004239/0.2578, allocations: 391.9 kB / 435.9 MB, free: 36.8 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.493e-05/0.2578, allocations: 12.78 kB / 435.9 MB, free: 36.8 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.68e-05/0.2579, allocations: 40.97 kB / 435.9 MB, free: 36.76 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.734e-05/0.2579, allocations: 7.688 kB / 435.9 MB, free: 36.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001032/0.258, allocations: 188.1 kB / 436.1 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.104e-05/0.258, allocations: 7.312 kB / 436.1 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.085e-05/0.258, allocations: 7 kB / 436.1 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.799e-05/0.2581, allocations: 67.67 kB / 436.2 MB, free: 36.49 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.813e-06/0.2582, allocations: 0 / 436.2 MB, free: 36.49 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.035e-06/0.2582, allocations: 0 / 436.2 MB, free: 36.49 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.2582, allocations: 2.344 kB / 436.2 MB, free: 36.49 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.475e-05/0.2582, allocations: 30.62 kB / 436.2 MB, free: 36.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003789/0.2586, allocations: 319.7 kB / 436.5 MB, free: 36.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002088/0.2588, allocations: 81.55 kB / 436.6 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.566e-05/0.2589, allocations: 37.36 kB / 436.7 MB, free: 36.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.02e-05/0.2589, allocations: 3.562 kB / 436.7 MB, free: 36.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.245e-05/0.2589, allocations: 34.5 kB / 436.7 MB, free: 36.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.102e-06/0.2589, allocations: 2.438 kB / 436.7 MB, free: 36.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0005544/0.2595, allocations: 383.9 kB / 437.1 MB, free: 35.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.949e-05/0.2595, allocations: 51.41 kB / 437.1 MB, free: 35.69 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.619e-05/0.2596, allocations: 136.1 kB / 437.3 MB, free: 35.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.147e-06/0.2596, allocations: 29.7 kB / 437.3 MB, free: 35.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.862e-05/0.2596, allocations: 94.36 kB / 437.4 MB, free: 35.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.017e-05/0.2597, allocations: 36.06 kB / 437.4 MB, free: 35.42 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.363e-05/0.2597, allocations: 33.56 kB / 437.4 MB, free: 35.39 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.575e-05/0.2598, allocations: 320.5 kB / 437.8 MB, free: 35.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.594e-05/0.2598, allocations: 23.42 kB / 437.8 MB, free: 35.07 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.157e-05/0.2598, allocations: 47.23 kB / 437.8 MB, free: 35.03 MB / 350.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0003347/0.2602, allocations: 231.4 kB / 438.1 MB, free: 34.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.12e-07/0.2602, allocations: 0 / 438.1 MB, free: 34.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000176/0.2604, allocations: 139.2 kB / 438.2 MB, free: 34.78 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.167e-05/0.2604, allocations: 5.562 kB / 438.2 MB, free: 34.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.109e-06/0.2604, allocations: 3.984 kB / 438.2 MB, free: 34.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001261/0.2605, allocations: 40.77 kB / 438.2 MB, free: 34.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.549e-05/0.2606, allocations: 20.81 kB / 438.3 MB, free: 34.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008469/0.2615, allocations: 1.581 MB / 439.8 MB, free: 33.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.246e-05/0.2615, allocations: 2.875 kB / 439.8 MB, free: 33.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.256e-06/0.2616, allocations: 6.938 kB / 439.9 MB, free: 33.18 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 7.182e-05/0.2616, allocations: 131.4 kB / 440 MB, free: 33.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.573e-05/0.2617, allocations: 6.844 kB / 440 MB, free: 33.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.66e-05/0.2617, allocations: 12.44 kB / 440 MB, free: 33.04 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.233e-06/0.2617, allocations: 2.719 kB / 440 MB, free: 33.04 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.41e-07/0.2617, allocations: 0 / 440 MB, free: 33.04 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.2617, allocations: 0 / 440 MB, free: 33.04 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003072/0.262, allocations: 381.3 kB / 440.4 MB, free: 32.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.262, allocations: 3.469 kB / 440.4 MB, free: 32.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.189e-05/0.2621, allocations: 12.94 kB / 440.4 MB, free: 32.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.782e-05/0.2622, allocations: 41.89 kB / 440.4 MB, free: 32.67 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.298e-06/0.2622, allocations: 3.938 kB / 440.4 MB, free: 32.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006647/0.2629, allocations: 1.588 MB / 442 MB, free: 31.08 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.2629, allocations: 0 / 442 MB, free: 31.08 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002021/0.2631, allocations: 252.6 kB / 442.3 MB, free: 30.88 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.499e-05/0.2632, allocations: 83.61 kB / 442.3 MB, free: 30.79 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.392e-05/0.2632, allocations: 3.188 kB / 442.4 MB, free: 30.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.638e-05/0.2633, allocations: 2.562 kB / 442.4 MB, free: 30.79 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.063e-05/0.2633, allocations: 9.812 kB / 442.4 MB, free: 30.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.12e-06/0.2633, allocations: 2.594 kB / 442.4 MB, free: 30.78 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.225e-05/0.2633, allocations: 109.4 kB / 442.5 MB, free: 30.69 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2634, allocations: 0 / 442.5 MB, free: 30.69 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003026/0.2637, allocations: 26 kB / 442.5 MB, free: 30.69 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.0003311/0.264, allocations: 0.7759 MB / 443.3 MB, free: 29.97 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000235/0.2642, allocations: 187.2 kB / 443.5 MB, free: 29.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2643, allocations: 0 / 443.5 MB, free: 29.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001051/0.2644, allocations: 149 kB / 443.6 MB, free: 29.71 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002147/0.2646, allocations: 16.7 kB / 443.6 MB, free: 29.7 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001379/0.266, allocations: 1.805 MB / 445.4 MB, free: 28.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.928e-05/0.2661, allocations: 0.6984 MB / 446.1 MB, free: 27.47 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.167e-05/0.2661, allocations: 6.406 kB / 446.1 MB, free: 27.47 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.913e-05/0.2662, allocations: 26.41 kB / 446.2 MB, free: 27.45 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2662, allocations: 3.938 kB / 446.2 MB, free: 27.45 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01499/0.2812, allocations: 2.433 MB / 448.6 MB, free: 27.18 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001524/0.2814, allocations: 259 kB / 448.8 MB, free: 26.92 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.686/1.967, allocations: 0 / 448.8 MB, free: 26.92 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_prescribed_P_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_prescribed_P.fmu > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe 2>&1)