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.005867/0.005867, allocations: 100.9 kB / 15.73 MB, free: 6.48 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.001422/0.001422, allocations: 194.6 kB / 16.67 MB, free: 6.391 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.278/1.278, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2147/0.2147, allocations: 22.36 MB / 312.9 MB, free: 12.51 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001154/0.001154, allocations: 62.91 kB / 434.5 MB, free: 35.36 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09542/0.09658, allocations: 54.95 MB / 489.4 MB, free: 3.863 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P): time 0.001905/0.09852, allocations: 1.488 MB / 490.9 MB, free: 2.359 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004645/0.099, allocations: 407.2 kB / 491.3 MB, free: 1.961 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.337e-05/0.09905, allocations: 0 / 491.3 MB, free: 1.961 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.512e-05/0.09909, allocations: 11.86 kB / 491.3 MB, free: 1.949 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001518/0.09926, allocations: 23.84 kB / 491.3 MB, free: 1.926 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.983e-05/0.09931, allocations: 11.98 kB / 491.4 MB, free: 1.914 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.947e-05/0.09939, allocations: 67.64 kB / 491.4 MB, free: 1.848 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.292e-05/0.09945, allocations: 8 kB / 491.4 MB, free: 1.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.186e-05/0.09954, allocations: 35.91 kB / 491.5 MB, free: 1.805 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.065e-05/0.09963, allocations: 43.83 kB / 491.5 MB, free: 1.762 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.575e-05/0.09965, allocations: 7.938 kB / 491.5 MB, free: 1.754 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.07e-05/0.09967, allocations: 4 kB / 491.5 MB, free: 1.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.814e-05/0.09969, allocations: 7.938 kB / 491.5 MB, free: 1.742 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.597e-05/0.09973, allocations: 31.84 kB / 491.6 MB, free: 1.711 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 7.71e-05/0.09981, allocations: 38.64 kB / 491.6 MB, free: 1.676 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.896e-06/0.09982, allocations: 0 / 491.6 MB, free: 1.676 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.09983, allocations: 0 / 491.6 MB, free: 1.676 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.109e-06/0.09984, allocations: 0 / 491.6 MB, free: 1.676 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.0004385/0.1003, allocations: 388.1 kB / 492 MB, free: 1.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.58e-05/0.1003, allocations: 8.031 kB / 492 MB, free: 1.242 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.191e-05/0.1004, allocations: 42.73 kB / 492 MB, free: 1.191 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.74e-05/0.1004, allocations: 8.844 kB / 492 MB, free: 1.184 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001186/0.1005, allocations: 196 kB / 492.2 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.133e-05/0.1006, allocations: 4.359 kB / 492.2 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.008e-05/0.1006, allocations: 12.12 kB / 492.2 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001/0.1007, allocations: 64.42 kB / 492.3 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.863e-06/0.1007, allocations: 4 kB / 492.3 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.758e-06/0.1007, allocations: 7.938 kB / 492.3 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.1007, allocations: 4 kB / 492.3 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.522e-05/0.1008, allocations: 27.98 kB / 492.3 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003947/0.1012, allocations: 312.6 kB / 492.6 MB, free: 484 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002064/0.1014, allocations: 90.53 kB / 492.7 MB, free: 384 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.406e-05/0.1015, allocations: 36.92 kB / 492.8 MB, free: 344 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.117e-06/0.1015, allocations: 4.188 kB / 492.8 MB, free: 340 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.163e-05/0.1015, allocations: 34.5 kB / 492.8 MB, free: 296 kB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.242e-06/0.1015, allocations: 0 / 492.8 MB, free: 296 kB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0006301/0.1021, allocations: 386.9 kB / 493.2 MB, free: 15.85 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.034e-05/0.1022, allocations: 51.41 kB / 493.2 MB, free: 15.79 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001091/0.1023, allocations: 130.1 kB / 493.4 MB, free: 15.65 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.686e-05/0.1023, allocations: 29.7 kB / 493.4 MB, free: 15.61 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.168e-05/0.1024, allocations: 96.12 kB / 493.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.818e-05/0.1024, allocations: 43.45 kB / 493.5 MB, free: 15.47 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.382e-05/0.1025, allocations: 29.7 kB / 493.6 MB, free: 15.44 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001074/0.1026, allocations: 318.8 kB / 493.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.292e-05/0.1026, allocations: 27.94 kB / 493.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.302e-05/0.1027, allocations: 42.56 kB / 493.9 MB, free: 15.04 MB / 366.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0004099/0.1031, allocations: 232.5 kB / 494.2 MB, free: 14.79 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.62e-07/0.1031, allocations: 0.75 kB / 494.2 MB, free: 14.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002152/0.1033, allocations: 134.3 kB / 494.3 MB, free: 14.65 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/0.1034, allocations: 7.984 kB / 494.3 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-06/0.1034, allocations: 0 / 494.3 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001423/0.1035, allocations: 32.91 kB / 494.3 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.601e-05/0.1036, allocations: 27.92 kB / 494.4 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001186/0.1048, allocations: 1.57 MB / 495.9 MB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.249e-05/0.1049, allocations: 4 kB / 495.9 MB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.584e-05/0.1049, allocations: 4.031 kB / 495.9 MB, free: 12.86 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.0001089/0.105, allocations: 129.8 kB / 496.1 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.953e-05/0.105, allocations: 11.84 kB / 496.1 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.491e-05/0.1051, allocations: 20.45 kB / 496.1 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.1051, allocations: 0 / 496.1 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.535e-06/0.1051, allocations: 4 kB / 496.1 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.1051, allocations: 0 / 496.1 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004096/0.1055, allocations: 388 kB / 496.5 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.1055, allocations: 0 / 496.5 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.837e-05/0.1056, allocations: 15.98 kB / 496.5 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001076/0.1057, allocations: 32.83 kB / 496.5 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.452e-05/0.1057, allocations: 11.94 kB / 496.5 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001118/0.1069, allocations: 1.569 MB / 498.1 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.1069, allocations: 8.062 kB / 498.1 MB, free: 10.47 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002544/0.1071, allocations: 240.9 kB / 498.4 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.296e-05/0.1072, allocations: 89.05 kB / 498.4 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.314e-05/0.1072, allocations: 0 / 498.4 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.486e-05/0.1073, allocations: 4 kB / 498.4 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.64e-05/0.1073, allocations: 12.17 kB / 498.5 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.953e-06/0.1073, allocations: 4 kB / 498.5 MB, free: 10.09 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.954e-05/0.1074, allocations: 103.2 kB / 498.6 MB, free: 9.988 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1074, allocations: 0 / 498.6 MB, free: 9.988 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000313/0.1077, allocations: 24 kB / 498.6 MB, free: 9.965 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.000511/0.1083, allocations: 0.7884 MB / 499.4 MB, free: 9.145 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002823/0.1086, allocations: 178.6 kB / 499.6 MB, free: 8.957 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.1086, allocations: 0 / 499.6 MB, free: 8.957 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001458/0.1087, allocations: 150.6 kB / 499.7 MB, free: 8.797 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002204/0.109, allocations: 12.12 kB / 499.7 MB, free: 8.785 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001895/0.1109, allocations: 1.796 MB / 0.4898 GB, free: 6.883 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002432/0.1111, allocations: 0.6924 MB / 0.4904 GB, free: 6.164 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.269e-05/0.1111, allocations: 8.547 kB / 0.4904 GB, free: 6.156 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.582e-05/0.1112, allocations: 27.42 kB / 0.4905 GB, free: 6.129 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1112, allocations: 0 / 0.4905 GB, free: 6.129 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02082/0.132, allocations: 2.555 MB / 0.493 GB, free: 3.754 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.47, allocations: 12.5 kB / 0.493 GB, free: 3.742 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)