Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI.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/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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(PowerSystems.Examples.Wind.WindTurbine_PSGI,fileNamePrefix="PowerSystems_PowerSystems_Examples_Wind_WindTurbine_PSGI",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Wind.WindTurbine_PSGI,fileNamePrefix="PowerSystems_PowerSystems_Examples_Wind_WindTurbine_PSGI",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.001603/0.001603, allocations: 110.2 kB / 17.06 MB, free: 5.785 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.001724/0.001724, allocations: 193.4 kB / 18.01 MB, free: 4.941 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.396/1.396, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1831/0.1831, allocations: 38.04 MB / 329.9 MB, free: 8.723 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001926/0.001926, allocations: 63.91 kB / 457.6 MB, free: 7.383 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2887/0.2906, allocations: 58.06 MB / 0.5036 GB, free: 7.426 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGI): time 0.009477/0.3002, allocations: 11.03 MB / 0.5144 GB, free: 15.68 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01174/0.3119, allocations: 7.072 MB / 0.5213 GB, free: 10.71 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001046/0.313, allocations: 48.41 kB / 0.5213 GB, free: 10.69 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02159/0.3346, allocations: 12.87 MB / 0.5339 GB, free: 6.195 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003213/0.3379, allocations: 1.116 MB / 0.535 GB, free: 5.305 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002067/0.34, allocations: 0.6925 MB / 0.5357 GB, free: 4.773 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005871/0.3458, allocations: 4.011 MB / 0.5396 GB, free: 2.68 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001591/0.3475, allocations: 0.9987 MB / 0.5406 GB, free: 2.109 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001992/0.3495, allocations: 1.12 MB / 0.5417 GB, free: 1.465 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00242/0.3519, allocations: 1.434 MB / 0.5431 GB, free: 276 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004367/0.3524, allocations: 152 kB / 0.5432 GB, free: 124 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001391/0.3538, allocations: 0.511 MB / 0.5437 GB, free: 15.61 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001111/0.3549, allocations: 0.9118 MB / 0.5446 GB, free: 14.7 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001508/0.3564, allocations: 0.9834 MB / 0.5456 GB, free: 13.71 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003358/0.3598, allocations: 2.565 MB / 0.5481 GB, free: 11.13 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.3598, allocations: 0 / 0.5481 GB, free: 11.13 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.3598, allocations: 4 kB / 0.5481 GB, free: 11.13 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.101e-05/0.3599, allocations: 0 / 0.5481 GB, free: 11.13 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 409 * Number of variables: 409 Notification: Performance of Generate backend data structure: time 0.00502/0.3649, allocations: 2.273 MB / 0.5503 GB, free: 8.793 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/0.365, allocations: 15.89 kB / 0.5503 GB, free: 8.777 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003519/0.3653, allocations: 232.5 kB / 0.5505 GB, free: 8.539 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001876/0.3672, allocations: 347.1 kB / 0.5509 GB, free: 8.199 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002831/0.3701, allocations: 1.343 MB / 0.5522 GB, free: 6.812 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.873e-05/0.3702, allocations: 106.7 kB / 0.5523 GB, free: 6.707 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006018/0.3708, allocations: 235.8 kB / 0.5525 GB, free: 6.477 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003635/0.3744, allocations: 2.192 MB / 0.5546 GB, free: 4.18 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.753e-05/0.3745, allocations: 7.953 kB / 0.5546 GB, free: 4.172 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001653/0.3747, allocations: 59.98 kB / 0.5547 GB, free: 4.113 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000652/0.3753, allocations: 186.8 kB / 0.5549 GB, free: 3.93 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003371/0.3787, allocations: 1.834 MB / 0.5567 GB, free: 2.09 MB / 414.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01356/0.3923, allocations: 8.554 MB / 0.565 GB, free: 9.117 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002897/0.3952, allocations: 1.893 MB / 0.5669 GB, free: 7.094 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001488/0.3967, allocations: 0.7927 MB / 0.5676 GB, free: 6.301 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.344e-05/0.3968, allocations: 21.38 kB / 0.5677 GB, free: 6.281 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.808e-05/0.3969, allocations: 47.86 kB / 0.5677 GB, free: 6.227 MB / 430.1 MB Notification: Performance of pre-optimization done (n=130): time 3.436e-06/0.3969, allocations: 0 / 0.5677 GB, free: 6.227 MB / 430.1 MB Notification: Performance of matching and sorting (n=165): time 0.025/0.4219, allocations: 9.263 MB / 0.5768 GB, free: 12.73 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.127e-05/0.422, allocations: 94.42 kB / 0.5768 GB, free: 12.62 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001596/0.4236, allocations: 1.071 MB / 0.5779 GB, free: 11.54 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002014/0.4238, allocations: 53.7 kB / 0.5779 GB, free: 11.48 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006937/0.4245, allocations: 0.8093 MB / 0.5787 GB, free: 10.66 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006562/0.4252, allocations: 0.6081 MB / 0.5793 GB, free: 10.05 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006004/0.4258, allocations: 363.4 kB / 0.5797 GB, free: 9.688 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.426, allocations: 301.1 kB / 0.58 GB, free: 9.391 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001571/0.4275, allocations: 0.8472 MB / 0.5808 GB, free: 8.539 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001973/0.4295, allocations: 1.348 MB / 0.5821 GB, free: 6.984 MB / 446.1 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.01414/0.4437, allocations: 5.187 MB / 0.5872 GB, free: 1.625 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-05/0.4437, allocations: 4 kB / 0.5872 GB, free: 1.621 MB / 446.1 MB Notification: Performance of matching and sorting (n=255) (initialization): time 0.009911/0.4536, allocations: 4.205 MB / 0.5913 GB, free: 13.35 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.039e-05/0.4537, allocations: 12 kB / 0.5913 GB, free: 13.34 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.7e-05/0.4537, allocations: 12 kB / 0.5913 GB, free: 13.32 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004852/0.4586, allocations: 1.606 MB / 0.5929 GB, free: 11.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001317/0.4599, allocations: 315.5 kB / 0.5932 GB, free: 11.39 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03029/0.4903, allocations: 20.89 MB / 0.6136 GB, free: 5.633 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001446/0.4917, allocations: 95.92 kB / 0.6137 GB, free: 5.539 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002864/0.492, allocations: 88.31 kB / 0.6137 GB, free: 5.453 MB / 478.1 MB Warning: The initial conditions are over specified. The following 6 initial equations are redundant, so they are removed from the initialization system: inverter2.switch_dq0[1] = 1.224744871391589 * cos(select2.alpha0) * select2.v0 $DER.PI.x = 0.0 $DER.generator.psi_s[2] = 0.0 $DER.generator.psi_s[1] = 0.0 infBus.V = 15000.0 * infBus.v0 line.omega[1] = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 3 (system.initime,trafo.tap_2_internal,trafo.tap_1_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (152): * Single equations (assignments): 146 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,3,100.0%), (1,8,100.0%), (1,1,100.0%), (3,24,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(4,22), (21,20)} Notification: Performance of prepare postOptimizeDAE: time 0.001161/0.4932, allocations: 0.5497 MB / 0.6143 GB, free: 4.895 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000386/0.4936, allocations: 159 kB / 0.6144 GB, free: 4.738 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005757/0.4994, allocations: 2.809 MB / 0.6172 GB, free: 1.824 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-05/0.4994, allocations: 16 kB / 0.6172 GB, free: 1.809 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.411e-05/0.4994, allocations: 4 kB / 0.6172 GB, free: 1.805 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.085e-05/0.4995, allocations: 7.969 kB / 0.6172 GB, free: 1.797 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009767/0.5092, allocations: 4.821 MB / 0.6219 GB, free: 12.79 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.384e-05/0.5093, allocations: 7.984 kB / 0.6219 GB, free: 12.78 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001795/0.5111, allocations: 339.6 kB / 0.6222 GB, free: 12.45 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00163/0.5127, allocations: 0.4977 MB / 0.6227 GB, free: 11.93 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002061/0.513, allocations: 55.92 kB / 0.6228 GB, free: 11.87 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01475/0.5277, allocations: 12.74 MB / 0.6352 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/0.5277, allocations: 3.938 kB / 0.6352 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007537/0.5353, allocations: 3.725 MB / 0.6389 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008341/0.5362, allocations: 375.9 kB / 0.6392 GB, free: 9.887 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003182/0.5365, allocations: 55.86 kB / 0.6393 GB, free: 9.832 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000984/0.5375, allocations: 75.92 kB / 0.6393 GB, free: 9.758 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003551/0.5379, allocations: 129 kB / 0.6395 GB, free: 9.633 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001159/0.538, allocations: 47.98 kB / 0.6395 GB, free: 9.586 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001274/0.5393, allocations: 0.71 MB / 0.6402 GB, free: 8.871 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.11e-07/0.5393, allocations: 0 / 0.6402 GB, free: 8.871 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002096/0.5414, allocations: 0.6018 MB / 0.6408 GB, free: 8.27 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 24 (inertia.w,meterDC.pav,generator.phi_el,generator.i_s[3],generator.psi_s[1],generator.psi_s[2],inverter2.vDC1,line.v[1,2],line.v[1,3],line.v[2,2],line.v[2,3],line.v[3,1],line.v[3,2],line.v[3,3],line.i[1,1],line.i[1,2],line.i[1,3],line.i[2,1],line.i[2,2],line.i[2,3],line.i[3,1],line.i[3,2],line.i[3,3],PI.x) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (138): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,2,100.0%), (2,6,100.0%), (1,1,100.0%), (1,8,100.0%), (1,1,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007702/0.5491, allocations: 4.358 MB / 0.6451 GB, free: 3.758 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.006356/0.5555, allocations: 3.5 MB / 0.6485 GB, free: 184 kB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.5555, allocations: 0 / 0.6485 GB, free: 184 kB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003179/0.5587, allocations: 1.897 MB / 0.6503 GB, free: 14.19 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001705/0.5604, allocations: 339.5 kB / 0.6506 GB, free: 13.86 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03672/0.5971, allocations: 20.01 MB / 0.6702 GB, free: 9.043 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001798/0.599, allocations: 1.637 MB / 0.6718 GB, free: 7.371 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001261/0.6003, allocations: 441.3 kB / 0.6722 GB, free: 6.934 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001092/0.6014, allocations: 0.7023 MB / 0.6729 GB, free: 6.23 MB / 0.5294 GB Notification: Performance of SimCode: time 2.444e-06/0.6014, allocations: 0 / 0.6729 GB, free: 6.23 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1098/0.7112, allocations: 47.82 MB / 0.7196 GB, free: 6.676 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.99/15.7, allocations: 8.047 kB / 0.7196 GB, free: 6.668 MB / 0.5762 GB (rm -f PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe >> ../files/PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Wind_WindTurbine_PSGI_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Wind_WindTurbine_PSGI.fmu > PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe 2>&1)