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.0009825/0.0009825, allocations: 80.44 kB / 19.95 MB, free: 4.617 MB / 18.57 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.0008693/0.0008693, allocations: 165.2 kB / 23.23 MB, free: 1.332 MB / 18.57 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 0.8649/0.8649, allocations: 177.1 MB / 203.5 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] 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.06143/0.06143, allocations: 18.13 MB / 278.1 MB, free: 11.55 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.513e-06/1.513e-06, allocations: 0 / 412.7 MB, free: 13.24 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.907e-05/2.058e-05, allocations: 2.281 kB / 412.7 MB, free: 13.23 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P): time 0.001641/0.001662, allocations: 1.469 MB / 414.2 MB, free: 12.81 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005254/0.002187, allocations: 430.8 kB / 414.6 MB, free: 12.62 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.159e-05/0.002229, allocations: 0 / 414.6 MB, free: 12.62 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 3.603e-05/0.002265, allocations: 5.297 kB / 414.6 MB, free: 12.61 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001602/0.002425, allocations: 24.77 kB / 414.6 MB, free: 12.6 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 3.857e-05/0.002464, allocations: 17.64 kB / 414.6 MB, free: 12.59 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 8.256e-05/0.002546, allocations: 71.73 kB / 414.7 MB, free: 12.57 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.379e-05/0.00261, allocations: 4.953 kB / 414.7 MB, free: 12.57 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001554/0.002765, allocations: 42.23 kB / 414.7 MB, free: 12.56 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.679e-05/0.002842, allocations: 27.27 kB / 414.8 MB, free: 12.55 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 1.695e-05/0.002859, allocations: 4.469 kB / 414.8 MB, free: 12.55 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.084e-05/0.00287, allocations: 3.344 kB / 414.8 MB, free: 12.55 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 1.553e-05/0.002886, allocations: 12.31 kB / 414.8 MB, free: 12.55 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 2.767e-05/0.002913, allocations: 21.52 kB / 414.8 MB, free: 12.54 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 8.785e-05/0.003001, allocations: 45.56 kB / 414.9 MB, free: 12.53 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.347e-06/0.003004, allocations: 1.281 kB / 414.9 MB, free: 12.53 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.003006, allocations: 0 / 414.9 MB, free: 12.53 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.198e-06/0.00301, allocations: 0 / 414.9 MB, free: 12.53 MB / 330.7 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.000351/0.003361, allocations: 304.4 kB / 415.2 MB, free: 12.25 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.003399, allocations: 10.8 kB / 415.2 MB, free: 12.25 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.696e-05/0.003446, allocations: 41.22 kB / 415.2 MB, free: 12.21 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.271e-05/0.003469, allocations: 9.422 kB / 415.2 MB, free: 12.21 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.455e-05/0.003553, allocations: 126.4 kB / 415.3 MB, free: 12.07 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.036e-05/0.003564, allocations: 11.38 kB / 415.3 MB, free: 12.07 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.658e-05/0.00358, allocations: 9.109 kB / 415.4 MB, free: 12.06 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.418e-05/0.003665, allocations: 65 kB / 415.4 MB, free: 12.03 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.314e-06/0.003672, allocations: 4.969 kB / 415.4 MB, free: 12.02 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.796e-06/0.003681, allocations: 3.312 kB / 415.4 MB, free: 12.02 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.028e-06/0.003685, allocations: 1.562 kB / 415.4 MB, free: 12.02 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.948e-05/0.003734, allocations: 29.7 kB / 415.5 MB, free: 12.02 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003285/0.004063, allocations: 274.8 kB / 415.7 MB, free: 11.79 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001788/0.004241, allocations: 89.64 kB / 415.8 MB, free: 11.75 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.895e-05/0.00428, allocations: 33.86 kB / 415.8 MB, free: 11.75 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.035e-05/0.004291, allocations: 3.719 kB / 415.9 MB, free: 11.75 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.059e-05/0.004301, allocations: 32.75 kB / 415.9 MB, free: 11.71 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 1.103e-06/0.004302, allocations: 0 / 415.9 MB, free: 11.71 MB / 330.7 MB Notification: Performance of matching and sorting (n=10): time 0.0004762/0.004779, allocations: 313 kB / 416.2 MB, free: 11.5 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.049e-05/0.004799, allocations: 54.25 kB / 416.2 MB, free: 11.44 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.943e-05/0.004869, allocations: 137.4 kB / 416.4 MB, free: 11.32 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.482e-06/0.004875, allocations: 29.7 kB / 416.4 MB, free: 11.28 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.676e-05/0.004902, allocations: 98.06 kB / 416.5 MB, free: 11.19 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.76e-05/0.004919, allocations: 42.7 kB / 416.5 MB, free: 11.15 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.239e-05/0.004952, allocations: 30.09 kB / 416.6 MB, free: 11.13 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 2.741e-05/0.004979, allocations: 319.3 kB / 416.9 MB, free: 10.81 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.534e-05/0.005015, allocations: 20.31 kB / 416.9 MB, free: 10.81 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.156e-05/0.005056, allocations: 44.41 kB / 416.9 MB, free: 10.78 MB / 330.7 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.000263/0.005319, allocations: 148 kB / 417.1 MB, free: 10.71 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.005322, allocations: 2.125 kB / 417.1 MB, free: 10.71 MB / 330.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001474/0.005469, allocations: 140.1 kB / 417.2 MB, free: 10.63 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.373e-05/0.005483, allocations: 5.5 kB / 417.2 MB, free: 10.63 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.005488, allocations: 1.375 kB / 417.2 MB, free: 10.63 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001086/0.005596, allocations: 35.12 kB / 417.3 MB, free: 10.61 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.644e-05/0.005653, allocations: 22.3 kB / 417.3 MB, free: 10.61 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006988/0.006352, allocations: 1.467 MB / 418.8 MB, free: 9.18 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.804e-05/0.00639, allocations: 6.844 kB / 418.8 MB, free: 9.176 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.012e-06/0.006396, allocations: 2.75 kB / 418.8 MB, free: 9.176 MB / 330.7 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 6.479e-05/0.006461, allocations: 124.3 kB / 418.9 MB, free: 9.051 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.635e-05/0.006477, allocations: 15.14 kB / 418.9 MB, free: 9.039 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.433e-05/0.006491, allocations: 14.84 kB / 418.9 MB, free: 9.023 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.006492, allocations: 1.375 kB / 418.9 MB, free: 9.023 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.212e-06/0.006494, allocations: 2.312 kB / 418.9 MB, free: 9.023 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.006497, allocations: 0 / 418.9 MB, free: 9.023 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002467/0.006743, allocations: 357 kB / 419.3 MB, free: 8.699 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.006745, allocations: 1.375 kB / 419.3 MB, free: 8.699 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-05/0.006795, allocations: 15.19 kB / 419.3 MB, free: 8.699 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.339e-05/0.006868, allocations: 35.02 kB / 419.3 MB, free: 8.688 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.426e-06/0.006877, allocations: 3.031 kB / 419.3 MB, free: 8.688 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004711/0.007348, allocations: 1.48 MB / 420.8 MB, free: 7.242 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.007349, allocations: 1.375 kB / 420.8 MB, free: 7.242 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000147/0.007496, allocations: 237.8 kB / 421 MB, free: 7.059 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.057e-06/0.007505, allocations: 7.094 kB / 421 MB, free: 7.055 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.967e-06/0.007514, allocations: 10.67 kB / 421.1 MB, free: 7.047 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.722e-05/0.007561, allocations: 1.891 kB / 421.1 MB, free: 7.047 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.902e-05/0.00758, allocations: 7.547 kB / 421.1 MB, free: 7.047 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.789e-06/0.007585, allocations: 3.281 kB / 421.1 MB, free: 7.047 MB / 330.7 MB Notification: Performance of sorting global known variables: time 3.292e-05/0.007618, allocations: 104 kB / 421.2 MB, free: 6.961 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007618, allocations: 1.25 kB / 421.2 MB, free: 6.961 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002179/0.007836, allocations: 24.56 kB / 421.2 MB, free: 6.957 MB / 330.7 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.000256/0.008092, allocations: 0.7852 MB / 422 MB, free: 6.234 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002053/0.008297, allocations: 178.4 kB / 422.2 MB, free: 6.102 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.008299, allocations: 0 / 422.2 MB, free: 6.102 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.557e-05/0.008374, allocations: 155.3 kB / 422.3 MB, free: 5.969 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001686/0.008543, allocations: 8.203 kB / 422.3 MB, free: 5.965 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001068/0.009611, allocations: 1.724 MB / 424 MB, free: 4.5 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.828e-05/0.00966, allocations: 85.42 kB / 424.1 MB, free: 4.426 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 2.518e-05/0.009685, allocations: 6.969 kB / 424.1 MB, free: 4.426 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.696e-05/0.009722, allocations: 27.08 kB / 424.2 MB, free: 4.406 MB / 330.7 MB Notification: Performance of SimCode: time 6.01e-07/0.009722, allocations: 4 kB / 424.2 MB, free: 4.402 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01648/0.02621, allocations: 3.135 MB / 427.3 MB, free: 3.402 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.931/7.958, allocations: 6.328 kB / 427.3 MB, free: 3.398 MB / 330.7 MB " [Timeout remaining time 652] (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: 9.949429590255022] Failed to read output from testmodel.py, exit status != 0: 8.199818097054958 8.063472481 8.058371261 Calling exit ...