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.0007474/0.0007475, allocations: 87.58 kB / 16.65 MB, free: 6.535 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.0008075/0.0008076, allocations: 176.2 kB / 17.56 MB, free: 6.18 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.235/1.235, allocations: 223.2 MB / 241.6 MB, free: 112 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1631/0.1631, allocations: 38.1 MB / 330.8 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002917/0.0002917, allocations: 9.094 kB / 400.8 MB, free: 34.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09386/0.09416, allocations: 59.18 MB / 460 MB, free: 6.977 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_DFIG): time 0.01128/0.1055, allocations: 12.1 MB / 472.1 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009618/0.1151, allocations: 6.918 MB / 479 MB, free: 3.879 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000848/0.116, allocations: 87.38 kB / 479.1 MB, free: 3.793 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007491/0.1235, allocations: 4.855 MB / 483.9 MB, free: 14.93 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001925/0.1254, allocations: 1.008 MB / 484.9 MB, free: 13.92 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001289/0.1267, allocations: 0.5772 MB / 485.5 MB, free: 13.34 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004201/0.1309, allocations: 4.73 MB / 490.2 MB, free: 8.598 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001777/0.1327, allocations: 1.305 MB / 491.6 MB, free: 7.227 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001051/0.1338, allocations: 0.8672 MB / 492.4 MB, free: 6.355 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001555/0.1354, allocations: 1.363 MB / 493.8 MB, free: 4.988 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001569/0.1355, allocations: 76 kB / 493.9 MB, free: 4.914 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000679/0.1362, allocations: 363.5 kB / 494.2 MB, free: 4.559 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006731/0.1369, allocations: 0.7752 MB / 495 MB, free: 3.781 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007754/0.1377, allocations: 0.8565 MB / 495.8 MB, free: 2.914 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001767/0.1395, allocations: 2.149 MB / 498 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1395, allocations: 0 / 498 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1395, allocations: 0 / 498 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.891e-05/0.1395, allocations: 8 kB / 498 MB, free: 0.75 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.003286/0.1428, allocations: 1.733 MB / 499.7 MB, free: 14.95 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.791e-05/0.1428, allocations: 8.031 kB / 499.7 MB, free: 14.95 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002609/0.1431, allocations: 228 kB / 500 MB, free: 14.71 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001407/0.1445, allocations: 282.5 kB / 0.4885 GB, free: 14.43 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001987/0.1465, allocations: 1.155 MB / 0.4896 GB, free: 13.23 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.181e-05/0.1466, allocations: 106.6 kB / 0.4897 GB, free: 13.13 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004752/0.1471, allocations: 223.8 kB / 0.49 GB, free: 12.91 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003022/0.1501, allocations: 2.119 MB / 0.492 GB, free: 10.69 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.316e-05/0.1502, allocations: 3.906 kB / 0.492 GB, free: 10.69 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001579/0.1504, allocations: 59.98 kB / 0.4921 GB, free: 10.63 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006532/0.151, allocations: 182.6 kB / 0.4923 GB, free: 10.45 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002775/0.1538, allocations: 1.721 MB / 0.4939 GB, free: 8.723 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.009679/0.1635, allocations: 7.972 MB / 0.5017 GB, free: 420 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1666/0.3301, allocations: 1.625 MB / 0.5033 GB, free: 55.42 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001035/0.3312, allocations: 0.6662 MB / 0.504 GB, free: 55.41 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.324e-05/0.3312, allocations: 18.5 kB / 0.504 GB, free: 55.4 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.351e-05/0.3313, allocations: 51.38 kB / 0.504 GB, free: 55.36 MB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 3.387e-06/0.3313, allocations: 0 / 0.504 GB, free: 55.36 MB / 382.1 MB Notification: Performance of matching and sorting (n=138): time 0.00829/0.3396, allocations: 5.119 MB / 0.509 GB, free: 53.64 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.684e-05/0.3396, allocations: 91.89 kB / 0.5091 GB, free: 53.55 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001056/0.3407, allocations: 0.9353 MB / 0.51 GB, free: 53.17 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.697e-05/0.3408, allocations: 52.64 kB / 0.5101 GB, free: 53.12 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003655/0.3411, allocations: 0.7196 MB / 0.5108 GB, free: 52.56 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002923/0.3414, allocations: 0.499 MB / 0.5113 GB, free: 52.17 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000195/0.3416, allocations: 151.6 kB / 0.5114 GB, free: 52.1 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.472e-05/0.3417, allocations: 305.1 kB / 0.5117 GB, free: 51.8 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00105/0.3427, allocations: 0.7156 MB / 0.5124 GB, free: 51.58 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001358/0.3441, allocations: 1.157 MB / 0.5135 GB, free: 50.83 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.009199/0.3533, allocations: 4.106 MB / 0.5175 GB, free: 49.3 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.055e-06/0.3533, allocations: 4.594 kB / 0.5176 GB, free: 49.3 MB / 382.1 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.006012/0.3594, allocations: 3.366 MB / 0.5208 GB, free: 48.02 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.344e-05/0.3594, allocations: 10.56 kB / 0.5208 GB, free: 48.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.134e-05/0.3594, allocations: 13.75 kB / 0.5209 GB, free: 48.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002638/0.3621, allocations: 1.196 MB / 0.522 GB, free: 47.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00099/0.3631, allocations: 308 kB / 0.5223 GB, free: 47.76 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01336/0.3764, allocations: 13.83 MB / 0.5358 GB, free: 35.71 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008847/0.3773, allocations: 87.77 kB / 0.5359 GB, free: 35.63 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001032/0.3774, allocations: 72.7 kB / 0.536 GB, free: 35.56 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 sytem: 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.0006663/0.3781, allocations: 0.4952 MB / 0.5365 GB, free: 35.06 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001429/0.3783, allocations: 130.4 kB / 0.5366 GB, free: 34.93 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002483/0.3808, allocations: 2.026 MB / 0.5386 GB, free: 32.82 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.576e-06/0.3808, allocations: 16 kB / 0.5386 GB, free: 32.81 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.3808, allocations: 4 kB / 0.5386 GB, free: 32.8 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.068e-05/0.3808, allocations: 3.984 kB / 0.5386 GB, free: 32.8 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004442/0.3853, allocations: 3.781 MB / 0.5423 GB, free: 28.87 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.061e-06/0.3853, allocations: 4 kB / 0.5423 GB, free: 28.87 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001417/0.3867, allocations: 328.4 kB / 0.5426 GB, free: 28.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003906/0.3871, allocations: 189.4 kB / 0.5428 GB, free: 28.35 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.871e-05/0.3872, allocations: 43.98 kB / 0.5428 GB, free: 28.31 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003099/0.3903, allocations: 6.153 MB / 0.5488 GB, free: 21.64 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.3903, allocations: 4 kB / 0.5488 GB, free: 21.64 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002817/0.3931, allocations: 2.735 MB / 0.5515 GB, free: 18.78 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003299/0.3935, allocations: 323.2 kB / 0.5518 GB, free: 18.45 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001584/0.3936, allocations: 43.98 kB / 0.5519 GB, free: 18.4 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006234/0.3943, allocations: 59.89 kB / 0.5519 GB, free: 18.34 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001565/0.3944, allocations: 101.1 kB / 0.552 GB, free: 18.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.414e-05/0.3945, allocations: 40.09 kB / 0.5521 GB, free: 18.21 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000524/0.395, allocations: 0.6282 MB / 0.5527 GB, free: 17.57 MB / 382.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.395, allocations: 0 / 0.5527 GB, free: 17.57 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00119/0.3962, allocations: 487.9 kB / 0.5531 GB, free: 17.09 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.003069/0.3993, allocations: 3.33 MB / 0.5564 GB, free: 13.62 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003183/0.4025, allocations: 2.681 MB / 0.559 GB, free: 10.9 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.4025, allocations: 4 kB / 0.559 GB, free: 10.89 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001318/0.4038, allocations: 1.237 MB / 0.5602 GB, free: 9.605 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001609/0.4055, allocations: 307.9 kB / 0.5605 GB, free: 9.309 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02391/0.4294, allocations: 19 MB / 0.5791 GB, free: 5.453 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001182/0.4306, allocations: 1.525 MB / 0.5805 GB, free: 3.895 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001083/0.4317, allocations: 399.6 kB / 0.5809 GB, free: 3.5 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007889/0.4325, allocations: 0.6243 MB / 0.5815 GB, free: 2.875 MB / 398.1 MB Notification: Performance of SimCode: time 5.41e-07/0.4325, allocations: 0 / 0.5815 GB, free: 2.875 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05278/0.4853, allocations: 36.75 MB / 0.6174 GB, free: 14.46 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002336/0.4855, allocations: 233 kB / 0.6177 GB, free: 14.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.396/2.882, allocations: 0 / 0.6177 GB, free: 14.2 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