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.0007986/0.0007985, allocations: 91.77 kB / 15.36 MB, free: 0.7383 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.005876/0.005876, allocations: 172.5 kB / 16.26 MB, free: 6.613 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.374/1.374, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 4.605/4.605, allocations: 22.33 MB / 313.8 MB, free: 13.06 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003103/0.0003103, allocations: 8 kB / 380.6 MB, free: 12.12 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2592/0.2595, allocations: 55.98 MB / 436.6 MB, free: 38.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P): time 0.001355/0.2609, allocations: 1.199 MB / 437.8 MB, free: 37.51 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005075/0.2614, allocations: 419.8 kB / 438.2 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.112e-05/0.2614, allocations: 0 / 438.2 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.53e-05/0.2615, allocations: 6.812 kB / 438.2 MB, free: 37.22 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001747/0.2617, allocations: 17.45 kB / 438.2 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.988e-05/0.2617, allocations: 7.469 kB / 438.3 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.387e-05/0.2618, allocations: 70.25 kB / 438.3 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.436e-05/0.2619, allocations: 8.922 kB / 438.3 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.405e-05/0.262, allocations: 45.34 kB / 438.4 MB, free: 37.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.973e-05/0.2621, allocations: 32.7 kB / 438.4 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.994e-05/0.2621, allocations: 5.938 kB / 438.4 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.335e-05/0.2621, allocations: 2.938 kB / 438.4 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.888e-05/0.2621, allocations: 11.88 kB / 438.4 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.669e-05/0.2622, allocations: 55.83 kB / 438.5 MB, free: 37.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 7.576e-05/0.2623, allocations: 36.64 kB / 438.5 MB, free: 37.08 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.2623, allocations: 0 / 438.5 MB, free: 37.08 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.2623, allocations: 0 / 438.5 MB, free: 37.08 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.029e-06/0.2623, allocations: 0 / 438.5 MB, free: 37.08 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.0004236/0.2627, allocations: 383 kB / 438.9 MB, free: 36.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.094e-05/0.2628, allocations: 14.09 kB / 438.9 MB, free: 36.69 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.687e-05/0.2628, allocations: 42.31 kB / 438.9 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.625e-05/0.2629, allocations: 8.125 kB / 439 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001225/0.263, allocations: 184.9 kB / 439.1 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.219e-05/0.263, allocations: 7 kB / 439.1 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.049e-05/0.263, allocations: 13.38 kB / 439.2 MB, free: 36.42 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001051/0.2631, allocations: 65.38 kB / 439.2 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.2632, allocations: 0 / 439.2 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.168e-06/0.2632, allocations: 3.938 kB / 439.2 MB, free: 36.37 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.2632, allocations: 2.938 kB / 439.2 MB, free: 36.37 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.073e-05/0.2633, allocations: 28.91 kB / 439.3 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004074/0.2637, allocations: 323.5 kB / 439.6 MB, free: 36.06 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002117/0.2639, allocations: 83.97 kB / 439.7 MB, free: 36.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.855e-05/0.2639, allocations: 31.53 kB / 439.7 MB, free: 36 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.202e-05/0.264, allocations: 0 / 439.7 MB, free: 36 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.955e-05/0.264, allocations: 40.62 kB / 439.7 MB, free: 35.96 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 8.31e-07/0.264, allocations: 0 / 439.7 MB, free: 35.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0005934/0.2646, allocations: 380.8 kB / 440.1 MB, free: 35.64 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.247e-05/0.2646, allocations: 54.12 kB / 440.1 MB, free: 35.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.271e-05/0.2647, allocations: 138 kB / 440.3 MB, free: 35.45 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.051e-05/0.2647, allocations: 29.7 kB / 440.3 MB, free: 35.42 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.352e-05/0.2648, allocations: 98.59 kB / 440.4 MB, free: 35.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.153e-05/0.2648, allocations: 35.86 kB / 440.4 MB, free: 35.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.355e-05/0.2648, allocations: 23.81 kB / 440.5 MB, free: 35.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.433e-05/0.2649, allocations: 317.8 kB / 440.8 MB, free: 34.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.704e-05/0.2649, allocations: 25.08 kB / 440.8 MB, free: 34.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.588e-05/0.265, allocations: 47.33 kB / 440.8 MB, free: 34.92 MB / 350.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0003627/0.2653, allocations: 221 kB / 441.1 MB, free: 34.76 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.91e-07/0.2654, allocations: 0.75 kB / 441.1 MB, free: 34.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001884/0.2655, allocations: 134.1 kB / 441.2 MB, free: 34.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.097e-05/0.2656, allocations: 9.375 kB / 441.2 MB, free: 34.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.2656, allocations: 7.172 kB / 441.2 MB, free: 34.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001301/0.2657, allocations: 30.58 kB / 441.2 MB, free: 34.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.792e-05/0.2658, allocations: 25.09 kB / 441.3 MB, free: 34.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008559/0.2667, allocations: 1.408 MB / 442.7 MB, free: 33.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.208e-05/0.2667, allocations: 7.031 kB / 442.7 MB, free: 33.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.234e-06/0.2667, allocations: 2.688 kB / 442.7 MB, free: 33.25 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 sytem: 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.589e-05/0.2668, allocations: 131 kB / 442.8 MB, free: 33.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.795e-05/0.2669, allocations: 10.38 kB / 442.8 MB, free: 33.11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.98e-05/0.2669, allocations: 15.31 kB / 442.8 MB, free: 33.1 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.2669, allocations: 3.281 kB / 442.8 MB, free: 33.1 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.162e-06/0.2669, allocations: 0 / 442.8 MB, free: 33.1 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.2669, allocations: 2.562 kB / 442.8 MB, free: 33.1 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003303/0.2673, allocations: 387.9 kB / 443.2 MB, free: 32.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.2673, allocations: 0 / 443.2 MB, free: 32.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.164e-05/0.2673, allocations: 15.09 kB / 443.2 MB, free: 32.74 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001034/0.2675, allocations: 40.62 kB / 443.3 MB, free: 32.72 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.077e-06/0.2675, allocations: 3.938 kB / 443.3 MB, free: 32.72 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006828/0.2682, allocations: 1.417 MB / 444.7 MB, free: 31.3 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.2682, allocations: 0 / 444.7 MB, free: 31.3 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000203/0.2684, allocations: 243.3 kB / 444.9 MB, free: 31.12 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.692e-05/0.2684, allocations: 84.73 kB / 445 MB, free: 31.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.247e-05/0.2684, allocations: 3.094 kB / 445 MB, free: 31.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.096e-05/0.2685, allocations: 4 kB / 445 MB, free: 31.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.063e-05/0.2686, allocations: 11.03 kB / 445 MB, free: 31.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.43e-06/0.2686, allocations: 7.5 kB / 445 MB, free: 31.01 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.576e-05/0.2686, allocations: 98.58 kB / 445.1 MB, free: 30.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2686, allocations: 3.938 kB / 445.1 MB, free: 30.92 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003094/0.2689, allocations: 25.47 kB / 445.2 MB, free: 30.92 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.000394/0.2693, allocations: 0.7901 MB / 446 MB, free: 30.19 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002343/0.2696, allocations: 173.2 kB / 446.1 MB, free: 30.06 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.2696, allocations: 0 / 446.1 MB, free: 30.06 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001107/0.2697, allocations: 158.5 kB / 446.3 MB, free: 29.93 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002227/0.2699, allocations: 8.984 kB / 446.3 MB, free: 29.93 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001476/0.2714, allocations: 1.854 MB / 448.1 MB, free: 28.38 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001195/0.2716, allocations: 0.7007 MB / 448.8 MB, free: 27.68 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.776e-05/0.2716, allocations: 11.73 kB / 448.9 MB, free: 27.68 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.404e-05/0.2716, allocations: 25.19 kB / 448.9 MB, free: 27.66 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2717, allocations: 0 / 448.9 MB, free: 27.66 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09443/0.3661, allocations: 2.238 MB / 451.1 MB, free: 27.48 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003079/0.3665, allocations: 257.5 kB / 451.4 MB, free: 27.22 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.073/2.44, allocations: 0 / 451.4 MB, free: 27.22 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)