Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_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_1stOrder_prescribed_P,fileNamePrefix="AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_1stOrder_prescribed_P",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P,fileNamePrefix="AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_1stOrder_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.001532/0.001532, allocations: 108 kB / 15.61 MB, free: 148 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.001958/0.001958, allocations: 194.1 kB / 16.53 MB, free: 6.664 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.312/1.312, allocations: 222.9 MB / 240.2 MB, free: 4.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2032/0.2032, allocations: 22.36 MB / 312.8 MB, free: 12.53 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001422/0.001422, allocations: 59.91 kB / 378.8 MB, free: 12.5 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2321/0.2335, allocations: 54.95 MB / 433.8 MB, free: 38.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P): time 0.002185/0.2357, allocations: 1.669 MB / 435.5 MB, free: 37.44 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005355/0.2363, allocations: 461.2 kB / 435.9 MB, free: 37.13 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.749e-05/0.2364, allocations: 2.938 kB / 435.9 MB, free: 37.13 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.978e-05/0.2364, allocations: 11.11 kB / 435.9 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001561/0.2366, allocations: 33.23 kB / 436 MB, free: 37.1 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 6.717e-05/0.2366, allocations: 22.08 kB / 436 MB, free: 37.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001305/0.2368, allocations: 129 kB / 436.1 MB, free: 37.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001097/0.2369, allocations: 33.27 kB / 436.1 MB, free: 37.01 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.529e-05/0.237, allocations: 53.39 kB / 436.2 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.028e-05/0.2371, allocations: 51.28 kB / 436.2 MB, free: 36.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.984e-05/0.2371, allocations: 8.031 kB / 436.2 MB, free: 36.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.97e-05/0.2371, allocations: 11.59 kB / 436.3 MB, free: 36.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.292e-05/0.2371, allocations: 26.38 kB / 436.3 MB, free: 36.94 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.252e-05/0.2372, allocations: 55.42 kB / 436.3 MB, free: 36.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.582e-05/0.2373, allocations: 104.9 kB / 436.4 MB, free: 36.86 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.2373, allocations: 2.5 kB / 436.4 MB, free: 36.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2373, allocations: 0 / 436.4 MB, free: 36.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.245e-06/0.2373, allocations: 0 / 436.4 MB, free: 36.86 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0004625/0.2378, allocations: 422.2 kB / 436.8 MB, free: 36.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.272e-05/0.2378, allocations: 14.38 kB / 436.9 MB, free: 36.46 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.034e-05/0.2379, allocations: 41.44 kB / 436.9 MB, free: 36.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.976e-05/0.2379, allocations: 14.34 kB / 436.9 MB, free: 36.4 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001405/0.2381, allocations: 212.5 kB / 437.1 MB, free: 36.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.828e-06/0.2381, allocations: 9.188 kB / 437.1 MB, free: 36.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.042e-05/0.2381, allocations: 13.62 kB / 437.1 MB, free: 36.17 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000117/0.2382, allocations: 82.02 kB / 437.2 MB, free: 36.12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.173e-06/0.2382, allocations: 0 / 437.2 MB, free: 36.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.488e-06/0.2383, allocations: 3.188 kB / 437.2 MB, free: 36.12 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.2383, allocations: 6.906 kB / 437.2 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.703e-05/0.2383, allocations: 41.95 kB / 437.3 MB, free: 36.1 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004668/0.2388, allocations: 386.5 kB / 437.7 MB, free: 35.78 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002284/0.2391, allocations: 176 kB / 437.8 MB, free: 35.63 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.049e-05/0.2391, allocations: 45.77 kB / 437.9 MB, free: 35.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.308e-05/0.2392, allocations: 3 kB / 437.9 MB, free: 35.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.038e-05/0.2392, allocations: 34.5 kB / 437.9 MB, free: 35.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.212e-06/0.2392, allocations: 0 / 437.9 MB, free: 35.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0006026/0.2398, allocations: 457.6 kB / 438.4 MB, free: 35.2 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.257e-05/0.2398, allocations: 51.41 kB / 438.4 MB, free: 35.14 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.657e-05/0.2399, allocations: 161.3 kB / 438.6 MB, free: 35.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.894e-06/0.2399, allocations: 25.7 kB / 438.6 MB, free: 34.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.361e-05/0.24, allocations: 112.4 kB / 438.7 MB, free: 34.88 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.238e-05/0.24, allocations: 43.42 kB / 438.7 MB, free: 34.85 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.926e-05/0.24, allocations: 35.94 kB / 438.8 MB, free: 34.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.961e-05/0.2401, allocations: 332.3 kB / 439.1 MB, free: 34.49 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.779e-05/0.2401, allocations: 33.14 kB / 439.1 MB, free: 34.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.493e-05/0.2402, allocations: 51.92 kB / 439.2 MB, free: 34.45 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003717/0.2406, allocations: 182.5 kB / 439.4 MB, free: 34.36 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-06/0.2406, allocations: 0 / 439.4 MB, free: 34.36 MB / 350.1 MB Warning: The linear system: 1 : G.Pm = G.Pcmd 2 : G.Pm = G.Pcmd [ 1.0 , -1.0 ; 1.0 , -1.0 ] * [ G.Pm ; G.Pcmd ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable G.Pcmd since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003946/0.241, allocations: 347.7 kB / 439.7 MB, free: 34.06 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.091e-05/0.241, allocations: 7.094 kB / 439.7 MB, free: 34.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-06/0.241, allocations: 6.844 kB / 439.7 MB, free: 34.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001461/0.2412, allocations: 48.33 kB / 439.8 MB, free: 34.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.195e-05/0.2413, allocations: 28.44 kB / 439.8 MB, free: 34.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001779/0.243, allocations: 4.633 MB / 444.4 MB, free: 29.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.777e-05/0.2431, allocations: 7.938 kB / 444.4 MB, free: 29.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.846e-06/0.2432, allocations: 5.688 kB / 444.4 MB, free: 29.28 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 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 (14): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 9.026e-05/0.2433, allocations: 131.5 kB / 444.6 MB, free: 29.15 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.294e-05/0.2433, allocations: 9.844 kB / 444.6 MB, free: 29.15 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.348e-05/0.2433, allocations: 19.72 kB / 444.6 MB, free: 29.14 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.714e-06/0.2433, allocations: 0 / 444.6 MB, free: 29.14 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.903e-06/0.2433, allocations: 0 / 444.6 MB, free: 29.14 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.2433, allocations: 7.172 kB / 444.6 MB, free: 29.13 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004057/0.2438, allocations: 459.3 kB / 445.1 MB, free: 28.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.568e-06/0.2438, allocations: 7.406 kB / 445.1 MB, free: 28.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.654e-05/0.2439, allocations: 24.47 kB / 445.1 MB, free: 28.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001145/0.244, allocations: 38.86 kB / 445.1 MB, free: 28.71 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.287e-05/0.244, allocations: 11.36 kB / 445.1 MB, free: 28.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000745/0.2448, allocations: 1.612 MB / 446.7 MB, free: 27.11 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.2448, allocations: 2.875 kB / 446.7 MB, free: 27.11 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002405/0.245, allocations: 284.5 kB / 447 MB, free: 26.89 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.69e-05/0.2451, allocations: 86.95 kB / 447.1 MB, free: 26.79 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.869e-05/0.2451, allocations: 2.781 kB / 447.1 MB, free: 26.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.564e-05/0.2452, allocations: 8 kB / 447.1 MB, free: 26.79 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.18e-05/0.2452, allocations: 16.78 kB / 447.1 MB, free: 26.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.041e-06/0.2452, allocations: 2.938 kB / 447.1 MB, free: 26.78 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.188e-05/0.2453, allocations: 123.3 kB / 447.3 MB, free: 26.69 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2453, allocations: 0 / 447.3 MB, free: 26.69 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000372/0.2457, allocations: 33.94 kB / 447.3 MB, free: 26.68 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (G.thetap,G.deltag,G.wg,Gact.y) * 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 (9): * Single equations (assignments): 8 * 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.0003786/0.2461, allocations: 0.8231 MB / 448.1 MB, free: 25.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003065/0.2464, allocations: 318.2 kB / 448.4 MB, free: 25.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.2464, allocations: 0 / 448.4 MB, free: 25.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001285/0.2465, allocations: 159.2 kB / 448.6 MB, free: 25.54 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002895/0.2468, allocations: 19.64 kB / 448.6 MB, free: 25.54 MB / 350.1 MB Warning: The linear system: 1 : G.Pm = G.Pcmd 2 : G.Pm = G.Pcmd [ -1.0 , 1.0 ; -1.0 , 1.0 ] * [ G.Pcmd ; G.Pm ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable G.Pm since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002013/0.2488, allocations: 2.451 MB / 451.1 MB, free: 23.45 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001148/0.249, allocations: 0.7107 MB / 451.8 MB, free: 22.75 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.335e-05/0.249, allocations: 9.766 kB / 451.8 MB, free: 22.75 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.826e-05/0.2491, allocations: 36.45 kB / 451.8 MB, free: 22.72 MB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.2491, allocations: 0 / 451.8 MB, free: 22.72 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8638/1.113, allocations: 3.329 MB / 455.1 MB, free: 22.28 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.89/15, allocations: 4.812 kB / 455.1 MB, free: 22.28 MB / 350.1 MB (rm -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe ; mkfifo AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe ; head -c 1048576 < AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe >> ../files/AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_1stOrder_prescribed_P_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_1stOrder_prescribed_P.fmu > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe 2>&1)