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.001076/0.001077, allocations: 107 kB / 17.06 MB, free: 6.094 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.001198/0.001198, allocations: 195 kB / 18 MB, free: 5.172 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.402/1.402, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1732/0.1732, allocations: 38.03 MB / 329.9 MB, free: 8.73 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002241/0.002242, allocations: 63.91 kB / 457.6 MB, free: 7.336 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3569/0.3591, allocations: 58.06 MB / 0.5036 GB, free: 7.355 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_DFIG): time 0.00982/0.369, allocations: 10.61 MB / 0.514 GB, free: 15.93 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01003/0.3791, allocations: 6.229 MB / 0.5201 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001261/0.3804, allocations: 51.69 kB / 0.5201 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01208/0.3924, allocations: 5.516 MB / 0.5255 GB, free: 9.766 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003586/0.3961, allocations: 1.068 MB / 0.5265 GB, free: 9.176 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002228/0.3983, allocations: 0.6501 MB / 0.5272 GB, free: 8.879 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005757/0.4041, allocations: 3.213 MB / 0.5303 GB, free: 7.539 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001879/0.406, allocations: 1.007 MB / 0.5313 GB, free: 6.969 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002304/0.4083, allocations: 1.078 MB / 0.5323 GB, free: 6.348 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003366/0.4117, allocations: 1.347 MB / 0.5337 GB, free: 5.562 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008136/0.4125, allocations: 143.4 kB / 0.5338 GB, free: 5.562 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001615/0.4142, allocations: 426.9 kB / 0.5342 GB, free: 5.414 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001855/0.416, allocations: 0.8457 MB / 0.535 GB, free: 4.875 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002524/0.4186, allocations: 0.9285 MB / 0.5359 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004229/0.4228, allocations: 2.261 MB / 0.5381 GB, free: 2.754 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.4228, allocations: 1.219 kB / 0.5381 GB, free: 2.754 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.4228, allocations: 0 / 0.5381 GB, free: 2.754 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001258/0.423, allocations: 0 / 0.5381 GB, free: 2.754 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.007496/0.4305, allocations: 2.061 MB / 0.5402 GB, free: 1.289 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.588e-05/0.4305, allocations: 13.45 kB / 0.5402 GB, free: 1.285 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000572/0.4311, allocations: 225.8 kB / 0.5404 GB, free: 1.109 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002006/0.4331, allocations: 275.1 kB / 0.5406 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003459/0.4366, allocations: 1.216 MB / 0.5418 GB, free: 120 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.835e-05/0.4367, allocations: 100.2 kB / 0.5419 GB, free: 72 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007259/0.4375, allocations: 221.6 kB / 0.5421 GB, free: 15.99 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004031/0.4415, allocations: 2.105 MB / 0.5442 GB, free: 14.7 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.777e-05/0.4416, allocations: 14.62 kB / 0.5442 GB, free: 14.69 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000171/0.4418, allocations: 57.14 kB / 0.5443 GB, free: 14.65 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000671/0.4424, allocations: 187.2 kB / 0.5444 GB, free: 14.59 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003079/0.4455, allocations: 1.701 MB / 0.5461 GB, free: 12.88 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.01203/0.4576, allocations: 7.906 MB / 0.5538 GB, free: 4.633 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002265/0.4598, allocations: 1.631 MB / 0.5554 GB, free: 2.914 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009814/0.4608, allocations: 0.6606 MB / 0.5561 GB, free: 2.25 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.638e-05/0.461, allocations: 20.92 kB / 0.5561 GB, free: 2.23 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.383e-05/0.461, allocations: 51.55 kB / 0.5561 GB, free: 2.168 MB / 414.1 MB Notification: Performance of pre-optimization done (n=127): time 3.516e-06/0.461, allocations: 4 kB / 0.5561 GB, free: 2.164 MB / 414.1 MB Notification: Performance of matching and sorting (n=138): time 0.009142/0.4702, allocations: 5.076 MB / 0.5611 GB, free: 12.89 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.575e-05/0.4702, allocations: 94.36 kB / 0.5612 GB, free: 12.78 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001144/0.4714, allocations: 0.9387 MB / 0.5621 GB, free: 11.82 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.521e-05/0.4715, allocations: 49.7 kB / 0.5621 GB, free: 11.77 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005066/0.472, allocations: 0.7209 MB / 0.5629 GB, free: 11.04 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003906/0.4724, allocations: 0.489 MB / 0.5633 GB, free: 10.54 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004818/0.4729, allocations: 315.3 kB / 0.5636 GB, free: 10.23 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.633e-05/0.473, allocations: 305.1 kB / 0.5639 GB, free: 9.926 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00116/0.4742, allocations: 0.7027 MB / 0.5646 GB, free: 9.223 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001417/0.4756, allocations: 1.147 MB / 0.5657 GB, free: 7.891 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.009835/0.4854, allocations: 4.078 MB / 0.5697 GB, free: 3.645 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.32e-05/0.4855, allocations: 7.938 kB / 0.5697 GB, free: 3.637 MB / 430.1 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.006797/0.4923, allocations: 3.355 MB / 0.573 GB, free: 244 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.284e-05/0.4924, allocations: 11.94 kB / 0.573 GB, free: 232 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.819e-05/0.4924, allocations: 20.06 kB / 0.573 GB, free: 212 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003272/0.4957, allocations: 1.193 MB / 0.5742 GB, free: 15 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00131/0.497, allocations: 303.5 kB / 0.5745 GB, free: 14.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01898/0.516, allocations: 15.13 MB / 0.5893 GB, free: 14.99 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001378/0.5174, allocations: 71.95 kB / 0.5893 GB, free: 14.92 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002955/0.5178, allocations: 75.92 kB / 0.5894 GB, free: 14.85 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.001084/0.5189, allocations: 0.4973 MB / 0.5899 GB, free: 14.34 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003245/0.5192, allocations: 130.3 kB / 0.59 GB, free: 14.21 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003503/0.5227, allocations: 2.022 MB / 0.592 GB, free: 12.11 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.447e-05/0.5227, allocations: 12 kB / 0.592 GB, free: 12.1 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.387e-05/0.5228, allocations: 4 kB / 0.592 GB, free: 12.1 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.582e-05/0.5228, allocations: 7.969 kB / 0.592 GB, free: 12.09 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007576/0.5304, allocations: 3.752 MB / 0.5957 GB, free: 8.156 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.145e-06/0.5304, allocations: 4 kB / 0.5957 GB, free: 8.152 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0017/0.5321, allocations: 327.5 kB / 0.596 GB, free: 7.832 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005264/0.5326, allocations: 191.4 kB / 0.5962 GB, free: 7.633 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001456/0.5328, allocations: 51.97 kB / 0.5962 GB, free: 7.582 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005443/0.5383, allocations: 6.664 MB / 0.6027 GB, free: 364 kB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.235e-06/0.5383, allocations: 12.05 kB / 0.6027 GB, free: 352 kB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004508/0.5428, allocations: 2.717 MB / 0.6054 GB, free: 13.5 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009727/0.5438, allocations: 323.2 kB / 0.6057 GB, free: 13.16 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003546/0.5442, allocations: 43.98 kB / 0.6057 GB, free: 13.12 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009161/0.5451, allocations: 55.95 kB / 0.6058 GB, free: 13.07 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002268/0.5453, allocations: 109 kB / 0.6059 GB, free: 12.96 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.674e-05/0.5454, allocations: 36 kB / 0.6059 GB, free: 12.93 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0009678/0.5464, allocations: 0.6244 MB / 0.6065 GB, free: 12.29 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5464, allocations: 0 / 0.6065 GB, free: 12.29 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00221/0.5486, allocations: 488 kB / 0.607 GB, free: 11.82 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.00477/0.5534, allocations: 3.314 MB / 0.6102 GB, free: 8.359 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004734/0.5582, allocations: 2.719 MB / 0.6129 GB, free: 5.59 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.541e-06/0.5582, allocations: 4 kB / 0.6129 GB, free: 5.586 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001845/0.56, allocations: 1.242 MB / 0.6141 GB, free: 4.297 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001794/0.5619, allocations: 325.2 kB / 0.6144 GB, free: 3.984 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03019/0.5921, allocations: 17.27 MB / 0.6313 GB, free: 2.051 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001499/0.5936, allocations: 1.525 MB / 0.6328 GB, free: 0.4922 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00124/0.5948, allocations: 399.6 kB / 0.6332 GB, free: 100 kB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009986/0.5959, allocations: 0.6165 MB / 0.6338 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of SimCode: time 7.81e-07/0.5959, allocations: 0 / 0.6338 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08102/0.6769, allocations: 40.01 MB / 0.6728 GB, free: 7.742 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.52/15.19, allocations: 16.06 kB / 0.6728 GB, free: 7.727 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