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.00115/0.00115, allocations: 115.1 kB / 16.63 MB, free: 6.812 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.001197/0.001197, allocations: 186 kB / 17.55 MB, free: 5.934 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.313/1.313, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1772/0.1772, allocations: 38.03 MB / 329.4 MB, free: 8.969 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 65.64 kB / 398.4 MB, free: 34.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08454/0.08578, allocations: 58.06 MB / 456.4 MB, free: 8.336 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_DFIG): time 0.01185/0.09766, allocations: 12.63 MB / 469.1 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01153/0.1092, allocations: 6.853 MB / 475.9 MB, free: 4.773 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002129/0.1114, allocations: 91.44 kB / 476 MB, free: 4.684 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01145/0.1229, allocations: 5.543 MB / 481.6 MB, free: 15.13 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002847/0.1258, allocations: 0.9922 MB / 482.6 MB, free: 14.13 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001899/0.1277, allocations: 0.5889 MB / 483.1 MB, free: 13.54 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004983/0.1327, allocations: 3.263 MB / 486.4 MB, free: 10.27 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002029/0.1347, allocations: 1.051 MB / 487.5 MB, free: 9.195 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002254/0.137, allocations: 1.074 MB / 488.5 MB, free: 8.117 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002342/0.1394, allocations: 1.445 MB / 490 MB, free: 6.668 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005807/0.14, allocations: 144 kB / 490.1 MB, free: 6.527 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001256/0.1412, allocations: 435.4 kB / 490.5 MB, free: 6.102 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001166/0.1424, allocations: 0.8495 MB / 491.4 MB, free: 5.25 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00181/0.1442, allocations: 0.9329 MB / 492.3 MB, free: 4.312 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003138/0.1474, allocations: 2.239 MB / 494.6 MB, free: 2.066 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.1474, allocations: 0 / 494.6 MB, free: 2.066 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1474, allocations: 0 / 494.6 MB, free: 2.066 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.946e-05/0.1475, allocations: 0 / 494.6 MB, free: 2.066 MB / 366.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.004681/0.1522, allocations: 2.056 MB / 496.6 MB, free: 15.95 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.438e-05/0.1523, allocations: 19.89 kB / 496.6 MB, free: 15.93 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003956/0.1527, allocations: 220 kB / 496.9 MB, free: 15.7 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001618/0.1543, allocations: 286.4 kB / 497.1 MB, free: 15.42 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002407/0.1567, allocations: 1.151 MB / 498.3 MB, free: 14.23 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.25e-05/0.1568, allocations: 98.62 kB / 498.4 MB, free: 14.13 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005727/0.1574, allocations: 223.7 kB / 498.6 MB, free: 13.91 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003357/0.1607, allocations: 2.107 MB / 0.489 GB, free: 11.7 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.212e-05/0.1608, allocations: 11.94 kB / 0.489 GB, free: 11.69 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001484/0.161, allocations: 59.98 kB / 0.489 GB, free: 11.63 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006416/0.1616, allocations: 186.6 kB / 0.4892 GB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002925/0.1646, allocations: 1.705 MB / 0.4909 GB, free: 9.738 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.01082/0.1754, allocations: 7.957 MB / 0.4987 GB, free: 1.438 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1487/0.3241, allocations: 1.62 MB / 0.5002 GB, free: 56.41 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001225/0.3253, allocations: 0.6649 MB / 0.5009 GB, free: 56.39 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.967e-05/0.3254, allocations: 14.44 kB / 0.5009 GB, free: 56.39 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.542e-05/0.3255, allocations: 47.89 kB / 0.5009 GB, free: 56.35 MB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 2.936e-06/0.3255, allocations: 0.8438 kB / 0.5009 GB, free: 56.35 MB / 382.1 MB Notification: Performance of matching and sorting (n=138): time 0.008245/0.3337, allocations: 5.091 MB / 0.5059 GB, free: 54.32 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.855e-05/0.3338, allocations: 92.66 kB / 0.506 GB, free: 54.22 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001143/0.335, allocations: 0.9322 MB / 0.5069 GB, free: 53.85 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.529e-05/0.3351, allocations: 50.67 kB / 0.507 GB, free: 53.8 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003524/0.3354, allocations: 0.7231 MB / 0.5077 GB, free: 53.23 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000312/0.3357, allocations: 0.4962 MB / 0.5082 GB, free: 52.85 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004297/0.3362, allocations: 304.9 kB / 0.5084 GB, free: 52.71 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.183e-05/0.3362, allocations: 308.4 kB / 0.5087 GB, free: 52.41 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001092/0.3373, allocations: 0.7059 MB / 0.5094 GB, free: 52.19 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001181/0.3385, allocations: 1.155 MB / 0.5106 GB, free: 51.43 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.009671/0.3482, allocations: 4.097 MB / 0.5146 GB, free: 49.92 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.481e-05/0.3482, allocations: 4.5 kB / 0.5146 GB, free: 49.92 MB / 382.1 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.006207/0.3544, allocations: 3.355 MB / 0.5178 GB, free: 48.64 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.835e-05/0.3545, allocations: 10.16 kB / 0.5178 GB, free: 48.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.883e-05/0.3545, allocations: 13.03 kB / 0.5179 GB, free: 48.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002662/0.3572, allocations: 1.206 MB / 0.519 GB, free: 48.4 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001117/0.3583, allocations: 294.6 kB / 0.5193 GB, free: 48.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01374/0.3721, allocations: 15.16 MB / 0.5341 GB, free: 36.37 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009979/0.3731, allocations: 76.75 kB / 0.5342 GB, free: 36.3 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001028/0.3732, allocations: 68 kB / 0.5343 GB, free: 36.23 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.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.0006339/0.3738, allocations: 0.5035 MB / 0.5348 GB, free: 35.72 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001533/0.374, allocations: 134.3 kB / 0.5349 GB, free: 35.59 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002362/0.3764, allocations: 2.018 MB / 0.5368 GB, free: 33.5 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.514e-06/0.3764, allocations: 16 kB / 0.5369 GB, free: 33.48 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.3764, allocations: 4.875 kB / 0.5369 GB, free: 33.48 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.099e-05/0.3764, allocations: 11.97 kB / 0.5369 GB, free: 33.46 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004356/0.3808, allocations: 3.752 MB / 0.5405 GB, free: 29.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.071e-06/0.3808, allocations: 0 / 0.5405 GB, free: 29.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00143/0.3822, allocations: 336 kB / 0.5409 GB, free: 29.24 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003904/0.3826, allocations: 189 kB / 0.541 GB, free: 29.04 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.671e-05/0.3827, allocations: 44.8 kB / 0.5411 GB, free: 29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00312/0.3859, allocations: 6.677 MB / 0.5476 GB, free: 21.78 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.3859, allocations: 5.125 kB / 0.5476 GB, free: 21.77 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00279/0.3887, allocations: 2.719 MB / 0.5503 GB, free: 18.93 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004035/0.3891, allocations: 311.4 kB / 0.5506 GB, free: 18.61 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001617/0.3893, allocations: 53.84 kB / 0.5506 GB, free: 18.55 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006386/0.3899, allocations: 59.86 kB / 0.5507 GB, free: 18.5 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001772/0.3901, allocations: 101 kB / 0.5508 GB, free: 18.4 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.861e-05/0.3902, allocations: 40 kB / 0.5508 GB, free: 18.36 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005501/0.3907, allocations: 0.6244 MB / 0.5514 GB, free: 17.73 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3907, allocations: 4 kB / 0.5514 GB, free: 17.72 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001413/0.3921, allocations: 484 kB / 0.5519 GB, free: 17.25 MB / 382.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.002996/0.3951, allocations: 3.317 MB / 0.5551 GB, free: 13.79 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004721/0.3999, allocations: 3.495 MB / 0.5585 GB, free: 10.27 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.3999, allocations: 0 / 0.5585 GB, free: 10.27 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00131/0.4012, allocations: 1.239 MB / 0.5597 GB, free: 8.977 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001294/0.4025, allocations: 322.9 kB / 0.5601 GB, free: 8.668 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02422/0.4267, allocations: 18.55 MB / 0.5782 GB, free: 5.309 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001053/0.4278, allocations: 1.531 MB / 0.5797 GB, free: 3.75 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001113/0.429, allocations: 395.5 kB / 0.58 GB, free: 3.359 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007149/0.4297, allocations: 0.6294 MB / 0.5807 GB, free: 2.73 MB / 398.1 MB Notification: Performance of SimCode: time 9.12e-07/0.4297, allocations: 0 / 0.5807 GB, free: 2.73 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.533/2.963, allocations: 38.45 MB / 0.6182 GB, free: 12.62 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002127/2.963, allocations: 242.1 kB / 0.6184 GB, free: 12.36 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.65/5.613, allocations: 3.938 kB / 0.6184 GB, free: 12.35 MB / 446.1 MB (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