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/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_fixed_P,fileNamePrefix="AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_fixed_P",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P,fileNamePrefix="AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_fixed_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.0009156/0.0009156, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.005141/0.005141, allocations: 169.3 kB / 16.26 MB, free: 6.652 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.337/1.337, 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.569/4.569, allocations: 22.34 MB / 313.8 MB, free: 13.12 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003073/0.0003074, allocations: 8.281 kB / 380.6 MB, free: 12.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2846/0.285, allocations: 55.98 MB / 436.6 MB, free: 38.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P): time 0.001905/0.2869, allocations: 1.314 MB / 437.9 MB, free: 37.51 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008375/0.2878, allocations: 442.1 kB / 438.4 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001069/0.2879, allocations: 0 / 438.4 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.113e-05/0.288, allocations: 7.312 kB / 438.4 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002337/0.2882, allocations: 26.31 kB / 438.4 MB, free: 37.19 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.286e-05/0.2883, allocations: 18.2 kB / 438.4 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001415/0.2885, allocations: 101.7 kB / 438.5 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001408/0.2886, allocations: 20.03 kB / 438.5 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001409/0.2888, allocations: 44.11 kB / 438.6 MB, free: 37.1 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001113/0.2889, allocations: 43.56 kB / 438.6 MB, free: 37.08 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.457e-05/0.2889, allocations: 3.031 kB / 438.6 MB, free: 37.08 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.01e-05/0.2889, allocations: 10.16 kB / 438.6 MB, free: 37.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.721e-05/0.289, allocations: 18.77 kB / 438.6 MB, free: 37.06 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.737e-05/0.289, allocations: 70.14 kB / 438.7 MB, free: 37 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001244/0.2892, allocations: 85.25 kB / 438.8 MB, free: 36.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.2892, allocations: 3.938 kB / 438.8 MB, free: 36.97 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.2892, allocations: 0 / 438.8 MB, free: 36.97 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.2892, allocations: 0 / 438.8 MB, free: 36.97 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0005572/0.2898, allocations: 390.8 kB / 439.2 MB, free: 36.59 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.45e-05/0.2898, allocations: 13.53 kB / 439.2 MB, free: 36.59 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.427e-05/0.2899, allocations: 37.53 kB / 439.2 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.41e-05/0.29, allocations: 14.56 kB / 439.2 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001521/0.2901, allocations: 197 kB / 439.4 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.117e-05/0.2902, allocations: 3.281 kB / 439.4 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.222e-05/0.2902, allocations: 24.19 kB / 439.5 MB, free: 36.3 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001648/0.2904, allocations: 74.62 kB / 439.5 MB, free: 36.26 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.328e-06/0.2904, allocations: 4 kB / 439.5 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.446e-05/0.2904, allocations: 10.47 kB / 439.6 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.2904, allocations: 2.562 kB / 439.6 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001058/0.2905, allocations: 40.44 kB / 439.6 MB, free: 36.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006245/0.2912, allocations: 374.4 kB / 440 MB, free: 35.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003043/0.2915, allocations: 95.53 kB / 440.1 MB, free: 35.86 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.795e-05/0.2916, allocations: 42.28 kB / 440.1 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.039e-05/0.2916, allocations: 2.75 kB / 440.1 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.511e-05/0.2916, allocations: 30.56 kB / 440.1 MB, free: 35.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.834e-06/0.2916, allocations: 0 / 440.1 MB, free: 35.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008455/0.2925, allocations: 420.5 kB / 440.5 MB, free: 35.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.631e-05/0.2925, allocations: 61.81 kB / 440.6 MB, free: 35.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001299/0.2927, allocations: 143.6 kB / 440.7 MB, free: 35.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.399e-05/0.2927, allocations: 29.7 kB / 440.8 MB, free: 35.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.875e-05/0.2928, allocations: 106.2 kB / 440.9 MB, free: 35.13 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.219e-05/0.2928, allocations: 36.98 kB / 440.9 MB, free: 35.11 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.282e-05/0.2928, allocations: 20.34 kB / 440.9 MB, free: 35.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.536e-05/0.2929, allocations: 325 kB / 441.2 MB, free: 34.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.632e-05/0.293, allocations: 29.45 kB / 441.3 MB, free: 34.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.063e-05/0.2931, allocations: 51.64 kB / 441.3 MB, free: 34.72 MB / 350.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0005461/0.2936, allocations: 239.9 kB / 441.6 MB, free: 34.55 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.2936, allocations: 6.438 kB / 441.6 MB, free: 34.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003036/0.2939, allocations: 146.9 kB / 441.7 MB, free: 34.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/0.294, allocations: 5.312 kB / 441.7 MB, free: 34.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.433e-06/0.294, allocations: 2.938 kB / 441.7 MB, free: 34.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001816/0.2942, allocations: 41.06 kB / 441.8 MB, free: 34.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001226/0.2943, allocations: 25.36 kB / 441.8 MB, free: 34.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001159/0.2955, allocations: 1.449 MB / 443.2 MB, free: 33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.317e-05/0.2956, allocations: 7.625 kB / 443.2 MB, free: 33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.073e-05/0.2956, allocations: 3.094 kB / 443.2 MB, free: 33 MB / 350.1 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 (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 0.0001163/0.2957, allocations: 139 kB / 443.4 MB, free: 32.86 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.277e-05/0.2958, allocations: 7.031 kB / 443.4 MB, free: 32.86 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.82e-05/0.2958, allocations: 15.66 kB / 443.4 MB, free: 32.85 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.2958, allocations: 0 / 443.4 MB, free: 32.85 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.2959, allocations: 2.938 kB / 443.4 MB, free: 32.85 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.2959, allocations: 0 / 443.4 MB, free: 32.85 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005299/0.2964, allocations: 433.4 kB / 443.8 MB, free: 32.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.2964, allocations: 7.875 kB / 443.8 MB, free: 32.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001105/0.2965, allocations: 17.97 kB / 443.8 MB, free: 32.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001544/0.2967, allocations: 40.86 kB / 443.9 MB, free: 32.45 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.572e-05/0.2967, allocations: 10.33 kB / 443.9 MB, free: 32.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009638/0.2977, allocations: 1.446 MB / 445.3 MB, free: 31.01 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.2977, allocations: 0 / 445.3 MB, free: 31.01 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003259/0.2981, allocations: 267.6 kB / 445.6 MB, free: 30.8 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.749e-05/0.2981, allocations: 90.81 kB / 445.7 MB, free: 30.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.32e-05/0.2981, allocations: 6.656 kB / 445.7 MB, free: 30.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001263/0.2983, allocations: 4 kB / 445.7 MB, free: 30.69 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.525e-05/0.2983, allocations: 9.312 kB / 445.7 MB, free: 30.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.125e-06/0.2983, allocations: 6.75 kB / 445.7 MB, free: 30.69 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.367e-05/0.2984, allocations: 118.9 kB / 445.8 MB, free: 30.6 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2984, allocations: 0 / 445.8 MB, free: 30.6 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004908/0.2989, allocations: 27.03 kB / 445.9 MB, free: 30.59 MB / 350.1 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 (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.0005043/0.2994, allocations: 0.8023 MB / 446.7 MB, free: 29.85 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003389/0.2998, allocations: 202 kB / 446.9 MB, free: 29.71 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.273e-06/0.2998, allocations: 3.938 kB / 446.9 MB, free: 29.7 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001691/0.3, allocations: 152.8 kB / 447 MB, free: 29.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003543/0.3004, allocations: 12.95 kB / 447 MB, free: 29.57 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002488/0.3029, allocations: 2.045 MB / 449.1 MB, free: 27.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000174/0.3031, allocations: 0.7049 MB / 449.8 MB, free: 27.21 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.492e-05/0.3031, allocations: 10.14 kB / 449.8 MB, free: 27.21 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.368e-05/0.3032, allocations: 26.77 kB / 449.8 MB, free: 27.19 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3032, allocations: 0 / 449.8 MB, free: 27.19 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1455/0.4487, allocations: 2.594 MB / 452.4 MB, free: 26.99 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002741/0.449, allocations: 244 kB / 452.6 MB, free: 26.74 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.038/2.487, allocations: 0 / 452.6 MB, free: 26.74 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_fixed_P_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_fixed_P.fmu > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.pipe 2>&1)