Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_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.001393/0.001393, allocations: 103.9 kB / 16.45 MB, free: 6.449 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.001453/0.001453, allocations: 212.9 kB / 19.43 MB, free: 3.637 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.48/1.48, allocations: 230.6 MB / 252.8 MB, free: 9.137 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.1105/0.1105, allocations: 24.11 MB / 333 MB, free: 12.63 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_prescribed_P,fileNamePrefix="AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_prescribed_P",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P,fileNamePrefix="AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_prescribed_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.002368/0.002368, allocations: 75.89 kB / 465.7 MB, free: 11.18 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3296/0.332, allocations: 59.57 MB / 0.513 GB, free: 8.398 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P): time 0.002615/0.3346, allocations: 1.488 MB / 0.5144 GB, free: 7.746 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006773/0.3353, allocations: 460.3 kB / 0.5149 GB, free: 7.441 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.3e-05/0.3353, allocations: 5.219 kB / 0.5149 GB, free: 7.441 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.878e-05/0.3354, allocations: 6.234 kB / 0.5149 GB, free: 7.438 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001556/0.3355, allocations: 20.23 kB / 0.5149 GB, free: 7.426 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.691e-05/0.3356, allocations: 14.95 kB / 0.5149 GB, free: 7.418 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 9.488e-05/0.3357, allocations: 72.12 kB / 0.515 GB, free: 7.387 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.422e-05/0.3357, allocations: 9.141 kB / 0.515 GB, free: 7.387 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001511/0.3359, allocations: 39.23 kB / 0.515 GB, free: 7.371 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.306e-05/0.336, allocations: 43.52 kB / 0.5151 GB, free: 7.352 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.482e-05/0.336, allocations: 3.594 kB / 0.5151 GB, free: 7.352 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.326e-05/0.336, allocations: 2.656 kB / 0.5151 GB, free: 7.352 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.77e-05/0.336, allocations: 14.38 kB / 0.5151 GB, free: 7.344 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.713e-05/0.3361, allocations: 29.56 kB / 0.5151 GB, free: 7.328 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 9.582e-05/0.3362, allocations: 46.06 kB / 0.5152 GB, free: 7.309 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.3362, allocations: 0.8438 kB / 0.5152 GB, free: 7.309 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.3362, allocations: 0 / 0.5152 GB, free: 7.309 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.789e-06/0.3362, allocations: 0 / 0.5152 GB, free: 7.309 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0004471/0.3366, allocations: 382.9 kB / 0.5155 GB, free: 6.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/0.3366, allocations: 10.25 kB / 0.5156 GB, free: 6.93 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.974e-05/0.3367, allocations: 42.33 kB / 0.5156 GB, free: 6.883 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.896e-05/0.3367, allocations: 12.86 kB / 0.5156 GB, free: 6.875 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001425/0.3369, allocations: 183.4 kB / 0.5158 GB, free: 6.668 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.186e-05/0.3369, allocations: 2.969 kB / 0.5158 GB, free: 6.668 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.236e-05/0.3369, allocations: 19.42 kB / 0.5158 GB, free: 6.656 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001089/0.337, allocations: 63.02 kB / 0.5159 GB, free: 6.613 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.554e-06/0.337, allocations: 0 / 0.5159 GB, free: 6.613 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.099e-05/0.3371, allocations: 5.312 kB / 0.5159 GB, free: 6.609 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.3371, allocations: 1.688 kB / 0.5159 GB, free: 6.609 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.682e-05/0.3371, allocations: 33.59 kB / 0.5159 GB, free: 6.598 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004088/0.3375, allocations: 316.6 kB / 0.5162 GB, free: 6.301 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002338/0.3378, allocations: 84.14 kB / 0.5163 GB, free: 6.254 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.561e-05/0.3378, allocations: 31.25 kB / 0.5163 GB, free: 6.238 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.758e-06/0.3378, allocations: 1.438 kB / 0.5163 GB, free: 6.238 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.71e-05/0.3378, allocations: 33.28 kB / 0.5163 GB, free: 6.199 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.132e-06/0.3378, allocations: 0 / 0.5163 GB, free: 6.199 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0006233/0.3385, allocations: 391.4 kB / 0.5167 GB, free: 5.871 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.749e-05/0.3385, allocations: 56.56 kB / 0.5168 GB, free: 5.805 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.741e-05/0.3386, allocations: 130.7 kB / 0.5169 GB, free: 5.691 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.057e-06/0.3386, allocations: 26.95 kB / 0.5169 GB, free: 5.66 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.232e-05/0.3386, allocations: 105.6 kB / 0.517 GB, free: 5.559 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.133e-05/0.3386, allocations: 41.22 kB / 0.5171 GB, free: 5.527 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.871e-05/0.3387, allocations: 28.31 kB / 0.5171 GB, free: 5.504 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.238e-05/0.3387, allocations: 324.1 kB / 0.5174 GB, free: 5.184 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.001e-05/0.3388, allocations: 18.42 kB / 0.5174 GB, free: 5.18 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.189e-05/0.3388, allocations: 45.92 kB / 0.5175 GB, free: 5.148 MB / 382.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0003952/0.3392, allocations: 222.6 kB / 0.5177 GB, free: 4.988 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/0.3392, allocations: 1.344 kB / 0.5177 GB, free: 4.988 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002235/0.3394, allocations: 138.4 kB / 0.5178 GB, free: 4.91 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.545e-05/0.3394, allocations: 8.781 kB / 0.5178 GB, free: 4.906 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.3395, allocations: 1.594 kB / 0.5178 GB, free: 4.906 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001478/0.3396, allocations: 40.59 kB / 0.5179 GB, free: 4.887 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.356e-05/0.3397, allocations: 21.3 kB / 0.5179 GB, free: 4.887 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009698/0.3407, allocations: 1.575 MB / 0.5194 GB, free: 3.312 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.954e-05/0.3407, allocations: 1.844 kB / 0.5194 GB, free: 3.312 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.248e-06/0.3407, allocations: 7.969 kB / 0.5194 GB, free: 3.309 MB / 382.1 MB Warning: Assuming fixed start value for the following 1 variables: 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: Pm = 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 (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 prepare postOptimizeDAE: time 7.95e-05/0.3408, allocations: 124.9 kB / 0.5195 GB, free: 3.184 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.172e-05/0.3409, allocations: 7.641 kB / 0.5196 GB, free: 3.18 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.032e-05/0.3409, allocations: 10.69 kB / 0.5196 GB, free: 3.176 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.3409, allocations: 2.016 kB / 0.5196 GB, free: 3.176 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.544e-06/0.3409, allocations: 0.8125 kB / 0.5196 GB, free: 3.176 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.3409, allocations: 6.562 kB / 0.5196 GB, free: 3.172 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003664/0.3412, allocations: 389 kB / 0.5199 GB, free: 2.812 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.3413, allocations: 1.469 kB / 0.5199 GB, free: 2.812 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.271e-05/0.3413, allocations: 18.2 kB / 0.52 GB, free: 2.809 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001148/0.3415, allocations: 35.53 kB / 0.52 GB, free: 2.797 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.134e-05/0.3415, allocations: 7.031 kB / 0.52 GB, free: 2.793 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007643/0.3422, allocations: 1.583 MB / 0.5215 GB, free: 1.207 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.3422, allocations: 1.969 kB / 0.5215 GB, free: 1.207 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000225/0.3425, allocations: 244.2 kB / 0.5218 GB, free: 1.016 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.566e-05/0.3425, allocations: 89.33 kB / 0.5219 GB, free: 0.918 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.36e-05/0.3425, allocations: 0.9062 kB / 0.5219 GB, free: 0.918 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.957e-05/0.3426, allocations: 5.969 kB / 0.5219 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.259e-05/0.3426, allocations: 14.97 kB / 0.5219 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.301e-06/0.3426, allocations: 7.328 kB / 0.5219 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.64e-05/0.3427, allocations: 100.3 kB / 0.522 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3427, allocations: 0 / 0.522 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003339/0.343, allocations: 21.59 kB / 0.522 GB, free: 0.8203 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (thetap,deltag,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 (7): * Single equations (assignments): 6 * 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.0003608/0.3434, allocations: 0.7791 MB / 0.5228 GB, free: 104 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002983/0.3437, allocations: 177.8 kB / 0.5229 GB, free: 15.97 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3437, allocations: 0 / 0.5229 GB, free: 15.97 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001772/0.3438, allocations: 148.1 kB / 0.5231 GB, free: 15.84 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002351/0.3441, allocations: 16.94 kB / 0.5231 GB, free: 15.83 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002214/0.3463, allocations: 1.786 MB / 0.5248 GB, free: 14.32 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003794/0.3467, allocations: 0.7005 MB / 0.5255 GB, free: 13.62 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.932e-05/0.3467, allocations: 7.656 kB / 0.5255 GB, free: 13.62 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.564e-05/0.3468, allocations: 25.28 kB / 0.5256 GB, free: 13.6 MB / 398.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3468, allocations: 0 / 0.5256 GB, free: 13.6 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03236/0.3791, allocations: 2.595 MB / 0.5281 GB, free: 13.18 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.92/12.3, allocations: 19.88 kB / 0.5281 GB, free: 13.16 MB / 398.1 MB " [Timeout remaining time 648] (rm -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe ; mkfifo AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe ; head -c 1048576 < AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe >> ../files/AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.sim & python3 -m fmpy simulate --output-file AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_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_prescribed_P.fmu > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.002881922991946] Failed to read output from testmodel.py, exit status != 0: 12.39177945908159 12.417288158 12.076494772 Calling exit ...