Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG.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_DFIG,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_DFIG",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Wind.WindTurbine_DFIG,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_DFIG",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.001387/0.001388, allocations: 107.9 kB / 17.06 MB, free: 6.004 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.00126/0.00126, allocations: 189.4 kB / 18 MB, free: 5.09 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.392/1.392, 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.1821/0.1821, allocations: 38.04 MB / 329.9 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001892/0.001892, allocations: 63.91 kB / 457.6 MB, free: 7.363 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3312/0.3331, allocations: 58.05 MB / 0.5036 GB, free: 7.516 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_DFIG): time 0.01148/0.3446, allocations: 10.61 MB / 0.514 GB, free: 88 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01167/0.3564, allocations: 6.229 MB / 0.5201 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001397/0.3578, allocations: 47.66 kB / 0.5201 GB, free: 11.72 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01371/0.3715, allocations: 5.509 MB / 0.5255 GB, free: 9.926 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003591/0.3751, allocations: 1.07 MB / 0.5265 GB, free: 9.336 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00224/0.3774, allocations: 0.6498 MB / 0.5272 GB, free: 9.039 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005567/0.383, allocations: 3.215 MB / 0.5303 GB, free: 7.66 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001641/0.3847, allocations: 1.007 MB / 0.5313 GB, free: 7.082 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002251/0.3869, allocations: 1.063 MB / 0.5323 GB, free: 6.469 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002511/0.3895, allocations: 1.35 MB / 0.5336 GB, free: 5.68 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004626/0.39, allocations: 144 kB / 0.5338 GB, free: 5.68 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001292/0.3913, allocations: 425.1 kB / 0.5342 GB, free: 5.531 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001063/0.3923, allocations: 0.8516 MB / 0.535 GB, free: 4.988 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001623/0.394, allocations: 0.9239 MB / 0.5359 GB, free: 4.367 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003805/0.3978, allocations: 2.271 MB / 0.5381 GB, free: 2.859 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.845e-06/0.3978, allocations: 6.016 kB / 0.5381 GB, free: 2.855 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3978, allocations: 0 / 0.5381 GB, free: 2.855 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.687e-05/0.3979, allocations: 0 / 0.5381 GB, free: 2.855 MB / 398.1 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.005457/0.4034, allocations: 2.105 MB / 0.5402 GB, free: 1.344 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.429e-05/0.4035, allocations: 12.98 kB / 0.5402 GB, free: 1.34 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003732/0.4038, allocations: 226.2 kB / 0.5404 GB, free: 1.164 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001743/0.4056, allocations: 286.8 kB / 0.5407 GB, free: 1.023 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002847/0.4085, allocations: 1.218 MB / 0.5419 GB, free: 164 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.564e-05/0.4086, allocations: 100.2 kB / 0.542 GB, free: 116 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005798/0.4092, allocations: 225.6 kB / 0.5422 GB, free: 36 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00428/0.4135, allocations: 2.109 MB / 0.5443 GB, free: 14.74 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.251e-05/0.4135, allocations: 2.594 kB / 0.5443 GB, free: 14.74 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000167/0.4137, allocations: 57.3 kB / 0.5443 GB, free: 14.7 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007235/0.4144, allocations: 190.2 kB / 0.5445 GB, free: 14.55 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00324/0.4177, allocations: 1.705 MB / 0.5462 GB, free: 12.84 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.01305/0.4308, allocations: 7.924 MB / 0.5539 GB, free: 4.582 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002718/0.4335, allocations: 1.627 MB / 0.5555 GB, free: 2.867 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001199/0.4348, allocations: 0.6606 MB / 0.5561 GB, free: 2.203 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.869e-05/0.4349, allocations: 20.98 kB / 0.5562 GB, free: 2.184 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.711e-05/0.4349, allocations: 47.56 kB / 0.5562 GB, free: 2.125 MB / 414.1 MB Notification: Performance of pre-optimization done (n=127): time 3.396e-06/0.4349, allocations: 0 / 0.5562 GB, free: 2.125 MB / 414.1 MB Notification: Performance of matching and sorting (n=138): time 0.01054/0.4455, allocations: 5.128 MB / 0.5612 GB, free: 12.81 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.753e-05/0.4456, allocations: 102.4 kB / 0.5613 GB, free: 12.69 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001321/0.4469, allocations: 0.9387 MB / 0.5622 GB, free: 11.73 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001196/0.4471, allocations: 49.7 kB / 0.5623 GB, free: 11.68 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006113/0.4477, allocations: 0.7387 MB / 0.563 GB, free: 10.93 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005559/0.4482, allocations: 0.5229 MB / 0.5635 GB, free: 10.4 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004804/0.4487, allocations: 307.5 kB / 0.5638 GB, free: 10.09 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.4489, allocations: 301.1 kB / 0.5641 GB, free: 9.793 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001213/0.4501, allocations: 0.7027 MB / 0.5648 GB, free: 9.09 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001574/0.4517, allocations: 1.159 MB / 0.5659 GB, free: 7.746 MB / 430.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.01088/0.4626, allocations: 4.082 MB / 0.5699 GB, free: 3.496 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-05/0.4626, allocations: 4 kB / 0.5699 GB, free: 3.492 MB / 430.1 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.007323/0.4699, allocations: 3.363 MB / 0.5732 GB, free: 88 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.602e-05/0.47, allocations: 16.03 kB / 0.5732 GB, free: 72 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.893e-05/0.4701, allocations: 16 kB / 0.5732 GB, free: 56 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003216/0.4733, allocations: 1.188 MB / 0.5744 GB, free: 14.86 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001348/0.4747, allocations: 307.5 kB / 0.5747 GB, free: 14.55 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02213/0.4968, allocations: 15.14 MB / 0.5894 GB, free: 14.84 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001678/0.4985, allocations: 75.91 kB / 0.5895 GB, free: 14.77 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003614/0.4989, allocations: 75.98 kB / 0.5896 GB, free: 14.69 MB / 462.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.inertia.w = 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: 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 (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 {(1,1,100.0%), (1,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(3,15), (21,20)} Notification: Performance of prepare postOptimizeDAE: time 0.001142/0.5001, allocations: 0.4933 MB / 0.5901 GB, free: 14.19 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003315/0.5004, allocations: 143.1 kB / 0.5902 GB, free: 14.05 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003823/0.5042, allocations: 2.01 MB / 0.5922 GB, free: 11.96 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.68e-05/0.5043, allocations: 12 kB / 0.5922 GB, free: 11.95 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.415e-05/0.5043, allocations: 8 kB / 0.5922 GB, free: 11.94 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.893e-05/0.5043, allocations: 8.062 kB / 0.5922 GB, free: 11.93 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007721/0.512, allocations: 3.768 MB / 0.5959 GB, free: 7.98 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.389e-05/0.5121, allocations: 4 kB / 0.5959 GB, free: 7.977 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001739/0.5138, allocations: 323.5 kB / 0.5962 GB, free: 7.66 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005868/0.5145, allocations: 191.4 kB / 0.5964 GB, free: 7.461 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001885/0.5147, allocations: 47.97 kB / 0.5964 GB, free: 7.414 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006142/0.5208, allocations: 6.669 MB / 0.6029 GB, free: 188 kB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.631e-06/0.5209, allocations: 7.938 kB / 0.6029 GB, free: 180 kB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004989/0.5259, allocations: 2.722 MB / 0.6056 GB, free: 13.33 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008284/0.5267, allocations: 328 kB / 0.6059 GB, free: 12.99 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003919/0.5271, allocations: 47.94 kB / 0.606 GB, free: 12.94 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009722/0.5281, allocations: 63.88 kB / 0.606 GB, free: 12.88 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002793/0.5284, allocations: 101.1 kB / 0.6061 GB, free: 12.78 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001137/0.5286, allocations: 39.98 kB / 0.6062 GB, free: 12.74 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001096/0.5297, allocations: 0.6245 MB / 0.6068 GB, free: 12.11 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.5297, allocations: 3.938 kB / 0.6068 GB, free: 12.11 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002301/0.532, allocations: 480 kB / 0.6072 GB, free: 11.64 MB / 478.1 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 (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): 4 systems {(1,10,100.0%), (1,1,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.005314/0.5373, allocations: 3.319 MB / 0.6105 GB, free: 8.176 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005562/0.5429, allocations: 2.738 MB / 0.6131 GB, free: 5.387 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.316e-06/0.543, allocations: 0 / 0.6131 GB, free: 5.387 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002296/0.5453, allocations: 1.246 MB / 0.6144 GB, free: 4.094 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002062/0.5474, allocations: 329.5 kB / 0.6147 GB, free: 3.777 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03457/0.5819, allocations: 17.33 MB / 0.6316 GB, free: 1.777 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002238/0.5842, allocations: 1.521 MB / 0.6331 GB, free: 228 kB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001442/0.5857, allocations: 403.6 kB / 0.6335 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001185/0.5869, allocations: 0.6203 MB / 0.6341 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of SimCode: time 1.312e-06/0.5869, allocations: 0 / 0.6341 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09667/0.6836, allocations: 39.19 MB / 0.6723 GB, free: 8.289 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.69/15.37, allocations: 11.23 kB / 0.6724 GB, free: 8.281 MB / 0.5294 GB (rm -f PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_DFIG_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_DFIG.fmu > PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG_res.mat does not exist to compare? outputFormat=mat