Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_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.001374/0.001374, allocations: 107 kB / 16.45 MB, free: 6.453 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.001504/0.001504, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.466/1.466, allocations: 230.6 MB / 252.8 MB, free: 8.945 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.1606/0.1606, allocations: 24.11 MB / 333 MB, free: 12.6 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_order0_fixed_P,fileNamePrefix="AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_fixed_P",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P,fileNamePrefix="AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_fixed_P",fmuType="me",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.002273/0.002273, allocations: 59.91 kB / 465.7 MB, free: 11.19 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3458/0.3481, allocations: 59.58 MB / 0.513 GB, free: 8.406 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P): time 0.003216/0.3513, allocations: 1.612 MB / 0.5146 GB, free: 7.668 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009067/0.3522, allocations: 496.5 kB / 0.515 GB, free: 7.336 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.737e-05/0.3523, allocations: 1.531 kB / 0.515 GB, free: 7.336 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 5.265e-05/0.3524, allocations: 10.64 kB / 0.515 GB, free: 7.328 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002009/0.3526, allocations: 29.86 kB / 0.5151 GB, free: 7.309 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.603e-05/0.3526, allocations: 15.8 kB / 0.5151 GB, free: 7.301 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001389/0.3528, allocations: 109.5 kB / 0.5152 GB, free: 7.246 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001142/0.3529, allocations: 21.42 kB / 0.5152 GB, free: 7.238 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002004/0.3531, allocations: 51.73 kB / 0.5153 GB, free: 7.215 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001169/0.3532, allocations: 50.38 kB / 0.5153 GB, free: 7.191 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.123e-05/0.3532, allocations: 8.812 kB / 0.5153 GB, free: 7.191 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.028e-05/0.3533, allocations: 7.562 kB / 0.5153 GB, free: 7.191 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.352e-05/0.3533, allocations: 22.84 kB / 0.5153 GB, free: 7.176 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.057e-05/0.3533, allocations: 44.95 kB / 0.5154 GB, free: 7.148 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001531/0.3535, allocations: 89.11 kB / 0.5155 GB, free: 7.113 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.3535, allocations: 1.406 kB / 0.5155 GB, free: 7.113 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3535, allocations: 0 / 0.5155 GB, free: 7.113 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.141e-06/0.3535, allocations: 1.688 kB / 0.5155 GB, free: 7.113 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0005557/0.3541, allocations: 407.8 kB / 0.5159 GB, free: 6.719 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.588e-05/0.3541, allocations: 13.94 kB / 0.5159 GB, free: 6.715 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.587e-05/0.3542, allocations: 44.34 kB / 0.5159 GB, free: 6.668 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.162e-05/0.3542, allocations: 9.422 kB / 0.5159 GB, free: 6.664 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001486/0.3544, allocations: 193.9 kB / 0.5161 GB, free: 6.449 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.641e-05/0.3544, allocations: 8.062 kB / 0.5161 GB, free: 6.445 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.819e-05/0.3544, allocations: 14.12 kB / 0.5161 GB, free: 6.438 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001455/0.3545, allocations: 76.44 kB / 0.5162 GB, free: 6.391 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.3546, allocations: 0 / 0.5162 GB, free: 6.391 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.092e-05/0.3546, allocations: 1.641 kB / 0.5162 GB, free: 6.391 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.3546, allocations: 5.969 kB / 0.5162 GB, free: 6.387 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.531e-05/0.3547, allocations: 46.06 kB / 0.5163 GB, free: 6.371 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005351/0.3552, allocations: 373.7 kB / 0.5166 GB, free: 6.047 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002628/0.3555, allocations: 88.08 kB / 0.5167 GB, free: 6 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.534e-05/0.3555, allocations: 39.98 kB / 0.5167 GB, free: 5.98 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.324e-05/0.3555, allocations: 5.438 kB / 0.5167 GB, free: 5.977 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.626e-05/0.3556, allocations: 32.45 kB / 0.5168 GB, free: 5.938 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.172e-06/0.3556, allocations: 0 / 0.5168 GB, free: 5.938 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.0007576/0.3563, allocations: 424.5 kB / 0.5172 GB, free: 5.59 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.65e-05/0.3563, allocations: 52.41 kB / 0.5172 GB, free: 5.527 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001288/0.3565, allocations: 150.6 kB / 0.5174 GB, free: 5.41 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.065e-05/0.3565, allocations: 26.89 kB / 0.5174 GB, free: 5.379 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.722e-05/0.3565, allocations: 104.1 kB / 0.5175 GB, free: 5.281 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.111e-05/0.3566, allocations: 47.59 kB / 0.5175 GB, free: 5.242 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.765e-05/0.3566, allocations: 28.7 kB / 0.5176 GB, free: 5.219 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.472e-05/0.3567, allocations: 325 kB / 0.5179 GB, free: 4.898 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.7e-05/0.3567, allocations: 26.36 kB / 0.5179 GB, free: 4.891 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.394e-05/0.3568, allocations: 56.55 kB / 0.518 GB, free: 4.852 MB / 382.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0004909/0.3573, allocations: 250.2 kB / 0.5182 GB, free: 4.672 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.3573, allocations: 5.156 kB / 0.5182 GB, free: 4.668 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002483/0.3575, allocations: 147.2 kB / 0.5183 GB, free: 4.586 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.866e-05/0.3576, allocations: 5.125 kB / 0.5184 GB, free: 4.586 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-06/0.3576, allocations: 5.375 kB / 0.5184 GB, free: 4.582 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001742/0.3577, allocations: 36.89 kB / 0.5184 GB, free: 4.566 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.872e-05/0.3578, allocations: 25.62 kB / 0.5184 GB, free: 4.562 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001128/0.359, allocations: 1.612 MB / 0.52 GB, free: 2.961 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.402e-05/0.359, allocations: 6.625 kB / 0.52 GB, free: 2.957 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.188e-05/0.3591, allocations: 4.203 kB / 0.52 GB, free: 2.957 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 Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: G.Pm = G.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 (13): * 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: 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 0.0001041/0.3592, allocations: 130.2 kB / 0.5201 GB, free: 2.828 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.582e-05/0.3592, allocations: 15.48 kB / 0.5201 GB, free: 2.82 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.805e-05/0.3592, allocations: 16.11 kB / 0.5202 GB, free: 2.812 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.3592, allocations: 1.406 kB / 0.5202 GB, free: 2.812 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.3592, allocations: 3.938 kB / 0.5202 GB, free: 2.812 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.3592, allocations: 2.062 kB / 0.5202 GB, free: 2.812 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004965/0.3597, allocations: 433.4 kB / 0.5206 GB, free: 2.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.3597, allocations: 1.219 kB / 0.5206 GB, free: 2.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.412e-05/0.3598, allocations: 21.97 kB / 0.5206 GB, free: 2.426 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001438/0.36, allocations: 35.7 kB / 0.5206 GB, free: 2.414 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.4e-05/0.36, allocations: 5.875 kB / 0.5206 GB, free: 2.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009209/0.3609, allocations: 1.626 MB / 0.5222 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.3609, allocations: 3.312 kB / 0.5222 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002777/0.3612, allocations: 273.8 kB / 0.5225 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.327e-05/0.3612, allocations: 86.53 kB / 0.5226 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.845e-05/0.3612, allocations: 8.234 kB / 0.5226 GB, free: 500 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.457e-05/0.3613, allocations: 1.906 kB / 0.5226 GB, free: 500 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.494e-05/0.3614, allocations: 12.02 kB / 0.5226 GB, free: 496 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.404e-06/0.3614, allocations: 6.312 kB / 0.5226 GB, free: 492 kB / 382.1 MB Notification: Performance of sorting global known variables: time 6.987e-05/0.3614, allocations: 112.8 kB / 0.5227 GB, free: 404 kB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3614, allocations: 0 / 0.5227 GB, free: 404 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003635/0.3618, allocations: 31.28 kB / 0.5227 GB, free: 396 kB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (G.thetap,G.deltag,G.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 (8): * Single equations (assignments): 7 * 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.0006255/0.3624, allocations: 0.8047 MB / 0.5235 GB, free: 15.64 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003808/0.3628, allocations: 195.4 kB / 0.5237 GB, free: 15.5 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.3628, allocations: 0 / 0.5237 GB, free: 15.5 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002121/0.363, allocations: 162.2 kB / 0.5239 GB, free: 15.36 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002742/0.3633, allocations: 13.95 kB / 0.5239 GB, free: 15.36 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00282/0.3661, allocations: 1.962 MB / 0.5258 GB, free: 13.75 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004026/0.3665, allocations: 0.7036 MB / 0.5265 GB, free: 13.05 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.082e-05/0.3666, allocations: 13.91 kB / 0.5265 GB, free: 13.05 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.55e-05/0.3666, allocations: 27.06 kB / 0.5265 GB, free: 13.03 MB / 398.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3666, allocations: 0 / 0.5265 GB, free: 13.03 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03469/0.4013, allocations: 2.986 MB / 0.5294 GB, free: 12.55 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.72/12.12, allocations: 14.05 kB / 0.5294 GB, free: 12.55 MB / 398.1 MB " [Timeout remaining time 648] (rm -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.pipe ; mkfifo AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.pipe ; head -c 1048576 < AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.pipe >> ../files/AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.sim & python3 -m fmpy simulate --output-file AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_fixed_P.fmu > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.935485041933134] Failed to read output from testmodel.py, exit status != 0: 12.213310613995418 12.239517274 11.882672951 Calling exit ...