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.00146/0.00146, allocations: 113 kB / 17.05 MB, free: 6.086 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.001861/0.001861, allocations: 188 kB / 17.99 MB, free: 5.184 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.422/1.422, 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-master/package.mo): time 0.1907/0.1907, allocations: 38.04 MB / 329.9 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002129/0.002129, allocations: 64.08 kB / 457.6 MB, free: 7.367 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3281/0.3303, allocations: 58.06 MB / 0.5036 GB, free: 7.484 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGI): time 0.01023/0.3405, allocations: 11.03 MB / 0.5144 GB, free: 15.73 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0131/0.3537, allocations: 7.069 MB / 0.5213 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002059/0.3558, allocations: 53.06 kB / 0.5213 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02687/0.3826, allocations: 12.87 MB / 0.5339 GB, free: 6.191 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003573/0.3862, allocations: 1.111 MB / 0.535 GB, free: 5.305 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002417/0.3887, allocations: 0.7 MB / 0.5357 GB, free: 4.766 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.007307/0.396, allocations: 4.015 MB / 0.5396 GB, free: 2.668 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001765/0.3978, allocations: 0.9878 MB / 0.5406 GB, free: 2.098 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002511/0.4003, allocations: 1.113 MB / 0.5416 GB, free: 1.461 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002627/0.403, allocations: 1.444 MB / 0.5431 GB, free: 236 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004435/0.4035, allocations: 152 kB / 0.5432 GB, free: 84 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001451/0.4049, allocations: 0.5149 MB / 0.5437 GB, free: 15.57 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001052/0.406, allocations: 0.9079 MB / 0.5446 GB, free: 14.66 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001606/0.4076, allocations: 0.9796 MB / 0.5455 GB, free: 13.67 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003927/0.4115, allocations: 2.576 MB / 0.5481 GB, free: 11.09 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/0.4116, allocations: 0 / 0.5481 GB, free: 11.09 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4116, allocations: 0 / 0.5481 GB, free: 11.09 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.14e-05/0.4117, allocations: 0 / 0.5481 GB, free: 11.09 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.005552/0.4172, allocations: 2.273 MB / 0.5503 GB, free: 8.75 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.433e-05/0.4173, allocations: 15.89 kB / 0.5503 GB, free: 8.734 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003398/0.4176, allocations: 236.5 kB / 0.5505 GB, free: 8.492 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001872/0.4195, allocations: 339.1 kB / 0.5508 GB, free: 8.16 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003226/0.4227, allocations: 1.343 MB / 0.5522 GB, free: 6.773 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001089/0.4229, allocations: 106.7 kB / 0.5523 GB, free: 6.668 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006759/0.4236, allocations: 235.8 kB / 0.5525 GB, free: 6.438 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003991/0.4276, allocations: 2.196 MB / 0.5546 GB, free: 4.137 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.921e-05/0.4277, allocations: 11.89 kB / 0.5546 GB, free: 4.125 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001756/0.4278, allocations: 63.97 kB / 0.5547 GB, free: 4.062 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006697/0.4285, allocations: 190.8 kB / 0.5549 GB, free: 3.875 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003611/0.4321, allocations: 1.827 MB / 0.5567 GB, free: 2.043 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.01882/0.451, allocations: 8.542 MB / 0.565 GB, free: 9.086 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004527/0.4555, allocations: 1.901 MB / 0.5669 GB, free: 7.055 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002399/0.458, allocations: 0.7925 MB / 0.5676 GB, free: 6.262 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001441/0.4581, allocations: 17.38 kB / 0.5677 GB, free: 6.246 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.734e-05/0.4582, allocations: 51.86 kB / 0.5677 GB, free: 6.188 MB / 430.1 MB Notification: Performance of pre-optimization done (n=130): time 5.811e-06/0.4582, allocations: 3.938 kB / 0.5677 GB, free: 6.184 MB / 430.1 MB Notification: Performance of matching and sorting (n=165): time 0.04102/0.4993, allocations: 9.256 MB / 0.5767 GB, free: 12.69 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001023/0.4994, allocations: 94.42 kB / 0.5768 GB, free: 12.58 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002276/0.5017, allocations: 1.075 MB / 0.5779 GB, free: 11.5 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003073/0.502, allocations: 61.64 kB / 0.5779 GB, free: 11.43 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009568/0.503, allocations: 0.8015 MB / 0.5787 GB, free: 10.62 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001028/0.5041, allocations: 0.6159 MB / 0.5793 GB, free: 9.996 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00104/0.5051, allocations: 351.4 kB / 0.5797 GB, free: 9.648 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.5053, allocations: 309.2 kB / 0.58 GB, free: 9.344 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002591/0.5079, allocations: 0.8433 MB / 0.5808 GB, free: 8.496 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003254/0.5112, allocations: 1.344 MB / 0.5821 GB, free: 6.945 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.02285/0.5341, allocations: 5.183 MB / 0.5872 GB, free: 1.59 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.271e-05/0.5341, allocations: 4 kB / 0.5872 GB, free: 1.586 MB / 446.1 MB Notification: Performance of matching and sorting (n=255) (initialization): time 0.0155/0.5496, allocations: 4.205 MB / 0.5913 GB, free: 13.31 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.224e-05/0.5497, allocations: 16 kB / 0.5913 GB, free: 13.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.598e-05/0.5498, allocations: 19.98 kB / 0.5913 GB, free: 13.28 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008186/0.558, allocations: 1.602 MB / 0.5929 GB, free: 11.66 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001577/0.5596, allocations: 311.5 kB / 0.5932 GB, free: 11.35 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02943/0.5891, allocations: 20.9 MB / 0.6136 GB, free: 5.594 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001487/0.5906, allocations: 91.92 kB / 0.6137 GB, free: 5.504 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002059/0.5908, allocations: 92.05 kB / 0.6137 GB, free: 5.414 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.001047/0.5919, allocations: 0.5461 MB / 0.6143 GB, free: 4.859 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003206/0.5922, allocations: 159 kB / 0.6144 GB, free: 4.703 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005503/0.5977, allocations: 2.809 MB / 0.6172 GB, free: 1.789 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.409e-05/0.5978, allocations: 19.94 kB / 0.6172 GB, free: 1.77 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.116e-05/0.5978, allocations: 4 kB / 0.6172 GB, free: 1.766 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.141e-05/0.5978, allocations: 7.969 kB / 0.6172 GB, free: 1.758 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009352/0.6072, allocations: 4.825 MB / 0.6219 GB, free: 12.75 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-05/0.6072, allocations: 7.984 kB / 0.6219 GB, free: 12.74 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001804/0.609, allocations: 339.5 kB / 0.6222 GB, free: 12.41 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001629/0.6107, allocations: 0.4898 MB / 0.6227 GB, free: 11.89 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000195/0.6109, allocations: 59.92 kB / 0.6228 GB, free: 11.84 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01333/0.6242, allocations: 12.75 MB / 0.6352 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/0.6243, allocations: 4 kB / 0.6352 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007212/0.6315, allocations: 3.725 MB / 0.6389 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009977/0.6325, allocations: 379.8 kB / 0.6392 GB, free: 9.836 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003489/0.6329, allocations: 51.92 kB / 0.6393 GB, free: 9.785 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009532/0.6338, allocations: 71.92 kB / 0.6394 GB, free: 9.715 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003979/0.6343, allocations: 133 kB / 0.6395 GB, free: 9.586 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000124/0.6344, allocations: 43.98 kB / 0.6395 GB, free: 9.543 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.00114/0.6355, allocations: 0.7178 MB / 0.6402 GB, free: 8.82 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2e-07/0.6356, allocations: 0 / 0.6402 GB, free: 8.82 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.00229/0.6378, allocations: 0.5937 MB / 0.6408 GB, free: 8.227 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.007567/0.6454, allocations: 4.354 MB / 0.6451 GB, free: 3.719 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.006423/0.6519, allocations: 3.504 MB / 0.6485 GB, free: 140 kB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/0.6519, allocations: 0 / 0.6485 GB, free: 140 kB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003251/0.6552, allocations: 1.901 MB / 0.6503 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001737/0.6569, allocations: 345.3 kB / 0.6507 GB, free: 13.81 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03807/0.695, allocations: 20.01 MB / 0.6702 GB, free: 9 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001637/0.6967, allocations: 1.633 MB / 0.6718 GB, free: 7.332 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001424/0.6982, allocations: 445.3 kB / 0.6722 GB, free: 6.891 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001027/0.6992, allocations: 0.7063 MB / 0.6729 GB, free: 6.184 MB / 0.5294 GB Notification: Performance of SimCode: time 7.81e-07/0.6992, allocations: 0 / 0.6729 GB, free: 6.184 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1552/0.8544, allocations: 47.83 MB / 0.7196 GB, free: 6.629 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.23/16.09, allocations: 7.938 kB / 0.7196 GB, free: 6.621 MB / 0.5762 GB (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)