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.001076/0.001076, allocations: 108 kB / 15.6 MB, free: 132 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.001112/0.001112, allocations: 194.2 kB / 16.53 MB, free: 6.391 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.286/1.286, allocations: 222.9 MB / 240.2 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.3015/0.3015, allocations: 22.36 MB / 312.7 MB, free: 12.59 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001459/0.001459, allocations: 55.91 kB / 378.8 MB, free: 12.6 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.237/0.2384, allocations: 54.94 MB / 433.8 MB, free: 38.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P): time 0.002158/0.2406, allocations: 1.465 MB / 435.2 MB, free: 37.56 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005161/0.2412, allocations: 431.1 kB / 435.7 MB, free: 37.28 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.149e-05/0.2412, allocations: 0 / 435.7 MB, free: 37.28 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.657e-05/0.2413, allocations: 3.938 kB / 435.7 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001527/0.2414, allocations: 25.33 kB / 435.7 MB, free: 37.26 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.306e-05/0.2415, allocations: 13.75 kB / 435.7 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.976e-05/0.2416, allocations: 66.98 kB / 435.8 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.456e-05/0.2416, allocations: 8.5 kB / 435.8 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.481e-05/0.2417, allocations: 40.44 kB / 435.8 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.244e-05/0.2418, allocations: 32.48 kB / 435.9 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.64e-05/0.2418, allocations: 7.031 kB / 435.9 MB, free: 37.19 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.533e-05/0.2419, allocations: 5.844 kB / 435.9 MB, free: 37.19 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.795e-05/0.2419, allocations: 11.22 kB / 435.9 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.329e-05/0.2419, allocations: 30.62 kB / 435.9 MB, free: 37.17 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 6.933e-05/0.242, allocations: 44.48 kB / 436 MB, free: 37.15 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.242, allocations: 0 / 436 MB, free: 37.15 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.242, allocations: 3.938 kB / 436 MB, free: 37.14 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.479e-06/0.242, allocations: 0 / 436 MB, free: 37.14 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.0004124/0.2424, allocations: 384.7 kB / 436.3 MB, free: 36.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.196e-05/0.2425, allocations: 12.5 kB / 436.3 MB, free: 36.76 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.484e-05/0.2425, allocations: 41.56 kB / 436.4 MB, free: 36.71 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.868e-05/0.2426, allocations: 10.83 kB / 436.4 MB, free: 36.71 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001015/0.2427, allocations: 179.5 kB / 436.6 MB, free: 36.51 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.145e-05/0.2427, allocations: 7.25 kB / 436.6 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.115e-05/0.2427, allocations: 10.16 kB / 436.6 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.639e-05/0.2428, allocations: 62.11 kB / 436.6 MB, free: 36.46 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.903e-06/0.2428, allocations: 0 / 436.6 MB, free: 36.46 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.316e-06/0.2428, allocations: 0 / 436.6 MB, free: 36.46 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.2428, allocations: 7.875 kB / 436.7 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.712e-05/0.2429, allocations: 33.58 kB / 436.7 MB, free: 36.44 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003951/0.2433, allocations: 320.2 kB / 437 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002099/0.2435, allocations: 84.58 kB / 437.1 MB, free: 36.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.565e-05/0.2436, allocations: 37.64 kB / 437.1 MB, free: 36.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.707e-06/0.2436, allocations: 3.188 kB / 437.1 MB, free: 36.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.132e-05/0.2436, allocations: 34.12 kB / 437.2 MB, free: 36.04 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.202e-06/0.2436, allocations: 0 / 437.2 MB, free: 36.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0005602/0.2442, allocations: 388 kB / 437.5 MB, free: 35.71 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.871e-05/0.2442, allocations: 54.62 kB / 437.6 MB, free: 35.64 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.522e-05/0.2443, allocations: 133.4 kB / 437.7 MB, free: 35.53 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.496e-06/0.2443, allocations: 32.45 kB / 437.8 MB, free: 35.49 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.672e-05/0.2443, allocations: 91.44 kB / 437.8 MB, free: 35.4 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.848e-05/0.2444, allocations: 34.83 kB / 437.9 MB, free: 35.38 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.64e-05/0.2444, allocations: 34.08 kB / 437.9 MB, free: 35.35 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.569e-05/0.2445, allocations: 317.3 kB / 438.2 MB, free: 35.04 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.833e-05/0.2445, allocations: 31.47 kB / 438.3 MB, free: 35.02 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.321e-05/0.2445, allocations: 42.31 kB / 438.3 MB, free: 34.99 MB / 350.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0003421/0.2449, allocations: 227.1 kB / 438.5 MB, free: 34.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.22e-07/0.2449, allocations: 0 / 438.5 MB, free: 34.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000183/0.2451, allocations: 138.4 kB / 438.6 MB, free: 34.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.188e-05/0.2451, allocations: 9.203 kB / 438.7 MB, free: 34.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.2451, allocations: 4.062 kB / 438.7 MB, free: 34.74 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001248/0.2453, allocations: 40.73 kB / 438.7 MB, free: 34.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.842e-05/0.2453, allocations: 20.81 kB / 438.7 MB, free: 34.72 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008288/0.2462, allocations: 1.576 MB / 440.3 MB, free: 33.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.518e-05/0.2463, allocations: 4.094 kB / 440.3 MB, free: 33.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.163e-06/0.2463, allocations: 9.406 kB / 440.3 MB, free: 33.14 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.013e-05/0.2463, allocations: 128.1 kB / 440.4 MB, free: 33.01 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.988e-05/0.2464, allocations: 14.08 kB / 440.4 MB, free: 33 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.814e-05/0.2464, allocations: 8.375 kB / 440.5 MB, free: 33 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.2464, allocations: 2.906 kB / 440.5 MB, free: 33 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.583e-06/0.2464, allocations: 0 / 440.5 MB, free: 33 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.2464, allocations: 4 kB / 440.5 MB, free: 32.99 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003199/0.2467, allocations: 388.7 kB / 440.8 MB, free: 32.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.2468, allocations: 0 / 440.8 MB, free: 32.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.601e-05/0.2468, allocations: 16.56 kB / 440.9 MB, free: 32.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001039/0.247, allocations: 39.5 kB / 440.9 MB, free: 32.62 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.658e-06/0.247, allocations: 10.47 kB / 440.9 MB, free: 32.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006783/0.2477, allocations: 1.581 MB / 442.5 MB, free: 31.03 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.2477, allocations: 0 / 442.5 MB, free: 31.03 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001987/0.2479, allocations: 247 kB / 442.7 MB, free: 30.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.206e-05/0.2479, allocations: 83.36 kB / 442.8 MB, free: 30.74 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.412e-05/0.2479, allocations: 2.938 kB / 442.8 MB, free: 30.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.563e-05/0.248, allocations: 0 / 442.8 MB, free: 30.74 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.891e-05/0.248, allocations: 16.28 kB / 442.8 MB, free: 30.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.32e-06/0.248, allocations: 2.719 kB / 442.8 MB, free: 30.73 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.068e-05/0.2481, allocations: 102.5 kB / 442.9 MB, free: 30.65 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2481, allocations: 0 / 442.9 MB, free: 30.65 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003232/0.2484, allocations: 23 kB / 443 MB, free: 30.65 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.000331/0.2488, allocations: 0.7782 MB / 443.7 MB, free: 29.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002229/0.249, allocations: 191.2 kB / 443.9 MB, free: 29.79 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.249, allocations: 3.938 kB / 443.9 MB, free: 29.79 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001018/0.2491, allocations: 150.2 kB / 444.1 MB, free: 29.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002219/0.2494, allocations: 10.78 kB / 444.1 MB, free: 29.65 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00142/0.2508, allocations: 1.779 MB / 445.9 MB, free: 28.14 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.754e-05/0.2509, allocations: 0.7009 MB / 446.6 MB, free: 27.45 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.321e-05/0.2509, allocations: 14.5 kB / 446.6 MB, free: 27.44 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.989e-05/0.251, allocations: 27.91 kB / 446.6 MB, free: 27.42 MB / 350.1 MB Notification: Performance of SimCode: time 2.11e-07/0.251, allocations: 0 / 446.6 MB, free: 27.42 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0373/0.2883, allocations: 2.492 MB / 449.1 MB, free: 27.05 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.21/16.5, allocations: 18.45 kB / 449.1 MB, free: 27.04 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)