Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Wind.WindTurbine_DFIG.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Wind.WindTurbine_DFIG,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Wind_WindTurbine_DFIG",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Wind.WindTurbine_DFIG,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Wind_WindTurbine_DFIG",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009363/0.0009363, allocations: 167 kB / 16.07 MB, free: 5.691 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.189/1.189, allocations: 205.4 MB / 222.2 MB, free: 9.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007389/0.0007387, allocations: 78.42 kB / 270.6 MB, free: 8.266 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1589/0.1589, allocations: 38.08 MB / 356.9 MB, free: 1.738 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003235/0.0003235, allocations: 12 kB / 423.4 MB, free: 37.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2532/0.2536, allocations: 56.32 MB / 479.7 MB, free: 9.238 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_DFIG): time 0.01051/0.2641, allocations: 11.42 MB / 491.1 MB, free: 1.34 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01079/0.275, allocations: 6.462 MB / 497.6 MB, free: 12.8 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00191/0.2769, allocations: 84.25 kB / 497.7 MB, free: 12.77 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01038/0.2873, allocations: 4.859 MB / 0.4908 GB, free: 11.31 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003746/0.2911, allocations: 1.13 MB / 0.4919 GB, free: 10.42 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002108/0.2932, allocations: 0.6541 MB / 0.4925 GB, free: 9.938 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.005112/0.2983, allocations: 3.801 MB / 0.4962 GB, free: 7.805 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002311/0.3007, allocations: 1.304 MB / 0.4975 GB, free: 6.922 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00169/0.3024, allocations: 0.8952 MB / 0.4984 GB, free: 6.449 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002117/0.3045, allocations: 1.327 MB / 0.4997 GB, free: 5.77 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004089/0.3049, allocations: 78.69 kB / 0.4997 GB, free: 5.766 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001225/0.3062, allocations: 351.1 kB / 0.5001 GB, free: 5.621 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001073/0.3072, allocations: 0.7871 MB / 0.5008 GB, free: 5.148 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001187/0.3084, allocations: 0.8162 MB / 0.5016 GB, free: 4.352 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001707/0.3102, allocations: 1.695 MB / 0.5033 GB, free: 2.652 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.3102, allocations: 0 / 0.5033 GB, free: 2.652 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.3102, allocations: 0 / 0.5033 GB, free: 2.652 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.004e-05/0.3102, allocations: 0 / 0.5033 GB, free: 2.652 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.003537/0.3138, allocations: 1.748 MB / 0.505 GB, free: 0.8438 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.3138, allocations: 8.031 kB / 0.505 GB, free: 0.8359 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002943/0.3141, allocations: 220 kB / 0.5052 GB, free: 0.6094 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001388/0.3155, allocations: 282.5 kB / 0.5055 GB, free: 340 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002139/0.3177, allocations: 1.155 MB / 0.5066 GB, free: 15.13 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.142e-05/0.3178, allocations: 102.6 kB / 0.5067 GB, free: 15.03 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004847/0.3183, allocations: 223.7 kB / 0.5069 GB, free: 14.81 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00303/0.3213, allocations: 2.107 MB / 0.509 GB, free: 12.61 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.061e-05/0.3213, allocations: 7.938 kB / 0.509 GB, free: 12.6 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00013/0.3215, allocations: 51.98 kB / 0.509 GB, free: 12.55 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006263/0.3221, allocations: 194.6 kB / 0.5092 GB, free: 12.36 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002738/0.3249, allocations: 1.709 MB / 0.5109 GB, free: 10.64 MB / 346.7 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.01087/0.3357, allocations: 7.972 MB / 0.5187 GB, free: 2.324 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002261/0.338, allocations: 1.627 MB / 0.5203 GB, free: 0.6133 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009799/0.339, allocations: 0.6605 MB / 0.5209 GB, free: 15.95 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.384e-05/0.3391, allocations: 20.92 kB / 0.5209 GB, free: 15.93 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.623e-05/0.3392, allocations: 47.56 kB / 0.521 GB, free: 15.87 MB / 362.7 MB Notification: Performance of pre-optimization done (n=127): time 3.257e-06/0.3392, allocations: 7.938 kB / 0.521 GB, free: 15.86 MB / 362.7 MB Notification: Performance of matching and sorting (n=138): time 0.008971/0.3482, allocations: 5.111 MB / 0.526 GB, free: 10.57 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.883e-05/0.3483, allocations: 98.39 kB / 0.5261 GB, free: 10.45 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001139/0.3494, allocations: 0.9231 MB / 0.527 GB, free: 9.512 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.603e-05/0.3495, allocations: 49.7 kB / 0.527 GB, free: 9.457 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005128/0.35, allocations: 0.721 MB / 0.5277 GB, free: 8.723 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004298/0.3505, allocations: 0.5007 MB / 0.5282 GB, free: 8.215 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.313e-05/0.3506, allocations: 32 kB / 0.5283 GB, free: 8.184 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.3507, allocations: 373.9 kB / 0.5286 GB, free: 7.812 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001099/0.3518, allocations: 0.7105 MB / 0.5293 GB, free: 7.102 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001385/0.3532, allocations: 1.147 MB / 0.5304 GB, free: 5.766 MB / 362.7 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.009714/0.363, allocations: 4.082 MB / 0.5344 GB, free: 1.512 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.245e-05/0.363, allocations: 4 kB / 0.5344 GB, free: 1.508 MB / 362.7 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.00663/0.3696, allocations: 3.351 MB / 0.5377 GB, free: 14.11 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.363e-05/0.3697, allocations: 14.81 kB / 0.5377 GB, free: 14.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.56e-05/0.3697, allocations: 15.94 kB / 0.5377 GB, free: 14.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002896/0.3726, allocations: 1.179 MB / 0.5389 GB, free: 12.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001243/0.3739, allocations: 311.5 kB / 0.5392 GB, free: 12.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01815/0.3921, allocations: 13.79 MB / 0.5526 GB, free: 14.25 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001277/0.3934, allocations: 83.94 kB / 0.5527 GB, free: 14.17 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001478/0.3935, allocations: 75.94 kB / 0.5528 GB, free: 14.09 MB / 394.7 MB Warning: The initial conditions are over specified. The following 4 initial equations are redundant, so they are removed from the initialization sytem: inverter2.switch_dq0[1] = 1.224744871391589 * cos(select2.alpha0) * select2.v0 rotor.A = 3.141592653589793 * rotor.R ^ 2.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: 60 * 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 (146): * Single equations (assignments): 142 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 18} * Non-linear torn systems: 2 {3 15,21 20} Notification: Performance of prepare postOptimizeDAE: time 0.0009637/0.3945, allocations: 0.5012 MB / 0.5533 GB, free: 13.58 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002057/0.3947, allocations: 134.3 kB / 0.5534 GB, free: 13.45 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003251/0.398, allocations: 2.022 MB / 0.5554 GB, free: 11.35 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.56e-05/0.398, allocations: 16 kB / 0.5554 GB, free: 11.34 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.124e-06/0.398, allocations: 7.938 kB / 0.5554 GB, free: 11.33 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.464e-05/0.398, allocations: 7.969 kB / 0.5554 GB, free: 11.32 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006214/0.4043, allocations: 3.779 MB / 0.5591 GB, free: 7.359 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.937e-06/0.4043, allocations: 4 kB / 0.5591 GB, free: 7.355 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00159/0.4059, allocations: 323.6 kB / 0.5594 GB, free: 7.039 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005088/0.4064, allocations: 191.4 kB / 0.5596 GB, free: 6.84 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001046/0.4065, allocations: 47.92 kB / 0.5596 GB, free: 6.793 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004911/0.4114, allocations: 6.143 MB / 0.5656 GB, free: 124 kB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.4115, allocations: 4 kB / 0.5656 GB, free: 120 kB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003905/0.4154, allocations: 2.724 MB / 0.5683 GB, free: 13.27 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005773/0.416, allocations: 319.2 kB / 0.5686 GB, free: 12.93 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001702/0.4161, allocations: 43.98 kB / 0.5686 GB, free: 12.89 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006664/0.4168, allocations: 63.94 kB / 0.5687 GB, free: 12.83 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002575/0.4171, allocations: 101.1 kB / 0.5688 GB, free: 12.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.312e-05/0.4172, allocations: 40.09 kB / 0.5688 GB, free: 12.69 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008304/0.418, allocations: 0.6204 MB / 0.5694 GB, free: 12.06 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.418, allocations: 0 / 0.5694 GB, free: 12.06 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001642/0.4197, allocations: 484 kB / 0.5699 GB, free: 11.59 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 26 (generator.i[3],generator.psi_s[1],generator.psi_s[2],generator.psi_rd[1],generator.psi_rq[1],generator.phiRotor,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],inertia.phi,inertia.w,meterDC.pav,inverter2.vDC1) * 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 (129): * Single equations (assignments): 124 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 10,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004147/0.4238, allocations: 3.338 MB / 0.5732 GB, free: 8.102 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004446/0.4283, allocations: 2.681 MB / 0.5758 GB, free: 5.375 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.249e-06/0.4283, allocations: 0 / 0.5758 GB, free: 5.375 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001821/0.4301, allocations: 1.245 MB / 0.577 GB, free: 4.078 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001864/0.432, allocations: 292.7 kB / 0.5773 GB, free: 3.793 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0206/0.4526, allocations: 13.65 MB / 0.5906 GB, free: 5.559 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001285/0.454, allocations: 1.521 MB / 0.5921 GB, free: 4.008 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001009/0.455, allocations: 0.6282 MB / 0.5927 GB, free: 3.379 MB / 426.7 MB Notification: Performance of SimCode: time 9.22e-07/0.455, allocations: 0 / 0.5927 GB, free: 3.379 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.307/6.762, allocations: 47.64 MB / 0.6392 GB, free: 3.637 MB / 474.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.Wind.WindTurbine_DFIG.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Wind.WindTurbine_DFIG.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Wind.WindTurbine_DFIG.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Wind.WindTurbine_DFIG.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_Wind_WindTurbine_DFIG_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_Wind_WindTurbine_DFIG.fmu > PowerSystems_cpp_PowerSystems.Examples.Wind.WindTurbine_DFIG.pipe 2>&1)