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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) 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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004878/0.004878, allocations: 102.1 kB / 15.73 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00116/0.00116, allocations: 193.7 kB / 16.67 MB, free: 5.949 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.323/1.323, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1978/0.1978, allocations: 22.35 MB / 312.9 MB, free: 12.48 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00211/0.00211, allocations: 66.67 kB / 434.4 MB, free: 35.45 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1245, allocations: 54.96 MB / 489.4 MB, free: 3.977 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P): time 0.002233/0.1267, allocations: 1.488 MB / 490.9 MB, free: 2.473 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005821/0.1273, allocations: 419.1 kB / 491.3 MB, free: 2.062 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.705e-05/0.1274, allocations: 4 kB / 491.3 MB, free: 2.059 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.863e-05/0.1275, allocations: 3.938 kB / 491.3 MB, free: 2.055 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001783/0.1277, allocations: 15.84 kB / 491.3 MB, free: 2.039 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 5.274e-05/0.1277, allocations: 19.91 kB / 491.4 MB, free: 2.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.35e-05/0.1278, allocations: 67.77 kB / 491.4 MB, free: 1.953 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.777e-05/0.1279, allocations: 4 kB / 491.4 MB, free: 1.949 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001022/0.128, allocations: 39.8 kB / 491.5 MB, free: 1.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.616e-05/0.1281, allocations: 39.83 kB / 491.5 MB, free: 1.871 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.735e-05/0.1282, allocations: 4 kB / 491.5 MB, free: 1.867 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.25e-05/0.1282, allocations: 4 kB / 491.5 MB, free: 1.863 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.838e-05/0.1282, allocations: 11.92 kB / 491.5 MB, free: 1.852 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.185e-05/0.1282, allocations: 31.86 kB / 491.5 MB, free: 1.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.085e-05/0.1283, allocations: 38.62 kB / 491.6 MB, free: 1.785 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1283, allocations: 0 / 491.6 MB, free: 1.785 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1283, allocations: 4 kB / 491.6 MB, free: 1.781 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.601e-06/0.1283, allocations: 0 / 491.6 MB, free: 1.781 MB / 350.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.0004541/0.1288, allocations: 384.1 kB / 492 MB, free: 1.359 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.1288, allocations: 15.97 kB / 492 MB, free: 1.344 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.716e-05/0.1289, allocations: 42.67 kB / 492 MB, free: 1.293 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.803e-05/0.1289, allocations: 8.844 kB / 492 MB, free: 1.285 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001066/0.129, allocations: 184.2 kB / 492.2 MB, free: 1.066 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.217e-05/0.1291, allocations: 8.375 kB / 492.2 MB, free: 1.059 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.207e-05/0.1291, allocations: 8.125 kB / 492.2 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001053/0.1292, allocations: 61.67 kB / 492.3 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.845e-06/0.1292, allocations: 7.938 kB / 492.3 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.247e-06/0.1292, allocations: 3.984 kB / 492.3 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.1292, allocations: 4 kB / 492.3 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.934e-05/0.1293, allocations: 33.42 kB / 492.3 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003983/0.1297, allocations: 312.6 kB / 492.6 MB, free: 0.582 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002272/0.1299, allocations: 86.58 kB / 492.7 MB, free: 500 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.567e-05/0.13, allocations: 32.84 kB / 492.8 MB, free: 464 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.017e-06/0.13, allocations: 4 kB / 492.8 MB, free: 460 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.22e-05/0.13, allocations: 34.56 kB / 492.8 MB, free: 416 kB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.794e-06/0.13, allocations: 0 / 492.8 MB, free: 416 kB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0006015/0.1306, allocations: 386.9 kB / 493.2 MB, free: 15.97 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.265e-05/0.1307, allocations: 55.41 kB / 493.2 MB, free: 15.91 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001076/0.1308, allocations: 130.1 kB / 493.4 MB, free: 15.77 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.552e-05/0.1308, allocations: 29.7 kB / 493.4 MB, free: 15.73 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.204e-05/0.1309, allocations: 100.9 kB / 493.5 MB, free: 15.63 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.72e-05/0.1309, allocations: 35.45 kB / 493.5 MB, free: 15.6 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.755e-05/0.131, allocations: 29.7 kB / 493.5 MB, free: 15.56 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.573e-05/0.1311, allocations: 318.8 kB / 493.9 MB, free: 15.24 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.414e-05/0.1311, allocations: 27.98 kB / 493.9 MB, free: 15.21 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.42e-05/0.1312, allocations: 44.81 kB / 493.9 MB, free: 15.16 MB / 366.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0004117/0.1316, allocations: 226.9 kB / 494.1 MB, free: 14.92 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-06/0.1316, allocations: 0 / 494.1 MB, free: 14.92 MB / 366.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002293/0.1318, allocations: 138.2 kB / 494.3 MB, free: 14.77 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/0.1319, allocations: 4 kB / 494.3 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.1319, allocations: 3.938 kB / 494.3 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001434/0.132, allocations: 36.89 kB / 494.3 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.991e-05/0.1321, allocations: 23.98 kB / 494.4 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001253/0.1334, allocations: 1.572 MB / 495.9 MB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.84e-05/0.1335, allocations: 4.031 kB / 495.9 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.592e-06/0.1335, allocations: 0 / 495.9 MB, free: 12.98 MB / 366.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 0.0001166/0.1336, allocations: 136.9 kB / 496.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.215e-05/0.1336, allocations: 7.891 kB / 496.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.338e-05/0.1337, allocations: 16.38 kB / 496.1 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.073e-06/0.1337, allocations: 0 / 496.1 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.1337, allocations: 0 / 496.1 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.1337, allocations: 3.938 kB / 496.1 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004394/0.1341, allocations: 392 kB / 496.5 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.1342, allocations: 0 / 496.5 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.668e-05/0.1342, allocations: 19.92 kB / 496.5 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001233/0.1344, allocations: 32.83 kB / 496.5 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.325e-05/0.1344, allocations: 7.938 kB / 496.5 MB, free: 12.31 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001119/0.1355, allocations: 1.577 MB / 498.1 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.1355, allocations: 96 / 498.1 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002827/0.1358, allocations: 248.9 kB / 498.4 MB, free: 10.33 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.655e-05/0.1359, allocations: 85.02 kB / 498.4 MB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.554e-05/0.1359, allocations: 11.97 kB / 498.4 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.714e-05/0.136, allocations: 4 kB / 498.4 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.132e-05/0.136, allocations: 8 kB / 498.5 MB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.885e-06/0.136, allocations: 7.984 kB / 498.5 MB, free: 10.2 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.67e-05/0.1361, allocations: 95.27 kB / 498.6 MB, free: 10.1 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1361, allocations: 0 / 498.6 MB, free: 10.1 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003305/0.1365, allocations: 28 kB / 498.6 MB, free: 10.07 MB / 366.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.0005395/0.137, allocations: 0.7803 MB / 499.4 MB, free: 9.262 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003048/0.1373, allocations: 182.5 kB / 499.5 MB, free: 9.07 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1373, allocations: 4 kB / 499.5 MB, free: 9.066 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001532/0.1375, allocations: 138.7 kB / 499.7 MB, free: 8.918 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000259/0.1378, allocations: 11.94 kB / 499.7 MB, free: 8.906 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002031/0.1398, allocations: 1.798 MB / 0.4897 GB, free: 7.004 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000261/0.1401, allocations: 0.6924 MB / 0.4904 GB, free: 6.285 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.797e-05/0.1401, allocations: 12.53 kB / 0.4904 GB, free: 6.273 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.834e-05/0.1402, allocations: 19.44 kB / 0.4904 GB, free: 6.254 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1402, allocations: 0 / 0.4904 GB, free: 6.254 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02328/0.1635, allocations: 2.644 MB / 0.493 GB, free: 3.789 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.27/11.44, allocations: 16.5 kB / 0.493 GB, free: 3.773 MB / 366.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_prescribed_P_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_prescribed_P.fmu > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe 2>&1)