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.001026/0.001026, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001223/0.001223, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.44/1.44, allocations: 223.2 MB / 240 MB, free: 5.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2018/0.2018, allocations: 22.35 MB / 313.4 MB, free: 13.13 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00052/0.0005202, allocations: 12 kB / 380 MB, free: 12.41 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3567/0.3573, allocations: 55.97 MB / 436 MB, free: 38.19 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P): time 0.001636/0.3589, allocations: 1.352 MB / 437.4 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005896/0.3595, allocations: 434.1 kB / 437.8 MB, free: 37.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.049e-05/0.3596, allocations: 3.719 kB / 437.8 MB, free: 37.07 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.815e-05/0.3597, allocations: 11.22 kB / 437.8 MB, free: 37.06 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001827/0.3599, allocations: 26.06 kB / 437.8 MB, free: 37.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.277e-05/0.3599, allocations: 21.44 kB / 437.8 MB, free: 37.03 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001601/0.3601, allocations: 117.3 kB / 438 MB, free: 36.97 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001142/0.3602, allocations: 25.58 kB / 438 MB, free: 36.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.421e-05/0.3603, allocations: 44.56 kB / 438 MB, free: 36.94 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.852e-05/0.3604, allocations: 53.23 kB / 438.1 MB, free: 36.92 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.133e-05/0.3604, allocations: 2.844 kB / 438.1 MB, free: 36.92 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.637e-05/0.3605, allocations: 5.75 kB / 438.1 MB, free: 36.92 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.005e-05/0.3605, allocations: 14.22 kB / 438.1 MB, free: 36.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.817e-05/0.3605, allocations: 42.23 kB / 438.1 MB, free: 36.87 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.582e-05/0.3606, allocations: 76 kB / 438.2 MB, free: 36.85 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.3606, allocations: 0 / 438.2 MB, free: 36.85 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3606, allocations: 0 / 438.2 MB, free: 36.85 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.068e-06/0.3606, allocations: 0 / 438.2 MB, free: 36.85 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.0004887/0.3611, allocations: 409.2 kB / 438.6 MB, free: 36.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.3612, allocations: 10.44 kB / 438.6 MB, free: 36.46 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.784e-05/0.3613, allocations: 38.47 kB / 438.7 MB, free: 36.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.123e-05/0.3613, allocations: 14.42 kB / 438.7 MB, free: 36.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002016/0.3615, allocations: 201.4 kB / 438.9 MB, free: 36.2 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.461e-05/0.3615, allocations: 9.562 kB / 438.9 MB, free: 36.19 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.348e-05/0.3616, allocations: 13.41 kB / 438.9 MB, free: 36.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001548/0.3617, allocations: 83.45 kB / 439 MB, free: 36.13 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/0.3617, allocations: 3.984 kB / 439 MB, free: 36.13 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.332e-05/0.3618, allocations: 7.938 kB / 439 MB, free: 36.12 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.3618, allocations: 2.719 kB / 439 MB, free: 36.12 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.662e-05/0.3619, allocations: 44.81 kB / 439 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005729/0.3624, allocations: 398.5 kB / 439.4 MB, free: 35.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003033/0.3628, allocations: 175.4 kB / 439.6 MB, free: 35.63 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.033e-05/0.3628, allocations: 43.17 kB / 439.6 MB, free: 35.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.796e-05/0.3629, allocations: 224 / 439.6 MB, free: 35.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.366e-05/0.3629, allocations: 41.25 kB / 439.7 MB, free: 35.56 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.052e-06/0.3629, allocations: 0 / 439.7 MB, free: 35.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.000767/0.3637, allocations: 442 kB / 440.1 MB, free: 35.21 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.66e-05/0.3637, allocations: 51.41 kB / 440.2 MB, free: 35.15 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001288/0.3639, allocations: 155.5 kB / 440.3 MB, free: 35.03 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.28e-05/0.3639, allocations: 33.58 kB / 440.4 MB, free: 34.99 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.922e-05/0.3639, allocations: 111 kB / 440.5 MB, free: 34.89 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.403e-05/0.364, allocations: 44.33 kB / 440.5 MB, free: 34.85 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.15e-06/0.364, allocations: 0 / 440.5 MB, free: 34.85 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.969e-05/0.3641, allocations: 332 kB / 440.8 MB, free: 34.53 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.898e-05/0.3641, allocations: 28.12 kB / 440.9 MB, free: 34.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.695e-05/0.3642, allocations: 54.48 kB / 440.9 MB, free: 34.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.642e-05/0.3643, allocations: 52.84 kB / 441 MB, free: 34.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.61e-07/0.3643, allocations: 0 / 441 MB, free: 34.46 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 matching and sorting (n=18) (initialization): time 0.0005002/0.3648, allocations: 348.3 kB / 441.3 MB, free: 34.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.906e-05/0.3648, allocations: 8.703 kB / 441.3 MB, free: 34.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.94e-06/0.3649, allocations: 7.312 kB / 441.3 MB, free: 34.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001958/0.3651, allocations: 45.41 kB / 441.4 MB, free: 34.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001006/0.3652, allocations: 27.8 kB / 441.4 MB, free: 34.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001875/0.367, allocations: 4.236 MB / 445.6 MB, free: 29.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.215e-05/0.3671, allocations: 2.906 kB / 445.6 MB, free: 29.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.618e-06/0.3672, allocations: 6.781 kB / 445.6 MB, free: 29.78 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0001/0.3673, allocations: 118.6 kB / 445.7 MB, free: 29.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.101e-05/0.3673, allocations: 22.62 kB / 445.8 MB, free: 29.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.861e-05/0.3673, allocations: 18.8 kB / 445.8 MB, free: 29.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.3673, allocations: 2.844 kB / 445.8 MB, free: 29.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.785e-06/0.3673, allocations: 3.953 kB / 445.8 MB, free: 29.63 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.3674, allocations: 0 / 445.8 MB, free: 29.63 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004464/0.3678, allocations: 455.3 kB / 446.2 MB, free: 29.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.277e-06/0.3678, allocations: 6.781 kB / 446.2 MB, free: 29.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.64e-05/0.3679, allocations: 23.39 kB / 446.3 MB, free: 29.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001099/0.368, allocations: 36.14 kB / 446.3 MB, free: 29.22 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.282e-05/0.3681, allocations: 6.562 kB / 446.3 MB, free: 29.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007497/0.3688, allocations: 1.454 MB / 447.8 MB, free: 27.78 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.3688, allocations: 3.984 kB / 447.8 MB, free: 27.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002691/0.3691, allocations: 289.7 kB / 448.1 MB, free: 27.55 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.237e-05/0.3692, allocations: 84.33 kB / 448.1 MB, free: 27.46 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.847e-05/0.3692, allocations: 6.891 kB / 448.1 MB, free: 27.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.929e-05/0.3693, allocations: 4 kB / 448.1 MB, free: 27.45 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.255e-05/0.3693, allocations: 12.56 kB / 448.2 MB, free: 27.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.823e-06/0.3693, allocations: 6.609 kB / 448.2 MB, free: 27.45 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.863e-05/0.3694, allocations: 125.3 kB / 448.3 MB, free: 27.35 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3694, allocations: 3.938 kB / 448.3 MB, free: 27.35 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003809/0.3698, allocations: 28.5 kB / 448.3 MB, free: 27.34 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004617/0.3702, allocations: 0.8168 MB / 449.1 MB, free: 26.6 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003594/0.3706, allocations: 310.5 kB / 449.4 MB, free: 26.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.3706, allocations: 3.938 kB / 449.4 MB, free: 26.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001345/0.3708, allocations: 158.6 kB / 449.6 MB, free: 26.21 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003226/0.3711, allocations: 20.19 kB / 449.6 MB, free: 26.2 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.001874/0.373, allocations: 1.318 MB / 450.9 MB, free: 25.24 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002069/0.3732, allocations: 0.7256 MB / 451.7 MB, free: 24.54 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.112e-05/0.3733, allocations: 14.12 kB / 451.7 MB, free: 24.53 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.624e-05/0.3733, allocations: 38.36 kB / 451.7 MB, free: 24.5 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3733, allocations: 0 / 451.7 MB, free: 24.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01631/0.3897, allocations: 3.001 MB / 454.7 MB, free: 24.29 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002314/0.3899, allocations: 244.9 kB / 455 MB, free: 24.05 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.795/2.185, allocations: 0 / 455 MB, free: 24.05 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/linux/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) Environment - environmentSimulation: