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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001282/0.001282, allocations: 113.8 kB / 19.73 MB, free: 2.242 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001466/0.001466, allocations: 219 kB / 23.04 MB, free: 5.078 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.575/1.575, allocations: 230.6 MB / 256.8 MB, free: 7.988 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.102/0.102, allocations: 22.93 MB / 336.2 MB, free: 12.59 MB / 270.1 MB " [Timeout remaining time 180] Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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="cs",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="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002603/0.002603, allocations: 67.91 kB / 469.9 MB, free: 10.37 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3571/0.3597, allocations: 59.28 MB / 0.5168 GB, free: 9.254 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P): time 0.003064/0.3628, allocations: 1.706 MB / 0.5184 GB, free: 8.453 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009442/0.3637, allocations: 0.5002 MB / 0.5189 GB, free: 8.105 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.256e-05/0.3638, allocations: 0.9375 kB / 0.5189 GB, free: 8.105 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 5.715e-05/0.3639, allocations: 11 kB / 0.5189 GB, free: 8.098 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002599/0.3642, allocations: 39.41 kB / 0.519 GB, free: 8.074 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001047/0.3643, allocations: 27.3 kB / 0.519 GB, free: 8.059 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002476/0.3645, allocations: 122.9 kB / 0.5191 GB, free: 8 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001397/0.3646, allocations: 20.34 kB / 0.5191 GB, free: 7.984 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00021/0.3649, allocations: 62.11 kB / 0.5192 GB, free: 7.953 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001378/0.365, allocations: 50.86 kB / 0.5193 GB, free: 7.93 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.664e-05/0.365, allocations: 8.906 kB / 0.5193 GB, free: 7.93 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.758e-05/0.365, allocations: 8.969 kB / 0.5193 GB, free: 7.93 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.986e-05/0.3651, allocations: 20.73 kB / 0.5193 GB, free: 7.918 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.06e-05/0.3651, allocations: 58.12 kB / 0.5193 GB, free: 7.879 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002262/0.3654, allocations: 108.8 kB / 0.5194 GB, free: 7.832 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.3654, allocations: 0 / 0.5194 GB, free: 7.832 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3654, allocations: 0 / 0.5194 GB, free: 7.832 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.045e-06/0.3654, allocations: 0 / 0.5194 GB, free: 7.832 MB / 382.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.0006122/0.366, allocations: 348.2 kB / 0.5198 GB, free: 7.523 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.592e-05/0.366, allocations: 11.11 kB / 0.5198 GB, free: 7.523 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.314e-05/0.3661, allocations: 7.438 kB / 0.5198 GB, free: 7.52 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.007e-05/0.3661, allocations: 47.45 kB / 0.5198 GB, free: 7.469 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.972e-05/0.3662, allocations: 11.81 kB / 0.5199 GB, free: 7.465 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002334/0.3664, allocations: 156.5 kB / 0.52 GB, free: 7.312 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.218e-05/0.3664, allocations: 6.5 kB / 0.52 GB, free: 7.309 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.527e-05/0.3665, allocations: 11.28 kB / 0.52 GB, free: 7.305 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001626/0.3666, allocations: 84.27 kB / 0.5201 GB, free: 7.254 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.3666, allocations: 1.094 kB / 0.5201 GB, free: 7.254 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.178e-05/0.3666, allocations: 7.938 kB / 0.5201 GB, free: 7.246 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.895e-06/0.3666, allocations: 6.562 kB / 0.5201 GB, free: 7.242 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001029/0.3667, allocations: 52.77 kB / 0.5202 GB, free: 7.227 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00061/0.3674, allocations: 366.8 kB / 0.5205 GB, free: 6.93 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002306/0.3676, allocations: 94.14 kB / 0.5206 GB, free: 6.887 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.091e-05/0.3677, allocations: 53.69 kB / 0.5207 GB, free: 6.859 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.392e-05/0.3677, allocations: 1.719 kB / 0.5207 GB, free: 6.859 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.061e-05/0.3677, allocations: 37.12 kB / 0.5207 GB, free: 6.816 MB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 1.303e-06/0.3677, allocations: 0 / 0.5207 GB, free: 6.816 MB / 382.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008986/0.3686, allocations: 417.8 kB / 0.5211 GB, free: 6.535 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.64e-05/0.3686, allocations: 58.62 kB / 0.5211 GB, free: 6.469 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001443/0.3688, allocations: 160.7 kB / 0.5213 GB, free: 6.348 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.246e-05/0.3688, allocations: 25.7 kB / 0.5213 GB, free: 6.316 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.513e-05/0.3688, allocations: 109 kB / 0.5214 GB, free: 6.215 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.119e-05/0.3689, allocations: 63.62 kB / 0.5215 GB, free: 6.164 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.342e-05/0.3689, allocations: 35.73 kB / 0.5215 GB, free: 6.137 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.2e-05/0.369, allocations: 326.7 kB / 0.5218 GB, free: 5.816 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.051e-05/0.3691, allocations: 38.47 kB / 0.5219 GB, free: 5.801 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.727e-05/0.3692, allocations: 65.61 kB / 0.5219 GB, free: 5.758 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004957/0.3697, allocations: 192.5 kB / 0.5221 GB, free: 5.672 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/0.3697, allocations: 1.406 kB / 0.5221 GB, free: 5.672 MB / 382.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=21) (initialization): time 0.0005003/0.3702, allocations: 211.2 kB / 0.5223 GB, free: 5.555 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/0.3702, allocations: 8.188 kB / 0.5223 GB, free: 5.551 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.3702, allocations: 1.406 kB / 0.5223 GB, free: 5.551 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001811/0.3704, allocations: 48.34 kB / 0.5224 GB, free: 5.527 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001324/0.3705, allocations: 31.73 kB / 0.5224 GB, free: 5.523 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001969/0.3725, allocations: 4.434 MB / 0.5267 GB, free: 1.035 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.664e-05/0.3726, allocations: 1.375 kB / 0.5267 GB, free: 1.035 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.479e-05/0.3726, allocations: 9.234 kB / 0.5267 GB, free: 1.031 MB / 382.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 (17): * Single equations (assignments): 15 * 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 0.0001126/0.3727, allocations: 133.4 kB / 0.5269 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.91e-05/0.3727, allocations: 14.09 kB / 0.5269 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.068e-05/0.3727, allocations: 22.03 kB / 0.5269 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.3728, allocations: 5.25 kB / 0.5269 GB, free: 0.875 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.3728, allocations: 1.891 kB / 0.5269 GB, free: 0.875 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.3728, allocations: 4.641 kB / 0.5269 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005954/0.3734, allocations: 465.2 kB / 0.5274 GB, free: 0.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.3734, allocations: 1.516 kB / 0.5274 GB, free: 0.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001341/0.3735, allocations: 22.28 kB / 0.5274 GB, free: 0.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001379/0.3736, allocations: 41.03 kB / 0.5274 GB, free: 496 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.517e-05/0.3737, allocations: 11.44 kB / 0.5274 GB, free: 488 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001358/0.375, allocations: 1.503 MB / 0.5289 GB, free: 15.01 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.375, allocations: 0.5156 kB / 0.5289 GB, free: 15.01 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004404/0.3755, allocations: 304.1 kB / 0.5292 GB, free: 14.79 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.287e-05/0.3755, allocations: 18.62 kB / 0.5292 GB, free: 14.78 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.316e-05/0.3755, allocations: 2.875 kB / 0.5292 GB, free: 14.78 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001019/0.3756, allocations: 5.594 kB / 0.5292 GB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.093e-05/0.3756, allocations: 14.2 kB / 0.5292 GB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.264e-05/0.3757, allocations: 7.875 kB / 0.5292 GB, free: 14.77 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000124/0.3758, allocations: 117.1 kB / 0.5294 GB, free: 14.68 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3758, allocations: 1.156 kB / 0.5294 GB, free: 14.68 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004099/0.3762, allocations: 30.25 kB / 0.5294 GB, free: 14.68 MB / 398.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 (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 Backend phase and start with SimCode phase: time 0.0008584/0.3771, allocations: 0.8444 MB / 0.5302 GB, free: 13.92 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005562/0.3776, allocations: 328.2 kB / 0.5305 GB, free: 13.66 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.3776, allocations: 0 / 0.5305 GB, free: 13.66 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002681/0.3779, allocations: 173.2 kB / 0.5307 GB, free: 13.52 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003407/0.3782, allocations: 26.11 kB / 0.5307 GB, free: 13.5 MB / 398.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.003222/0.3814, allocations: 2.185 MB / 0.5328 GB, free: 11.8 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000406/0.3819, allocations: 0.7171 MB / 0.5335 GB, free: 11.1 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.778e-05/0.3819, allocations: 10.81 kB / 0.5336 GB, free: 11.09 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.458e-05/0.382, allocations: 38.81 kB / 0.5336 GB, free: 11.07 MB / 398.1 MB Notification: Performance of SimCode: time 4.51e-07/0.382, allocations: 0 / 0.5336 GB, free: 11.07 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03226/0.4143, allocations: 3.728 MB / 0.5372 GB, free: 10.51 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.41/13.82, allocations: 18.31 kB / 0.5373 GB, free: 10.5 MB / 398.1 MB " [Timeout remaining time 646] (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 --stepSize=0.002 --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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.661094770999625] Failed to read output from testmodel.py, exit status != 0: 14.001651465019677 14.027743161 13.656931575 Calling exit ...