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.001093/0.001093, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001137/0.001137, allocations: 193.3 kB / 16.14 MB, free: 6.703 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.122/1.122, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1688/0.1688, allocations: 22.34 MB / 312.3 MB, free: 12.62 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001071/0.001071, allocations: 67.89 kB / 378.2 MB, free: 13.11 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1841/0.1852, allocations: 54.93 MB / 433.1 MB, free: 38.55 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P): time 0.001705/0.1869, allocations: 1.532 MB / 434.6 MB, free: 37.47 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003837/0.1873, allocations: 433.6 kB / 435 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.211e-05/0.1874, allocations: 0 / 435 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.572e-05/0.1874, allocations: 10.53 kB / 435.1 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001286/0.1876, allocations: 6.703 kB / 435.1 MB, free: 37.17 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.503e-05/0.1876, allocations: 17.73 kB / 435.1 MB, free: 37.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.676e-05/0.1877, allocations: 67.56 kB / 435.1 MB, free: 37.13 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.626e-05/0.1877, allocations: 8.156 kB / 435.1 MB, free: 37.13 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.32e-05/0.1878, allocations: 33 kB / 435.2 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.135e-05/0.1879, allocations: 40.69 kB / 435.2 MB, free: 37.1 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.507e-05/0.1879, allocations: 6.688 kB / 435.2 MB, free: 37.1 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.479e-05/0.1879, allocations: 6.344 kB / 435.2 MB, free: 37.1 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.552e-05/0.1879, allocations: 11.27 kB / 435.2 MB, free: 37.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.901e-05/0.188, allocations: 28.52 kB / 435.3 MB, free: 37.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 5.867e-05/0.188, allocations: 44.58 kB / 435.3 MB, free: 37.06 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.188, allocations: 0 / 435.3 MB, free: 37.06 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.92e-07/0.188, allocations: 3.938 kB / 435.3 MB, free: 37.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.845e-06/0.188, allocations: 0 / 435.3 MB, free: 37.05 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.0003632/0.1884, allocations: 388.1 kB / 435.7 MB, free: 36.67 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.971e-05/0.1884, allocations: 12.41 kB / 435.7 MB, free: 36.67 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.092e-05/0.1885, allocations: 45.02 kB / 435.8 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.383e-05/0.1885, allocations: 7.75 kB / 435.8 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.346e-05/0.1886, allocations: 177.9 kB / 435.9 MB, free: 36.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.656e-06/0.1886, allocations: 3.219 kB / 435.9 MB, free: 36.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.669e-05/0.1886, allocations: 17.88 kB / 436 MB, free: 36.4 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.41e-05/0.1887, allocations: 59.92 kB / 436 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.62e-06/0.1887, allocations: 0 / 436 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.704e-06/0.1887, allocations: 8 kB / 436 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.097e-06/0.1888, allocations: 0 / 436 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.034e-05/0.1888, allocations: 32.16 kB / 436.1 MB, free: 36.35 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003317/0.1891, allocations: 314.5 kB / 436.4 MB, free: 36.05 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001836/0.1893, allocations: 92.73 kB / 436.5 MB, free: 36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.998e-05/0.1894, allocations: 33.8 kB / 436.5 MB, free: 35.98 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.528e-06/0.1894, allocations: 0 / 436.5 MB, free: 35.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.897e-06/0.1894, allocations: 30.56 kB / 436.5 MB, free: 35.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 7.51e-07/0.1894, allocations: 2.781 kB / 436.5 MB, free: 35.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004742/0.1899, allocations: 392 kB / 436.9 MB, free: 35.62 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.689e-05/0.1899, allocations: 51.41 kB / 437 MB, free: 35.55 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.201e-05/0.19, allocations: 136.3 kB / 437.1 MB, free: 35.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.452e-06/0.19, allocations: 28.61 kB / 437.1 MB, free: 35.4 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.208e-05/0.19, allocations: 90.94 kB / 437.2 MB, free: 35.31 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.624e-05/0.1901, allocations: 41.75 kB / 437.2 MB, free: 35.28 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.153e-05/0.1901, allocations: 31.98 kB / 437.3 MB, free: 35.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.432e-05/0.1901, allocations: 320.9 kB / 437.6 MB, free: 34.94 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.277e-05/0.1902, allocations: 26.16 kB / 437.6 MB, free: 34.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.912e-05/0.1902, allocations: 44.45 kB / 437.7 MB, free: 34.89 MB / 350.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0003136/0.1905, allocations: 229.4 kB / 437.9 MB, free: 34.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.82e-07/0.1905, allocations: 0 / 437.9 MB, free: 34.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001635/0.1907, allocations: 131.2 kB / 438 MB, free: 34.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.876e-06/0.1907, allocations: 8.484 kB / 438 MB, free: 34.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.1907, allocations: 2.969 kB / 438 MB, free: 34.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001113/0.1908, allocations: 38.72 kB / 438.1 MB, free: 34.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.411e-05/0.1909, allocations: 25.28 kB / 438.1 MB, free: 34.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006883/0.1916, allocations: 1.401 MB / 439.5 MB, free: 33.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.106e-05/0.1917, allocations: 10.88 kB / 439.5 MB, free: 33.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.091e-06/0.1917, allocations: 2.938 kB / 439.5 MB, free: 33.22 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 5.811e-05/0.1918, allocations: 123.9 kB / 439.6 MB, free: 33.09 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.65e-05/0.1918, allocations: 13.84 kB / 439.6 MB, free: 33.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.574e-05/0.1918, allocations: 12.38 kB / 439.6 MB, free: 33.08 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.1918, allocations: 2.594 kB / 439.6 MB, free: 33.08 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.22e-07/0.1918, allocations: 3.938 kB / 439.6 MB, free: 33.07 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.1918, allocations: 3.281 kB / 439.7 MB, free: 33.07 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002844/0.1921, allocations: 381.1 kB / 440 MB, free: 32.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.1921, allocations: 0 / 440 MB, free: 32.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.985e-05/0.1922, allocations: 25.09 kB / 440 MB, free: 32.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.392e-05/0.1923, allocations: 36.67 kB / 440.1 MB, free: 32.7 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.415e-06/0.1923, allocations: 4 kB / 440.1 MB, free: 32.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005631/0.1929, allocations: 1.421 MB / 441.5 MB, free: 31.28 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1929, allocations: 0 / 441.5 MB, free: 31.28 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001788/0.1931, allocations: 247.7 kB / 441.8 MB, free: 31.09 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.906e-05/0.1931, allocations: 83.8 kB / 441.8 MB, free: 30.99 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.3e-05/0.1931, allocations: 3.281 kB / 441.8 MB, free: 30.99 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.091e-05/0.1932, allocations: 2.562 kB / 441.8 MB, free: 30.99 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.782e-05/0.1932, allocations: 17.89 kB / 441.9 MB, free: 30.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.51e-06/0.1933, allocations: 2.844 kB / 441.9 MB, free: 30.98 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.716e-05/0.1933, allocations: 111.3 kB / 442 MB, free: 30.89 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1933, allocations: 0 / 442 MB, free: 30.89 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002885/0.1936, allocations: 24.03 kB / 442 MB, free: 30.88 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.0002904/0.1939, allocations: 0.7697 MB / 442.8 MB, free: 30.17 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001925/0.1941, allocations: 192 kB / 442.9 MB, free: 30.03 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.1941, allocations: 0 / 442.9 MB, free: 30.03 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.083e-05/0.1942, allocations: 138.1 kB / 443.1 MB, free: 29.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001996/0.1944, allocations: 10.38 kB / 443.1 MB, free: 29.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001248/0.1957, allocations: 1.799 MB / 444.9 MB, free: 28.38 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.944e-05/0.1958, allocations: 0.7049 MB / 445.6 MB, free: 27.68 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.19e-05/0.1958, allocations: 15.14 kB / 445.6 MB, free: 27.67 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.405e-05/0.1958, allocations: 19.62 kB / 445.6 MB, free: 27.65 MB / 350.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1958, allocations: 2.719 kB / 445.6 MB, free: 27.65 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01687/0.2127, allocations: 2.302 MB / 447.9 MB, free: 27.39 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001422/0.2129, allocations: 261.7 kB / 448.2 MB, free: 27.13 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.447/1.66, allocations: 2.188 kB / 448.2 MB, free: 27.13 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)