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.005587/0.005587, allocations: 102 kB / 15.73 MB, free: 6.051 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.001152/0.001152, allocations: 195 kB / 16.68 MB, free: 5.969 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.309/1.309, allocations: 222.9 MB / 240.4 MB, free: 4.168 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2449/0.2449, allocations: 22.35 MB / 312.9 MB, free: 12.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001153/0.001153, allocations: 65.52 kB / 434.4 MB, free: 35.28 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08516/0.08633, allocations: 54.96 MB / 489.4 MB, free: 3.844 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P): time 0.002008/0.08837, allocations: 1.609 MB / 491 MB, free: 2.219 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005537/0.08894, allocations: 439.1 kB / 491.4 MB, free: 1.789 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.639e-05/0.08901, allocations: 0 / 491.4 MB, free: 1.789 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.948e-05/0.08906, allocations: 7.922 kB / 491.5 MB, free: 1.781 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001751/0.08925, allocations: 35.66 kB / 491.5 MB, free: 1.746 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 5.862e-05/0.08931, allocations: 23.95 kB / 491.5 MB, free: 1.723 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.716e-05/0.08942, allocations: 107.6 kB / 491.6 MB, free: 1.617 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001183/0.08954, allocations: 26.8 kB / 491.6 MB, free: 1.594 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.985e-05/0.08964, allocations: 43.86 kB / 491.7 MB, free: 1.551 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.597e-05/0.08973, allocations: 51.69 kB / 491.7 MB, free: 1.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.986e-05/0.08976, allocations: 8 kB / 491.7 MB, free: 1.492 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.432e-05/0.08978, allocations: 8 kB / 491.8 MB, free: 1.484 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.183e-05/0.0898, allocations: 23.92 kB / 491.8 MB, free: 1.461 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.687e-05/0.08984, allocations: 43.73 kB / 491.8 MB, free: 1.418 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.479e-05/0.08994, allocations: 88.53 kB / 491.9 MB, free: 1.332 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.08995, allocations: 0 / 491.9 MB, free: 1.332 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.08996, allocations: 3.984 kB / 491.9 MB, free: 1.328 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.049e-06/0.08997, allocations: 4 kB / 491.9 MB, free: 1.324 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.0004555/0.09043, allocations: 395.1 kB / 492.3 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.135e-05/0.09046, allocations: 19.91 kB / 492.3 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.294e-05/0.09051, allocations: 38.73 kB / 492.4 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.953e-05/0.09055, allocations: 16.75 kB / 492.4 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001094/0.09066, allocations: 188.2 kB / 492.6 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.296e-05/0.09068, allocations: 8.375 kB / 492.6 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.243e-05/0.09071, allocations: 16.12 kB / 492.6 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001103/0.09082, allocations: 73.67 kB / 492.7 MB, free: 496 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.09084, allocations: 7.938 kB / 492.7 MB, free: 488 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.768e-06/0.09085, allocations: 3.984 kB / 492.7 MB, free: 484 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.09086, allocations: 0 / 492.7 MB, free: 484 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.882e-05/0.09093, allocations: 39.98 kB / 492.7 MB, free: 444 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004201/0.09136, allocations: 380.4 kB / 493.1 MB, free: 12 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002518/0.09162, allocations: 86.62 kB / 493.2 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.27e-05/0.09169, allocations: 40.94 kB / 493.2 MB, free: 15.87 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.728e-06/0.09171, allocations: 192 / 493.2 MB, free: 15.87 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.811e-05/0.09173, allocations: 34.5 kB / 493.2 MB, free: 15.83 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.022e-06/0.09174, allocations: 0 / 493.2 MB, free: 15.83 MB / 366.1 MB Notification: Performance of matching and sorting (n=11): time 0.0006773/0.09242, allocations: 431 kB / 493.7 MB, free: 15.35 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.022e-05/0.09247, allocations: 51.41 kB / 493.7 MB, free: 15.29 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001127/0.09259, allocations: 156.3 kB / 493.9 MB, free: 15.13 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.521e-05/0.09261, allocations: 29.7 kB / 493.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.819e-05/0.09267, allocations: 99.98 kB / 494 MB, free: 14.99 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.952e-05/0.09271, allocations: 43.36 kB / 494 MB, free: 14.95 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.161e-05/0.09275, allocations: 33.7 kB / 494.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001041/0.09286, allocations: 322.8 kB / 494.4 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.401e-05/0.09292, allocations: 27.98 kB / 494.4 MB, free: 14.56 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.075e-05/0.09299, allocations: 52.67 kB / 494.5 MB, free: 14.5 MB / 366.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0004186/0.09341, allocations: 238.3 kB / 494.7 MB, free: 14.24 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.09342, allocations: 3.938 kB / 494.7 MB, free: 14.24 MB / 366.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002358/0.09366, allocations: 154.3 kB / 494.8 MB, free: 14.08 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.456e-05/0.09369, allocations: 11.94 kB / 494.9 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.077e-06/0.0937, allocations: 0 / 494.9 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001381/0.09384, allocations: 40.83 kB / 494.9 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.987e-05/0.09394, allocations: 19.98 kB / 494.9 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001198/0.09514, allocations: 1.607 MB / 496.5 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.1e-05/0.09523, allocations: 8.109 kB / 496.5 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.006e-05/0.09525, allocations: 12 kB / 496.5 MB, free: 12.23 MB / 366.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 system: 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 9.744e-05/0.09536, allocations: 126.5 kB / 496.7 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.252e-05/0.09539, allocations: 11.91 kB / 496.7 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.285e-05/0.09542, allocations: 16.72 kB / 496.7 MB, free: 12.08 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.09543, allocations: 3.984 kB / 496.7 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.372e-06/0.09543, allocations: 0 / 496.7 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.09544, allocations: 0 / 496.7 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004664/0.09591, allocations: 437.1 kB / 497.1 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.09593, allocations: 4 kB / 497.1 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.363e-05/0.09602, allocations: 16.08 kB / 497.1 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001368/0.09616, allocations: 48.83 kB / 497.2 MB, free: 11.51 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.142e-05/0.09619, allocations: 3.984 kB / 497.2 MB, free: 11.51 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00099/0.09718, allocations: 1.615 MB / 498.8 MB, free: 9.754 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.0972, allocations: 7.969 kB / 498.8 MB, free: 9.746 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000266/0.09747, allocations: 269.9 kB / 499.1 MB, free: 9.457 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.79e-05/0.09752, allocations: 89.05 kB / 499.2 MB, free: 9.352 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.557e-05/0.09755, allocations: 0 / 499.2 MB, free: 9.352 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.375e-05/0.09764, allocations: 8 kB / 499.2 MB, free: 9.344 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.324e-05/0.09767, allocations: 7.984 kB / 499.2 MB, free: 9.336 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.251e-06/0.09768, allocations: 4 kB / 499.2 MB, free: 9.332 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.905e-05/0.09776, allocations: 113.2 kB / 499.3 MB, free: 9.223 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09776, allocations: 0 / 499.3 MB, free: 9.223 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003308/0.0981, allocations: 28 kB / 499.3 MB, free: 9.195 MB / 366.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.0005029/0.09861, allocations: 0.8058 MB / 0.4884 GB, free: 8.355 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002806/0.0989, allocations: 198.5 kB / 0.4886 GB, free: 8.148 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.09891, allocations: 0 / 0.4886 GB, free: 8.148 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001381/0.09906, allocations: 154.6 kB / 0.4887 GB, free: 7.984 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002439/0.09931, allocations: 8 kB / 0.4888 GB, free: 7.977 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00192/0.1012, allocations: 1.973 MB / 0.4907 GB, free: 5.887 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002125/0.1015, allocations: 0.7084 MB / 0.4914 GB, free: 5.152 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.962e-05/0.1015, allocations: 12.86 kB / 0.4914 GB, free: 5.141 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.924e-05/0.1016, allocations: 31.42 kB / 0.4914 GB, free: 5.109 MB / 366.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1016, allocations: 0 / 0.4914 GB, free: 5.109 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02153/0.1231, allocations: 3.035 MB / 0.4944 GB, free: 2.227 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.76/10.88, allocations: 7.688 kB / 0.4944 GB, free: 2.219 MB / 366.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)