Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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_latest_PowerSystems_Examples_Wind_WindTurbine_PSGI",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Wind.WindTurbine_PSGI,fileNamePrefix="PowerSystems_latest_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.001284/0.001284, allocations: 110.4 kB / 16.92 MB, free: 6.145 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.001243/0.001243, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.284/1.284, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1722/0.1722, allocations: 38.04 MB / 329.7 MB, free: 8.832 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 67.31 kB / 398.9 MB, free: 33.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08809/0.08931, allocations: 58.06 MB / 457 MB, free: 7.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGI): time 0.01201/0.1014, allocations: 11.01 MB / 468 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009706/0.1111, allocations: 7.081 MB / 475.1 MB, free: 5.789 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007518/0.1119, allocations: 51.75 kB / 475.1 MB, free: 5.738 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01922/0.1311, allocations: 12.87 MB / 488 MB, free: 8.848 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002887/0.1341, allocations: 1.116 MB / 489.1 MB, free: 7.727 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00167/0.1357, allocations: 0.6901 MB / 489.8 MB, free: 7.035 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005338/0.1411, allocations: 4.005 MB / 493.8 MB, free: 3.023 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00133/0.1424, allocations: 1.004 MB / 494.8 MB, free: 1.996 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001568/0.144, allocations: 1.113 MB / 495.9 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001791/0.1458, allocations: 1.444 MB / 497.4 MB, free: 15.43 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002668/0.1461, allocations: 148 kB / 497.5 MB, free: 15.29 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009723/0.1471, allocations: 0.511 MB / 498 MB, free: 14.77 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007577/0.1479, allocations: 0.904 MB / 498.9 MB, free: 13.87 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009661/0.1488, allocations: 0.9873 MB / 499.9 MB, free: 12.88 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00241/0.1512, allocations: 2.527 MB / 0.4907 GB, free: 10.34 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.1513, allocations: 0 / 0.4907 GB, free: 10.34 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1513, allocations: 0 / 0.4907 GB, free: 10.34 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.56e-05/0.1513, allocations: 0 / 0.4907 GB, free: 10.34 MB / 382.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.004157/0.1555, allocations: 2.221 MB / 0.4928 GB, free: 8.059 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.1555, allocations: 11.89 kB / 0.4928 GB, free: 8.047 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002787/0.1558, allocations: 236.5 kB / 0.4931 GB, free: 7.805 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001783/0.1576, allocations: 333.9 kB / 0.4934 GB, free: 7.477 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002368/0.16, allocations: 1.28 MB / 0.4946 GB, free: 6.148 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.173e-05/0.1601, allocations: 110.7 kB / 0.4947 GB, free: 6.039 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005206/0.1606, allocations: 231.8 kB / 0.495 GB, free: 5.812 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003057/0.1637, allocations: 2.192 MB / 0.4971 GB, free: 3.516 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.803e-05/0.1637, allocations: 7.906 kB / 0.4971 GB, free: 3.508 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001451/0.1639, allocations: 59.97 kB / 0.4972 GB, free: 3.449 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006412/0.1645, allocations: 190.8 kB / 0.4973 GB, free: 3.262 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00289/0.1674, allocations: 1.83 MB / 0.4991 GB, free: 1.426 MB / 382.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.1772/0.3446, allocations: 8.556 MB / 0.5075 GB, free: 52.44 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002396/0.347, allocations: 1.904 MB / 0.5094 GB, free: 51.35 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001382/0.3484, allocations: 0.8028 MB / 0.5101 GB, free: 51.09 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.509e-05/0.3485, allocations: 23.34 kB / 0.5102 GB, free: 51.09 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.386e-05/0.3486, allocations: 45.05 kB / 0.5102 GB, free: 51.04 MB / 382.1 MB Notification: Performance of pre-optimization done (n=130): time 4.198e-06/0.3486, allocations: 4.844 kB / 0.5102 GB, free: 51.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=145): time 0.01158/0.3602, allocations: 5.955 MB / 0.516 GB, free: 48.15 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.715e-05/0.3602, allocations: 94.02 kB / 0.5161 GB, free: 48.06 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001224/0.3615, allocations: 1.063 MB / 0.5171 GB, free: 47.65 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.116e-05/0.3616, allocations: 51.58 kB / 0.5172 GB, free: 47.6 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003998/0.362, allocations: 0.7861 MB / 0.518 GB, free: 46.98 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003172/0.3623, allocations: 0.5229 MB / 0.5185 GB, free: 46.58 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004292/0.3627, allocations: 332.3 kB / 0.5188 GB, free: 46.43 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.397e-05/0.3628, allocations: 311.2 kB / 0.5191 GB, free: 46.12 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001119/0.3639, allocations: 0.7374 MB / 0.5198 GB, free: 45.9 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001253/0.3652, allocations: 1.227 MB / 0.521 GB, free: 45.08 MB / 382.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.009327/0.3745, allocations: 4.344 MB / 0.5252 GB, free: 43.1 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.037e-06/0.3745, allocations: 4.125 kB / 0.5253 GB, free: 43.1 MB / 382.1 MB Notification: Performance of matching and sorting (n=237) (initialization): time 0.006611/0.3811, allocations: 3.973 MB / 0.5291 GB, free: 40.79 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.259e-05/0.3812, allocations: 18.7 kB / 0.5292 GB, free: 40.78 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.948e-05/0.3812, allocations: 18.25 kB / 0.5292 GB, free: 40.78 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003622/0.3848, allocations: 1.455 MB / 0.5306 GB, free: 39.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001008/0.3859, allocations: 291.5 kB / 0.5309 GB, free: 39.64 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01868/0.4046, allocations: 20.97 MB / 0.5513 GB, free: 17.72 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001293/0.4059, allocations: 83.8 kB / 0.5514 GB, free: 17.64 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001226/0.406, allocations: 79.98 kB / 0.5515 GB, free: 17.56 MB / 382.1 MB Warning: The initial conditions are over specified. The following 4 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 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 (144): * Single equations (assignments): 137 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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): 5 systems {(1,1,100.0%), (1,1,100.0%), (1,2,100.0%), (1,1,100.0%), (1,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(4,22), (21,20)} Notification: Performance of prepare postOptimizeDAE: time 0.0007127/0.4067, allocations: 0.5247 MB / 0.552 GB, free: 17.04 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001986/0.4069, allocations: 146.2 kB / 0.5522 GB, free: 16.89 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002746/0.4097, allocations: 2.217 MB / 0.5543 GB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.956e-06/0.4097, allocations: 12 kB / 0.5543 GB, free: 14.56 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.4097, allocations: 4 kB / 0.5543 GB, free: 14.56 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.201e-05/0.4097, allocations: 7.969 kB / 0.5543 GB, free: 14.55 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004932/0.4147, allocations: 3.99 MB / 0.5582 GB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.021e-06/0.4147, allocations: 4.25 kB / 0.5582 GB, free: 10.42 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001544/0.4162, allocations: 343.6 kB / 0.5586 GB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004675/0.4167, allocations: 212 kB / 0.5588 GB, free: 9.863 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.905e-05/0.4168, allocations: 51.97 kB / 0.5588 GB, free: 9.812 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003733/0.4206, allocations: 7.922 MB / 0.5666 GB, free: 1.195 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.4206, allocations: 7.938 kB / 0.5666 GB, free: 1.188 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0038/0.4244, allocations: 2.93 MB / 0.5694 GB, free: 14.13 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000588/0.425, allocations: 343.2 kB / 0.5698 GB, free: 13.77 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002093/0.4252, allocations: 47.97 kB / 0.5698 GB, free: 13.73 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007603/0.426, allocations: 59.89 kB / 0.5699 GB, free: 13.67 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002098/0.4262, allocations: 101.3 kB / 0.57 GB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.406e-05/0.4263, allocations: 43.98 kB / 0.57 GB, free: 13.53 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000876/0.4272, allocations: 0.7139 MB / 0.5707 GB, free: 12.81 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4272, allocations: 7.938 kB / 0.5707 GB, free: 12.8 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001817/0.429, allocations: 0.5427 MB / 0.5712 GB, free: 12.26 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 26 (inertia.phi,inertia.w,meterDC.pav,generator.i_s[1],generator.i_s[2],generator.i_s[3],generator.i_rd[1],generator.i_rq[1],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 (137): * Single equations (assignments): 131 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,1,100.0%), (1,1,100.0%), (1,8,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004513/0.4335, allocations: 3.554 MB / 0.5747 GB, free: 8.562 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007138/0.4407, allocations: 4.209 MB / 0.5788 GB, free: 4.293 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.06e-06/0.4407, allocations: 4.562 kB / 0.5788 GB, free: 4.289 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002063/0.4428, allocations: 1.406 MB / 0.5802 GB, free: 2.82 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001547/0.4443, allocations: 343.4 kB / 0.5805 GB, free: 2.492 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0326/0.477, allocations: 19.94 MB / 0.6 GB, free: 13.58 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001603/0.4786, allocations: 1.58 MB / 0.6015 GB, free: 11.97 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001402/0.48, allocations: 447.5 kB / 0.602 GB, free: 11.53 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009626/0.481, allocations: 0.6789 MB / 0.6026 GB, free: 10.85 MB / 430.1 MB Notification: Performance of SimCode: time 5.61e-07/0.481, allocations: 0 / 0.6026 GB, free: 10.85 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08271/0.5637, allocations: 43.22 MB / 0.6448 GB, free: 15.93 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.51/12.08, allocations: 26.78 kB / 0.6449 GB, free: 15.9 MB / 478.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_PSGI_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_PSGI.fmu > PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe 2>&1)