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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001226/0.001226, allocations: 104.4 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001226/0.001226, allocations: 188.6 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.401/1.401, allocations: 225.6 MB / 247.8 MB, free: 3.727 MB / 190.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.09404/0.09404, allocations: 22.68 MB / 325.4 MB, free: 7.922 MB / 254.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.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001853/0.001853, allocations: 63.2 kB / 455 MB, free: 42.48 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09333/0.09518, allocations: 58.03 MB / 0.501 GB, free: 10.37 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P): time 0.002137/0.09732, allocations: 1.678 MB / 0.5027 GB, free: 8.68 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005174/0.09783, allocations: 467 kB / 0.5031 GB, free: 8.223 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.312e-05/0.09791, allocations: 0 / 0.5031 GB, free: 8.223 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 3.89e-05/0.09795, allocations: 15.8 kB / 0.5031 GB, free: 8.207 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001864/0.09813, allocations: 39.7 kB / 0.5032 GB, free: 8.168 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 6.72e-05/0.0982, allocations: 23.97 kB / 0.5032 GB, free: 8.145 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001299/0.09833, allocations: 123.5 kB / 0.5033 GB, free: 8.023 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001027/0.09843, allocations: 25.42 kB / 0.5033 GB, free: 7.996 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.626e-05/0.09851, allocations: 47.8 kB / 0.5034 GB, free: 7.949 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.856e-05/0.09859, allocations: 55.7 kB / 0.5034 GB, free: 7.895 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.75e-05/0.0986, allocations: 8 kB / 0.5034 GB, free: 7.887 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.492e-05/0.09862, allocations: 8 kB / 0.5035 GB, free: 7.879 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.973e-05/0.09864, allocations: 27.91 kB / 0.5035 GB, free: 7.852 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 3.62e-05/0.09868, allocations: 51.72 kB / 0.5035 GB, free: 7.801 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001149/0.09879, allocations: 111.4 kB / 0.5036 GB, free: 7.691 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.09879, allocations: 0 / 0.5036 GB, free: 7.691 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.0988, allocations: 0 / 0.5036 GB, free: 7.691 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.532e-06/0.0988, allocations: 0 / 0.5036 GB, free: 7.691 MB / 366.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.0004776/0.09928, allocations: 422.9 kB / 0.504 GB, free: 7.23 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.111e-05/0.09931, allocations: 12.03 kB / 0.504 GB, free: 7.219 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.968e-05/0.09936, allocations: 42.73 kB / 0.5041 GB, free: 7.168 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.802e-05/0.09939, allocations: 16.84 kB / 0.5041 GB, free: 7.152 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001749/0.09956, allocations: 215.3 kB / 0.5043 GB, free: 6.906 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.644e-06/0.09957, allocations: 11.94 kB / 0.5043 GB, free: 6.895 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.316e-05/0.09959, allocations: 4 kB / 0.5043 GB, free: 6.891 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001156/0.09971, allocations: 88.23 kB / 0.5044 GB, free: 6.801 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.09972, allocations: 0 / 0.5044 GB, free: 6.801 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.608e-06/0.09973, allocations: 0 / 0.5044 GB, free: 6.801 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.09973, allocations: 4 kB / 0.5044 GB, free: 6.797 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.944e-05/0.0998, allocations: 43.98 kB / 0.5045 GB, free: 6.754 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000445/0.1002, allocations: 396.5 kB / 0.5048 GB, free: 6.316 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002406/0.1005, allocations: 167.6 kB / 0.505 GB, free: 6.125 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.659e-05/0.1005, allocations: 44.84 kB / 0.505 GB, free: 6.078 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.435e-06/0.1006, allocations: 224 / 0.505 GB, free: 6.078 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.201e-05/0.1006, allocations: 42.48 kB / 0.5051 GB, free: 6.027 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 8.91e-07/0.1006, allocations: 4 kB / 0.5051 GB, free: 6.023 MB / 366.1 MB Notification: Performance of matching and sorting (n=12): time 0.0005906/0.1012, allocations: 443 kB / 0.5055 GB, free: 5.535 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.171e-05/0.1012, allocations: 51.41 kB / 0.5056 GB, free: 5.473 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001029/0.1013, allocations: 162.4 kB / 0.5057 GB, free: 5.301 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.568e-06/0.1013, allocations: 33.7 kB / 0.5057 GB, free: 5.262 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.477e-05/0.1013, allocations: 108 kB / 0.5058 GB, free: 5.152 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.332e-05/0.1013, allocations: 51.53 kB / 0.5059 GB, free: 5.102 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.708e-05/0.1014, allocations: 29.72 kB / 0.5059 GB, free: 5.066 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.016e-05/0.1014, allocations: 334.7 kB / 0.5062 GB, free: 4.73 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.455e-05/0.1015, allocations: 27.98 kB / 0.5063 GB, free: 4.703 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.653e-05/0.1015, allocations: 60.89 kB / 0.5063 GB, free: 4.637 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003446/0.1019, allocations: 173.4 kB / 0.5065 GB, free: 4.461 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.12e-07/0.1019, allocations: 0 / 0.5065 GB, free: 4.461 MB / 366.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.0003622/0.1022, allocations: 350.2 kB / 0.5068 GB, free: 4.066 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.091e-05/0.1022, allocations: 4 kB / 0.5068 GB, free: 4.062 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.1023, allocations: 3.938 kB / 0.5068 GB, free: 4.059 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001388/0.1024, allocations: 57.67 kB / 0.5069 GB, free: 3.996 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.891e-05/0.1025, allocations: 27.98 kB / 0.5069 GB, free: 3.969 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001815/0.1043, allocations: 4.629 MB / 0.5114 GB, free: 15 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.627e-05/0.1044, allocations: 3.938 kB / 0.5114 GB, free: 14.99 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.328e-05/0.1044, allocations: 12 kB / 0.5114 GB, free: 14.98 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 (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 0.0001323/0.1045, allocations: 134.7 kB / 0.5116 GB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.025e-05/0.1046, allocations: 15.91 kB / 0.5116 GB, free: 14.82 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.336e-05/0.1046, allocations: 12.72 kB / 0.5116 GB, free: 14.82 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.1046, allocations: 4 kB / 0.5116 GB, free: 14.81 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.262e-06/0.1046, allocations: 3.938 kB / 0.5116 GB, free: 14.81 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.1046, allocations: 3.938 kB / 0.5116 GB, free: 14.8 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005685/0.1052, allocations: 460.8 kB / 0.5121 GB, free: 14.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.1052, allocations: 0 / 0.5121 GB, free: 14.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000104/0.1053, allocations: 23.98 kB / 0.5121 GB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001197/0.1054, allocations: 36.83 kB / 0.5121 GB, free: 14.23 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.718e-06/0.1054, allocations: 0 / 0.5121 GB, free: 14.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00133/0.1067, allocations: 1.611 MB / 0.5137 GB, free: 12.47 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.1067, allocations: 8.031 kB / 0.5137 GB, free: 12.46 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003571/0.1071, allocations: 281.9 kB / 0.514 GB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.295e-05/0.1072, allocations: 93.05 kB / 0.5141 GB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.214e-05/0.1072, allocations: 8 kB / 0.5141 GB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.913e-05/0.1073, allocations: 7.938 kB / 0.5141 GB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.353e-05/0.1073, allocations: 11.92 kB / 0.5141 GB, free: 12.03 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.808e-06/0.1073, allocations: 8 kB / 0.5141 GB, free: 12.02 MB / 382.1 MB Notification: Performance of sorting global known variables: time 9.695e-05/0.1074, allocations: 121.5 kB / 0.5142 GB, free: 11.9 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1074, allocations: 0 / 0.5142 GB, free: 11.9 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003872/0.1078, allocations: 28 kB / 0.5142 GB, free: 11.88 MB / 382.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.0006945/0.1085, allocations: 0.8166 MB / 0.515 GB, free: 11.02 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005059/0.109, allocations: 327.8 kB / 0.5153 GB, free: 10.68 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.109, allocations: 4.125 kB / 0.5153 GB, free: 10.68 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001877/0.1092, allocations: 150.6 kB / 0.5155 GB, free: 10.52 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003015/0.1095, allocations: 20.11 kB / 0.5155 GB, free: 10.5 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 simCode: created linear, non-linear and system jacobian parts: time 0.00294/0.1124, allocations: 2.445 MB / 0.5179 GB, free: 7.855 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003645/0.1128, allocations: 0.7124 MB / 0.5186 GB, free: 7.117 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.619e-05/0.1128, allocations: 12.59 kB / 0.5186 GB, free: 7.105 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.585e-05/0.1129, allocations: 39.61 kB / 0.5186 GB, free: 7.066 MB / 382.1 MB Notification: Performance of SimCode: time 3.8e-07/0.1129, allocations: 0 / 0.5186 GB, free: 7.066 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03119/0.1441, allocations: 3.436 MB / 0.522 GB, free: 3.816 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.04/12.18, allocations: 7.938 kB / 0.522 GB, free: 3.812 MB / 382.1 MB " [Timeout remaining time 648] (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: 14.752258227672428] Failed to read output from testmodel.py, exit status != 0: 12.270333640277386 12.286402843 12.184742286 Calling exit ...