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.005049/0.005049, allocations: 102.6 kB / 15.74 MB, free: 6.5 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.001351/0.001351, allocations: 196.8 kB / 16.68 MB, free: 6.375 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.339/1.339, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.193/0.193, allocations: 22.35 MB / 312.9 MB, free: 12.49 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001947/0.001947, allocations: 64.55 kB / 434.5 MB, free: 35.34 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08803/0.08999, allocations: 54.97 MB / 489.4 MB, free: 3.844 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P): time 0.00193/0.09196, allocations: 1.484 MB / 490.9 MB, free: 2.344 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005088/0.09249, allocations: 411.2 kB / 491.3 MB, free: 1.941 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.292e-05/0.09254, allocations: 4 kB / 491.3 MB, free: 1.938 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.941e-05/0.09259, allocations: 11.86 kB / 491.3 MB, free: 1.926 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001518/0.09275, allocations: 15.84 kB / 491.3 MB, free: 1.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.069e-05/0.0928, allocations: 11.98 kB / 491.4 MB, free: 1.898 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.443e-05/0.09288, allocations: 75.69 kB / 491.4 MB, free: 1.824 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.377e-05/0.09295, allocations: 8.281 kB / 491.4 MB, free: 1.816 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.35e-05/0.09304, allocations: 31.86 kB / 491.5 MB, free: 1.785 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.851e-05/0.09313, allocations: 35.83 kB / 491.5 MB, free: 1.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.252e-05/0.09315, allocations: 4 kB / 491.5 MB, free: 1.746 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.359e-05/0.09317, allocations: 7.938 kB / 491.5 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.96e-05/0.0932, allocations: 11.92 kB / 491.5 MB, free: 1.727 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.278e-05/0.09323, allocations: 31.86 kB / 491.6 MB, free: 1.695 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.245e-05/0.09332, allocations: 43.69 kB / 491.6 MB, free: 1.652 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.09333, allocations: 4 kB / 491.6 MB, free: 1.648 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.09334, allocations: 0 / 491.6 MB, free: 1.648 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.9e-06/0.09335, allocations: 8 kB / 491.6 MB, free: 1.641 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.0004299/0.09378, allocations: 375.2 kB / 492 MB, free: 1.227 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.24e-05/0.09382, allocations: 12.03 kB / 492 MB, free: 1.215 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.869e-05/0.09387, allocations: 38.73 kB / 492 MB, free: 1.168 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.587e-05/0.09391, allocations: 8.891 kB / 492 MB, free: 1.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.82e-05/0.09401, allocations: 180.2 kB / 492.2 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.265e-05/0.09403, allocations: 4.375 kB / 492.2 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.77e-05/0.09405, allocations: 24.05 kB / 492.2 MB, free: 0.918 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.354e-05/0.09415, allocations: 61.67 kB / 492.3 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.376e-06/0.09416, allocations: 4 kB / 492.3 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.734e-06/0.09418, allocations: 0 / 492.3 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.528e-06/0.09419, allocations: 0 / 492.3 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.621e-05/0.09425, allocations: 31.98 kB / 492.3 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003597/0.09461, allocations: 316.6 kB / 492.6 MB, free: 468 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002032/0.09483, allocations: 82.55 kB / 492.7 MB, free: 376 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.319e-05/0.09488, allocations: 32.94 kB / 492.8 MB, free: 340 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.333e-05/0.0949, allocations: 4.188 kB / 492.8 MB, free: 336 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.107e-05/0.09491, allocations: 38.5 kB / 492.8 MB, free: 288 kB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.142e-06/0.09492, allocations: 0 / 492.8 MB, free: 288 kB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0006087/0.09553, allocations: 394.8 kB / 493.2 MB, free: 15.84 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.71e-05/0.09559, allocations: 55.41 kB / 493.2 MB, free: 15.77 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00011/0.09571, allocations: 127.9 kB / 493.4 MB, free: 15.64 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.825e-05/0.09573, allocations: 29.7 kB / 493.4 MB, free: 15.6 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.164e-05/0.0958, allocations: 104.2 kB / 493.5 MB, free: 15.5 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.739e-05/0.09583, allocations: 35.69 kB / 493.5 MB, free: 15.46 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.614e-05/0.09588, allocations: 29.7 kB / 493.6 MB, free: 15.43 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.09602, allocations: 326.8 kB / 493.9 MB, free: 15.1 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.462e-05/0.09607, allocations: 20 kB / 493.9 MB, free: 15.08 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.029e-05/0.09613, allocations: 48.75 kB / 493.9 MB, free: 15.02 MB / 366.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0004317/0.09657, allocations: 222.3 kB / 494.2 MB, free: 14.78 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.92e-07/0.09658, allocations: 0 / 494.2 MB, free: 14.78 MB / 366.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002175/0.0968, allocations: 134.5 kB / 494.3 MB, free: 14.64 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/0.09683, allocations: 8.047 kB / 494.3 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.987e-06/0.09684, allocations: 4 kB / 494.3 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001363/0.09698, allocations: 28.84 kB / 494.3 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.877e-05/0.09708, allocations: 27.92 kB / 494.4 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001334/0.09842, allocations: 1.576 MB / 495.9 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.217e-05/0.09849, allocations: 32 / 495.9 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.642e-06/0.09851, allocations: 4 kB / 495.9 MB, free: 12.85 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.0001137/0.09863, allocations: 141.7 kB / 496.1 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.638e-05/0.09867, allocations: 7.953 kB / 496.1 MB, free: 12.69 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.523e-05/0.0987, allocations: 16.38 kB / 496.1 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.0987, allocations: 3.938 kB / 496.1 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.152e-06/0.09871, allocations: 0 / 496.1 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.09872, allocations: 0 / 496.1 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000449/0.09917, allocations: 388.1 kB / 496.5 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.09918, allocations: 0 / 496.5 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.917e-05/0.09927, allocations: 15.98 kB / 496.5 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001192/0.09939, allocations: 32.83 kB / 496.5 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.193e-05/0.09941, allocations: 7.938 kB / 496.5 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001175/0.1006, allocations: 1.584 MB / 498.1 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/0.1006, allocations: 3.984 kB / 498.1 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002709/0.1009, allocations: 243.2 kB / 498.4 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.423e-05/0.101, allocations: 93.09 kB / 498.5 MB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.29e-05/0.101, allocations: 0 / 498.5 MB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.5e-05/0.1011, allocations: 8.062 kB / 498.5 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.943e-05/0.1011, allocations: 3.984 kB / 498.5 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.643e-06/0.1011, allocations: 8 kB / 498.5 MB, free: 10.06 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.847e-05/0.1012, allocations: 95.27 kB / 498.6 MB, free: 9.965 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1012, allocations: 0 / 498.6 MB, free: 9.965 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003181/0.1015, allocations: 28 kB / 498.6 MB, free: 9.938 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.0005567/0.1021, allocations: 0.7805 MB / 499.4 MB, free: 9.125 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002921/0.1024, allocations: 178.6 kB / 499.6 MB, free: 8.938 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.594e-06/0.1024, allocations: 4 kB / 499.6 MB, free: 8.934 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001559/0.1025, allocations: 150.8 kB / 499.7 MB, free: 8.773 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000228/0.1028, allocations: 12.88 kB / 499.7 MB, free: 8.762 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001989/0.1048, allocations: 1.8 MB / 0.4898 GB, free: 6.855 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002925/0.1051, allocations: 0.6924 MB / 0.4904 GB, free: 6.137 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.733e-05/0.1051, allocations: 12.53 kB / 0.4905 GB, free: 6.125 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.559e-05/0.1052, allocations: 19.44 kB / 0.4905 GB, free: 6.105 MB / 366.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1052, allocations: 0 / 0.4905 GB, free: 6.105 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.295/0.4002, allocations: 2.592 MB / 0.493 GB, free: 3.695 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.39/11.79, allocations: 8.438 kB / 0.493 GB, free: 3.688 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)