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.001748/0.001748, allocations: 110.2 kB / 16.92 MB, free: 6.332 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.001926/0.001926, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.314/1.314, allocations: 222.9 MB / 241.6 MB, free: 15.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1735/0.1735, allocations: 38.05 MB / 329.7 MB, free: 8.863 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001177, allocations: 61.95 kB / 398.9 MB, free: 34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08578/0.08698, allocations: 58.07 MB / 457 MB, free: 7.988 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_DFIG): time 0.01126/0.09827, allocations: 10.6 MB / 467.6 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009104/0.1074, allocations: 6.231 MB / 473.8 MB, free: 7.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006985/0.1081, allocations: 47.75 kB / 473.8 MB, free: 7.043 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0098/0.118, allocations: 5.52 MB / 479.4 MB, free: 1.516 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002252/0.1202, allocations: 1.069 MB / 480.4 MB, free: 452 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001452/0.1217, allocations: 0.6472 MB / 481.1 MB, free: 15.79 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003397/0.1251, allocations: 3.212 MB / 484.3 MB, free: 12.57 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001206/0.1263, allocations: 1.008 MB / 485.3 MB, free: 11.54 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001318/0.1277, allocations: 1.055 MB / 486.4 MB, free: 10.48 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001585/0.1293, allocations: 1.343 MB / 487.7 MB, free: 9.129 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002254/0.1295, allocations: 144 kB / 487.8 MB, free: 8.988 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007639/0.1303, allocations: 419.5 kB / 488.2 MB, free: 8.578 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007163/0.131, allocations: 0.8533 MB / 489.1 MB, free: 7.723 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008758/0.1319, allocations: 0.9252 MB / 490 MB, free: 6.793 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002223/0.1341, allocations: 2.231 MB / 492.3 MB, free: 4.555 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.1341, allocations: 0 / 492.3 MB, free: 4.555 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1341, allocations: 0 / 492.3 MB, free: 4.555 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.375e-05/0.1342, allocations: 0 / 492.3 MB, free: 4.555 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.003862/0.138, allocations: 2.066 MB / 494.3 MB, free: 2.43 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/0.1381, allocations: 19.89 kB / 494.3 MB, free: 2.41 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002504/0.1384, allocations: 224 kB / 494.6 MB, free: 2.18 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001472/0.1398, allocations: 278.5 kB / 494.8 MB, free: 1.906 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002075/0.1419, allocations: 1.159 MB / 496 MB, free: 0.7031 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.657e-05/0.142, allocations: 106.6 kB / 496.1 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004627/0.1425, allocations: 219.8 kB / 496.3 MB, free: 392 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003015/0.1455, allocations: 2.103 MB / 498.4 MB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.349e-05/0.1456, allocations: 11.84 kB / 498.4 MB, free: 14.17 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000137/0.1457, allocations: 55.98 kB / 498.5 MB, free: 14.11 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006458/0.1464, allocations: 182.6 kB / 498.7 MB, free: 13.93 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00259/0.149, allocations: 1.713 MB / 0.4886 GB, free: 12.21 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.01006/0.159, allocations: 7.953 MB / 0.4964 GB, free: 3.918 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002093/0.1612, allocations: 1.626 MB / 0.498 GB, free: 2.207 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009116/0.1621, allocations: 0.6645 MB / 0.4986 GB, free: 1.539 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.955e-05/0.1622, allocations: 16.94 kB / 0.4987 GB, free: 1.523 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.023e-05/0.1622, allocations: 47.56 kB / 0.4987 GB, free: 1.469 MB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 3.366e-06/0.1622, allocations: 3.938 kB / 0.4987 GB, free: 1.465 MB / 382.1 MB Notification: Performance of matching and sorting (n=138): time 0.1601/0.3223, allocations: 5.073 MB / 0.5037 GB, free: 55.66 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.803e-05/0.3224, allocations: 102.6 kB / 0.5038 GB, free: 55.56 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001078/0.3234, allocations: 0.9359 MB / 0.5047 GB, free: 55.18 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.794e-05/0.3235, allocations: 51.27 kB / 0.5047 GB, free: 55.13 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003974/0.3239, allocations: 0.7191 MB / 0.5054 GB, free: 54.57 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002976/0.3242, allocations: 0.4948 MB / 0.5059 GB, free: 54.19 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004003/0.3247, allocations: 306.6 kB / 0.5062 GB, free: 54.05 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.287e-05/0.3247, allocations: 302.8 kB / 0.5065 GB, free: 53.75 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001019/0.3257, allocations: 0.7035 MB / 0.5072 GB, free: 53.54 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001187/0.3269, allocations: 1.152 MB / 0.5083 GB, free: 52.79 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.009452/0.3364, allocations: 4.1 MB / 0.5123 GB, free: 51.26 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.638e-05/0.3364, allocations: 4.25 kB / 0.5123 GB, free: 51.26 MB / 382.1 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.006294/0.3427, allocations: 3.36 MB / 0.5156 GB, free: 49.98 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.684e-05/0.3428, allocations: 10.56 kB / 0.5156 GB, free: 49.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.375e-05/0.3428, allocations: 13.44 kB / 0.5156 GB, free: 49.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002845/0.3456, allocations: 1.2 MB / 0.5168 GB, free: 49.74 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001142/0.3468, allocations: 298.2 kB / 0.5171 GB, free: 49.71 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01453/0.3613, allocations: 15.14 MB / 0.5319 GB, free: 39.06 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001069/0.3624, allocations: 79.84 kB / 0.5319 GB, free: 38.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000108/0.3626, allocations: 72 kB / 0.532 GB, free: 38.91 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.0006545/0.3632, allocations: 0.495 MB / 0.5325 GB, free: 38.41 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001685/0.3634, allocations: 134.3 kB / 0.5326 GB, free: 38.28 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002497/0.3659, allocations: 2.013 MB / 0.5346 GB, free: 36.19 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.989e-06/0.3659, allocations: 19.94 kB / 0.5346 GB, free: 36.17 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.3659, allocations: 4 kB / 0.5346 GB, free: 36.17 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.17e-05/0.3659, allocations: 11.91 kB / 0.5346 GB, free: 36.16 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00475/0.3707, allocations: 3.765 MB / 0.5383 GB, free: 32.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.562e-06/0.3707, allocations: 8.062 kB / 0.5383 GB, free: 32.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001451/0.3722, allocations: 319.6 kB / 0.5386 GB, free: 31.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000414/0.3726, allocations: 199.2 kB / 0.5388 GB, free: 31.73 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.006e-05/0.3727, allocations: 43.98 kB / 0.5388 GB, free: 31.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003342/0.3761, allocations: 6.678 MB / 0.5454 GB, free: 24.46 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.3761, allocations: 7.938 kB / 0.5454 GB, free: 24.45 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003018/0.3791, allocations: 2.708 MB / 0.548 GB, free: 21.62 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004508/0.3796, allocations: 319.3 kB / 0.5483 GB, free: 21.29 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001806/0.3798, allocations: 43.98 kB / 0.5484 GB, free: 21.24 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006645/0.3804, allocations: 59.94 kB / 0.5484 GB, free: 21.18 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001812/0.3806, allocations: 101.2 kB / 0.5485 GB, free: 21.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.803e-05/0.3807, allocations: 46.98 kB / 0.5486 GB, free: 21.04 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005912/0.3813, allocations: 0.6282 MB / 0.5492 GB, free: 20.41 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3813, allocations: 4 kB / 0.5492 GB, free: 20.4 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001495/0.3828, allocations: 483.8 kB / 0.5496 GB, free: 19.93 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.003188/0.386, allocations: 3.318 MB / 0.5529 GB, free: 16.47 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004886/0.3909, allocations: 3.501 MB / 0.5563 GB, free: 12.95 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.57e-06/0.3909, allocations: 0 / 0.5563 GB, free: 12.95 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001388/0.3923, allocations: 1.242 MB / 0.5575 GB, free: 11.66 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001345/0.3937, allocations: 317 kB / 0.5578 GB, free: 11.35 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02444/0.4181, allocations: 17.95 MB / 0.5753 GB, free: 8.598 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001159/0.4193, allocations: 1.513 MB / 0.5768 GB, free: 7.051 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001163/0.4205, allocations: 407.6 kB / 0.5772 GB, free: 6.648 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007595/0.4213, allocations: 0.6203 MB / 0.5778 GB, free: 6.027 MB / 398.1 MB Notification: Performance of SimCode: time 4.01e-07/0.4213, allocations: 0 / 0.5778 GB, free: 6.027 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06969/0.491, allocations: 38.61 MB / 0.6155 GB, free: 15.71 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.52/12.01, allocations: 0 / 0.6155 GB, free: 15.71 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