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.0009431/0.0009433, allocations: 98.38 kB / 16.5 MB, free: 6.641 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.001044/0.001044, allocations: 194.6 kB / 17.42 MB, free: 6.066 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.209/1.209, allocations: 222.9 MB / 241.1 MB, free: 13.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1569/0.1569, allocations: 38.05 MB / 329.3 MB, free: 8.848 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001057/0.001057, allocations: 60.77 kB / 398.2 MB, free: 34.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07709/0.07816, allocations: 58.06 MB / 456.2 MB, free: 8.418 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_DFIG): time 0.01134/0.08954, allocations: 12.63 MB / 468.9 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008952/0.09851, allocations: 7.033 MB / 475.9 MB, free: 4.672 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000907/0.09944, allocations: 95.38 kB / 476 MB, free: 4.578 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008726/0.1082, allocations: 5.381 MB / 481.4 MB, free: 15.19 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001858/0.11, allocations: 1.019 MB / 482.4 MB, free: 14.17 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001218/0.1113, allocations: 0.5811 MB / 483 MB, free: 13.59 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003606/0.1149, allocations: 4.714 MB / 487.7 MB, free: 8.859 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009996/0.1159, allocations: 0.9028 MB / 488.6 MB, free: 7.922 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008537/0.1168, allocations: 0.9101 MB / 489.5 MB, free: 7.008 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001331/0.1181, allocations: 1.421 MB / 490.9 MB, free: 5.582 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000185/0.1183, allocations: 92 kB / 491 MB, free: 5.492 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006306/0.1189, allocations: 387.5 kB / 491.4 MB, free: 5.113 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006078/0.1196, allocations: 0.8065 MB / 492.2 MB, free: 4.305 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007234/0.1203, allocations: 0.8705 MB / 493.1 MB, free: 3.43 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001538/0.1218, allocations: 2.184 MB / 495.3 MB, free: 1.238 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.1218, allocations: 3.938 kB / 495.3 MB, free: 1.234 MB / 366.1 MB Notification: Performance of FrontEnd: time 7.12e-07/0.1219, allocations: 0 / 495.3 MB, free: 1.234 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.551e-05/0.1219, allocations: 0 / 495.3 MB, free: 1.234 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.003367/0.1252, allocations: 2.067 MB / 497.3 MB, free: 15.11 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.715e-05/0.1253, allocations: 12.03 kB / 497.3 MB, free: 15.1 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002344/0.1255, allocations: 224 kB / 497.6 MB, free: 14.87 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001316/0.1269, allocations: 282.4 kB / 497.8 MB, free: 14.59 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001855/0.1287, allocations: 1.148 MB / 499 MB, free: 13.4 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.037e-05/0.1288, allocations: 98.61 kB / 499.1 MB, free: 13.3 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004241/0.1292, allocations: 231.7 kB / 499.3 MB, free: 13.07 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002648/0.1319, allocations: 2.103 MB / 0.4897 GB, free: 10.87 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.469e-05/0.1319, allocations: 7.938 kB / 0.4897 GB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001302/0.1321, allocations: 59.98 kB / 0.4897 GB, free: 10.8 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005678/0.1326, allocations: 182.6 kB / 0.4899 GB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002436/0.1351, allocations: 1.713 MB / 0.4916 GB, free: 8.906 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.008956/0.144, allocations: 7.961 MB / 0.4993 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1457/0.2897, allocations: 1.612 MB / 0.5009 GB, free: 56.41 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009801/0.2907, allocations: 0.6659 MB / 0.5016 GB, free: 56.39 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.87e-05/0.2908, allocations: 19.89 kB / 0.5016 GB, free: 56.39 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.555e-05/0.2908, allocations: 47.3 kB / 0.5016 GB, free: 56.35 MB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 2.995e-06/0.2908, allocations: 0.5 kB / 0.5016 GB, free: 56.35 MB / 382.1 MB Notification: Performance of matching and sorting (n=138): time 0.007563/0.2984, allocations: 5.087 MB / 0.5066 GB, free: 54.09 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.157e-05/0.2985, allocations: 92.73 kB / 0.5067 GB, free: 53.99 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009485/0.2994, allocations: 0.9394 MB / 0.5076 GB, free: 53.61 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.982e-05/0.2995, allocations: 51.02 kB / 0.5077 GB, free: 53.56 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003169/0.2998, allocations: 0.7178 MB / 0.5084 GB, free: 53 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002546/0.3001, allocations: 0.4986 MB / 0.5088 GB, free: 52.61 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003784/0.3005, allocations: 300.9 kB / 0.5091 GB, free: 52.48 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.021e-05/0.3005, allocations: 309.5 kB / 0.5094 GB, free: 52.18 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009949/0.3015, allocations: 0.7078 MB / 0.5101 GB, free: 51.95 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001149/0.3026, allocations: 1.149 MB / 0.5112 GB, free: 51.21 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.009062/0.3117, allocations: 4.078 MB / 0.5152 GB, free: 49.7 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.704e-06/0.3117, allocations: 2.938 kB / 0.5152 GB, free: 49.7 MB / 382.1 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.005689/0.3174, allocations: 3.357 MB / 0.5185 GB, free: 48.41 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.157e-05/0.3175, allocations: 11.09 kB / 0.5185 GB, free: 48.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.689e-05/0.3175, allocations: 12.22 kB / 0.5185 GB, free: 48.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002607/0.3201, allocations: 1.196 MB / 0.5197 GB, free: 48.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001015/0.3211, allocations: 302.4 kB / 0.52 GB, free: 48.15 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01275/0.3339, allocations: 13.79 MB / 0.5335 GB, free: 37.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007826/0.3347, allocations: 76.83 kB / 0.5335 GB, free: 37.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001014/0.3348, allocations: 79.7 kB / 0.5336 GB, free: 37.48 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.0005739/0.3354, allocations: 0.4989 MB / 0.5341 GB, free: 36.98 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001474/0.3355, allocations: 138.3 kB / 0.5342 GB, free: 36.84 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002322/0.3379, allocations: 2.018 MB / 0.5362 GB, free: 34.75 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.893e-06/0.3379, allocations: 16 kB / 0.5362 GB, free: 34.73 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.66e-06/0.3379, allocations: 4.812 kB / 0.5362 GB, free: 34.73 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.949e-06/0.3379, allocations: 11.91 kB / 0.5362 GB, free: 34.72 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004299/0.3422, allocations: 3.756 MB / 0.5399 GB, free: 30.81 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/0.3422, allocations: 5.547 kB / 0.5399 GB, free: 30.81 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001433/0.3437, allocations: 327.5 kB / 0.5402 GB, free: 30.49 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003947/0.3441, allocations: 189.5 kB / 0.5404 GB, free: 30.29 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.167e-05/0.3442, allocations: 49.47 kB / 0.5404 GB, free: 30.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002956/0.3471, allocations: 6.144 MB / 0.5464 GB, free: 23.59 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.3471, allocations: 4 kB / 0.5464 GB, free: 23.58 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002709/0.3499, allocations: 2.712 MB / 0.5491 GB, free: 20.75 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003407/0.3502, allocations: 315.3 kB / 0.5494 GB, free: 20.42 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001679/0.3504, allocations: 43.98 kB / 0.5494 GB, free: 20.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006147/0.351, allocations: 63.88 kB / 0.5495 GB, free: 20.31 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001596/0.3512, allocations: 97.12 kB / 0.5496 GB, free: 20.22 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.712e-05/0.3512, allocations: 39.98 kB / 0.5496 GB, free: 20.18 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004997/0.3517, allocations: 0.6283 MB / 0.5502 GB, free: 19.54 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.71e-07/0.3518, allocations: 0 / 0.5502 GB, free: 19.54 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001137/0.3529, allocations: 489.5 kB / 0.5507 GB, free: 19.07 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.002916/0.3558, allocations: 3.315 MB / 0.5539 GB, free: 15.61 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003007/0.3588, allocations: 2.668 MB / 0.5565 GB, free: 12.9 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.3589, allocations: 0 / 0.5565 GB, free: 12.9 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001257/0.3601, allocations: 1.241 MB / 0.5578 GB, free: 11.61 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001116/0.3612, allocations: 298.4 kB / 0.558 GB, free: 11.31 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02164/0.3829, allocations: 18.57 MB / 0.5762 GB, free: 7.934 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001025/0.3839, allocations: 1.517 MB / 0.5777 GB, free: 6.387 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001024/0.385, allocations: 399.6 kB / 0.578 GB, free: 5.992 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007257/0.3857, allocations: 0.6282 MB / 0.5786 GB, free: 5.363 MB / 398.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3857, allocations: 0 / 0.5786 GB, free: 5.363 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05029/0.436, allocations: 37.28 MB / 0.6151 GB, free: 404 kB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002138/0.4362, allocations: 238.7 kB / 0.6153 GB, free: 140 kB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.385/2.822, allocations: 0 / 0.6153 GB, free: 140 kB / 430.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