Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.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_PSGR,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_PSGR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Wind.WindTurbine_PSGR,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_PSGR",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.001513/0.001513, allocations: 111.5 kB / 17.06 MB, free: 6.09 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.001726/0.001727, allocations: 200 kB / 18 MB, free: 5.168 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.328/1.328, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.186/0.186, allocations: 38.04 MB / 329.9 MB, free: 8.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 67.89 kB / 457.6 MB, free: 7.344 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3337/0.3349, allocations: 58.05 MB / 0.5036 GB, free: 7.5 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGR): time 0.01094/0.3459, allocations: 10.95 MB / 0.5143 GB, free: 15.82 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0131/0.359, allocations: 7.086 MB / 0.5212 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001772/0.3609, allocations: 45.59 kB / 0.5213 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02567/0.3865, allocations: 12.92 MB / 0.5339 GB, free: 6.242 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004203/0.3908, allocations: 1.098 MB / 0.535 GB, free: 5.367 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002479/0.3933, allocations: 0.6562 MB / 0.5356 GB, free: 4.867 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.007126/0.4004, allocations: 3.897 MB / 0.5394 GB, free: 2.848 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002379/0.4028, allocations: 0.9965 MB / 0.5404 GB, free: 2.277 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002882/0.4057, allocations: 1.093 MB / 0.5414 GB, free: 1.652 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002965/0.4087, allocations: 1.399 MB / 0.5428 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005605/0.4093, allocations: 144 kB / 0.5429 GB, free: 392 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001633/0.4109, allocations: 0.511 MB / 0.5434 GB, free: 15.87 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001336/0.4123, allocations: 0.8884 MB / 0.5443 GB, free: 14.98 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002125/0.4144, allocations: 0.9524 MB / 0.5452 GB, free: 14.02 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003544/0.418, allocations: 2.5 MB / 0.5477 GB, free: 11.52 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.543e-06/0.418, allocations: 4 kB / 0.5477 GB, free: 11.51 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.418, allocations: 0 / 0.5477 GB, free: 11.51 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.07e-05/0.4181, allocations: 3.938 kB / 0.5477 GB, free: 11.51 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: 397 * Number of variables: 397 Notification: Performance of Generate backend data structure: time 0.004713/0.4228, allocations: 2.15 MB / 0.5498 GB, free: 9.297 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.312e-05/0.4229, allocations: 15.89 kB / 0.5498 GB, free: 9.281 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002639/0.4232, allocations: 224.1 kB / 0.55 GB, free: 9.051 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00172/0.4249, allocations: 330.1 kB / 0.5503 GB, free: 8.727 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002794/0.4277, allocations: 1.28 MB / 0.5516 GB, free: 7.402 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.815e-05/0.4278, allocations: 102.6 kB / 0.5517 GB, free: 7.301 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005302/0.4283, allocations: 239.7 kB / 0.5519 GB, free: 7.066 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003103/0.4314, allocations: 2.149 MB / 0.554 GB, free: 4.809 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.99e-05/0.4315, allocations: 4 kB / 0.554 GB, free: 4.805 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001357/0.4316, allocations: 55.98 kB / 0.5541 GB, free: 4.75 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006335/0.4323, allocations: 182.7 kB / 0.5542 GB, free: 4.57 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002742/0.435, allocations: 1.76 MB / 0.556 GB, free: 2.805 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.01103/0.4461, allocations: 8.573 MB / 0.5643 GB, free: 9.805 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002267/0.4484, allocations: 1.821 MB / 0.5661 GB, free: 7.863 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001243/0.4496, allocations: 0.7582 MB / 0.5669 GB, free: 7.102 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.264e-05/0.4497, allocations: 17.06 kB / 0.5669 GB, free: 7.086 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.3e-05/0.4498, allocations: 55.56 kB / 0.5669 GB, free: 7.02 MB / 430.1 MB Notification: Performance of pre-optimization done (n=122): time 3.166e-06/0.4498, allocations: 0 / 0.5669 GB, free: 7.02 MB / 430.1 MB Notification: Performance of matching and sorting (n=150): time 0.01829/0.468, allocations: 7.556 MB / 0.5743 GB, free: 15.29 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.562e-05/0.4681, allocations: 98.41 kB / 0.5744 GB, free: 15.18 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001268/0.4694, allocations: 1.033 MB / 0.5754 GB, free: 14.13 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001366/0.4696, allocations: 49.7 kB / 0.5754 GB, free: 14.08 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005871/0.4701, allocations: 0.7639 MB / 0.5762 GB, free: 13.3 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005127/0.4707, allocations: 0.5353 MB / 0.5767 GB, free: 12.76 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000489/0.4712, allocations: 331.3 kB / 0.577 GB, free: 12.43 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.381e-05/0.4713, allocations: 301.1 kB / 0.5773 GB, free: 12.13 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001187/0.4725, allocations: 0.7808 MB / 0.5781 GB, free: 11.35 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001491/0.474, allocations: 1.247 MB / 0.5793 GB, free: 9.91 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.01578/0.4897, allocations: 5.685 MB / 0.5849 GB, free: 4.047 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.027e-05/0.4898, allocations: 4 kB / 0.5849 GB, free: 4.043 MB / 446.1 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.008996/0.4988, allocations: 3.917 MB / 0.5887 GB, free: 84 kB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.811e-05/0.4988, allocations: 15.98 kB / 0.5887 GB, free: 68 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.614e-05/0.4989, allocations: 12 kB / 0.5887 GB, free: 56 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005563/0.5044, allocations: 1.744 MB / 0.5904 GB, free: 14.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001071/0.5055, allocations: 267.5 kB / 0.5907 GB, free: 14.04 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02575/0.5313, allocations: 18.48 MB / 0.6087 GB, free: 10.98 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001425/0.5328, allocations: 79.94 kB / 0.6088 GB, free: 10.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001753/0.533, allocations: 83.92 kB / 0.6089 GB, free: 10.82 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.generator.psi_rq[1] = 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: 63 * 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 (130): * Single equations (assignments): 126 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,11,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,49), (21,20)} Notification: Performance of prepare postOptimizeDAE: time 0.000872/0.5338, allocations: 0.5276 MB / 0.6094 GB, free: 10.28 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002517/0.5341, allocations: 150.2 kB / 0.6095 GB, free: 10.13 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004964/0.5391, allocations: 2.401 MB / 0.6119 GB, free: 7.66 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-05/0.5391, allocations: 16 kB / 0.6119 GB, free: 7.645 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.979e-06/0.5391, allocations: 7.938 kB / 0.6119 GB, free: 7.637 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.498e-05/0.5391, allocations: 7.969 kB / 0.6119 GB, free: 7.629 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008515/0.5477, allocations: 4.324 MB / 0.6161 GB, free: 3.168 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.436e-06/0.5477, allocations: 4.312 kB / 0.6161 GB, free: 3.164 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001551/0.5492, allocations: 307.6 kB / 0.6164 GB, free: 2.863 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002585/0.5518, allocations: 0.5466 MB / 0.617 GB, free: 2.301 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001233/0.552, allocations: 51.97 kB / 0.617 GB, free: 2.25 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009888/0.5619, allocations: 10.14 MB / 0.6269 GB, free: 7.418 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.5619, allocations: 3.938 kB / 0.6269 GB, free: 7.414 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006065/0.568, allocations: 3.212 MB / 0.63 GB, free: 4.09 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008036/0.5688, allocations: 343.2 kB / 0.6304 GB, free: 3.734 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002044/0.569, allocations: 59.86 kB / 0.6304 GB, free: 3.676 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000817/0.5698, allocations: 59.94 kB / 0.6305 GB, free: 3.617 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003071/0.5702, allocations: 121.1 kB / 0.6306 GB, free: 3.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001086/0.5703, allocations: 47.98 kB / 0.6307 GB, free: 3.453 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0009281/0.5712, allocations: 0.6892 MB / 0.6313 GB, free: 2.758 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.543e-06/0.5712, allocations: 0 / 0.6313 GB, free: 2.758 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002051/0.5733, allocations: 0.5703 MB / 0.6319 GB, free: 2.188 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 23 (inertia.w,generator.phi_el,generator.i_s[3],generator.psi_s[1],generator.psi_s[2],meterDC.pav,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]) * 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 (119): * Single equations (assignments): 113 * 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): 4 systems {(2,9,100.0%), (1,1,100.0%), (1,8,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006233/0.5795, allocations: 3.85 MB / 0.6356 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00497/0.5845, allocations: 3.105 MB / 0.6387 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.067e-06/0.5845, allocations: 0.5625 kB / 0.6387 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002273/0.5868, allocations: 1.583 MB / 0.6402 GB, free: 9.426 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001513/0.5883, allocations: 316.6 kB / 0.6405 GB, free: 9.117 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03177/0.6201, allocations: 18.9 MB / 0.659 GB, free: 5.566 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001248/0.6214, allocations: 1.588 MB / 0.6605 GB, free: 3.949 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001104/0.6225, allocations: 408.5 kB / 0.6609 GB, free: 3.543 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008471/0.6234, allocations: 0.6594 MB / 0.6616 GB, free: 2.883 MB / 0.5137 GB Notification: Performance of SimCode: time 8.52e-07/0.6234, allocations: 3.938 kB / 0.6616 GB, free: 2.879 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1141/0.7375, allocations: 47.7 MB / 0.7081 GB, free: 3.438 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.69/15.43, allocations: 4 kB / 0.7082 GB, free: 3.434 MB / 0.5606 GB (rm -f PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_PSGR_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_PSGR.fmu > PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe 2>&1)