Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_IG.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_IG,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_IG",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Wind.WindTurbine_IG,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_IG",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.00111/0.00111, allocations: 112.2 kB / 17.06 MB, free: 5.773 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.001139/0.001139, allocations: 199 kB / 18 MB, free: 4.949 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.333/1.333, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1859/0.1859, allocations: 38.04 MB / 329.9 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001427, allocations: 63.91 kB / 457.6 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3247/0.3262, allocations: 58.05 MB / 0.5036 GB, free: 7.426 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_IG): time 0.00776/0.334, allocations: 8.101 MB / 0.5115 GB, free: 1.77 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.009286/0.3433, allocations: 5.485 MB / 0.5169 GB, free: 13.96 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000856/0.3442, allocations: 29.47 kB / 0.5169 GB, free: 13.95 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01284/0.3571, allocations: 5.232 MB / 0.522 GB, free: 12.32 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002883/0.36, allocations: 0.8339 MB / 0.5228 GB, free: 11.87 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001608/0.3616, allocations: 498.6 kB / 0.5233 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004579/0.3662, allocations: 2.529 MB / 0.5258 GB, free: 10.72 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001006/0.3672, allocations: 0.6276 MB / 0.5264 GB, free: 10.44 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001413/0.3687, allocations: 0.7783 MB / 0.5271 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001436/0.3701, allocations: 1.03 MB / 0.5281 GB, free: 9.746 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001831/0.3703, allocations: 103.3 kB / 0.5282 GB, free: 9.746 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007819/0.3711, allocations: 373.9 kB / 0.5286 GB, free: 9.617 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006125/0.3717, allocations: 0.655 MB / 0.5292 GB, free: 9.203 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00078/0.3725, allocations: 0.6899 MB / 0.5299 GB, free: 8.742 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002081/0.3746, allocations: 1.726 MB / 0.5316 GB, free: 7.609 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.3746, allocations: 1.219 kB / 0.5316 GB, free: 7.609 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3746, allocations: 0 / 0.5316 GB, free: 7.609 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.439e-05/0.3747, allocations: 0 / 0.5316 GB, free: 7.609 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: 281 * Number of variables: 281 Notification: Performance of Generate backend data structure: time 0.00332/0.378, allocations: 1.593 MB / 0.5332 GB, free: 6.438 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.179e-05/0.378, allocations: 18.14 kB / 0.5332 GB, free: 6.43 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002223/0.3783, allocations: 166.3 kB / 0.5333 GB, free: 6.297 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001258/0.3795, allocations: 215.3 kB / 0.5335 GB, free: 6.195 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002105/0.3817, allocations: 0.9504 MB / 0.5345 GB, free: 5.508 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.589e-05/0.3817, allocations: 70.92 kB / 0.5345 GB, free: 5.473 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004415/0.3822, allocations: 187.2 kB / 0.5347 GB, free: 5.406 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002536/0.3847, allocations: 1.565 MB / 0.5362 GB, free: 4.438 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.115e-05/0.3848, allocations: 7.125 kB / 0.5362 GB, free: 4.434 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00011/0.3849, allocations: 37.3 kB / 0.5363 GB, free: 4.406 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006408/0.3855, allocations: 148 kB / 0.5364 GB, free: 4.359 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002189/0.3877, allocations: 1.248 MB / 0.5376 GB, free: 3.766 MB / 398.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.009032/0.3968, allocations: 6.458 MB / 0.5439 GB, free: 14.55 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001547/0.3984, allocations: 0.9198 MB / 0.5448 GB, free: 13.85 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007549/0.3991, allocations: 0.5044 MB / 0.5453 GB, free: 13.34 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.1e-05/0.3992, allocations: 9 kB / 0.5453 GB, free: 13.32 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.404e-05/0.3992, allocations: 47.5 kB / 0.5454 GB, free: 13.27 MB / 414.1 MB Notification: Performance of pre-optimization done (n=91): time 3.366e-06/0.3993, allocations: 0 / 0.5454 GB, free: 13.27 MB / 414.1 MB Notification: Performance of matching and sorting (n=96): time 0.006704/0.406, allocations: 3.67 MB / 0.549 GB, free: 9.461 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.564e-05/0.4061, allocations: 98.05 kB / 0.5491 GB, free: 9.344 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008533/0.4069, allocations: 0.7273 MB / 0.5498 GB, free: 8.609 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.774e-05/0.407, allocations: 53.62 kB / 0.5498 GB, free: 8.551 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004035/0.4074, allocations: 0.5535 MB / 0.5504 GB, free: 7.988 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003284/0.4077, allocations: 362.8 kB / 0.5507 GB, free: 7.629 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004018/0.4082, allocations: 234.8 kB / 0.5509 GB, free: 7.395 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001991/0.4084, allocations: 414.7 kB / 0.5513 GB, free: 6.98 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001057/0.4094, allocations: 0.5647 MB / 0.5519 GB, free: 6.414 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001365/0.4108, allocations: 0.8932 MB / 0.5528 GB, free: 5.391 MB / 414.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.008431/0.4192, allocations: 3.22 MB / 0.5559 GB, free: 2.047 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.965e-05/0.4193, allocations: 4 kB / 0.5559 GB, free: 2.043 MB / 414.1 MB Notification: Performance of matching and sorting (n=164) (initialization): time 0.006644/0.4259, allocations: 2.745 MB / 0.5586 GB, free: 15.28 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.617e-05/0.426, allocations: 8 kB / 0.5586 GB, free: 15.27 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.293e-05/0.426, allocations: 8 kB / 0.5586 GB, free: 15.27 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003015/0.429, allocations: 1.154 MB / 0.5597 GB, free: 14.11 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009122/0.43, allocations: 203.6 kB / 0.5599 GB, free: 13.91 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01775/0.4477, allocations: 12.28 MB / 0.5719 GB, free: 1.336 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009255/0.4487, allocations: 71.8 kB / 0.572 GB, free: 1.266 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001498/0.4489, allocations: 52 kB / 0.572 GB, free: 1.215 MB / 430.1 MB Warning: The initial conditions are over specified. The following 3 initial equations are redundant, so they are removed from the initialization system: $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: 43 * 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 (96): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(24,28)} Notification: Performance of prepare postOptimizeDAE: time 0.000687/0.4496, allocations: 401.3 kB / 0.5724 GB, free: 0.8125 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001899/0.4498, allocations: 90.88 kB / 0.5725 GB, free: 0.7227 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002342/0.4521, allocations: 1.415 MB / 0.5739 GB, free: 15.25 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.034e-05/0.4521, allocations: 12 kB / 0.5739 GB, free: 15.24 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.4521, allocations: 0 / 0.5739 GB, free: 15.24 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.038e-05/0.4522, allocations: 3.984 kB / 0.5739 GB, free: 15.23 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004729/0.4569, allocations: 2.66 MB / 0.5765 GB, free: 12.46 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.783e-06/0.4569, allocations: 8.031 kB / 0.5765 GB, free: 12.45 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001537/0.4585, allocations: 275.6 kB / 0.5768 GB, free: 12.18 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001768/0.4586, allocations: 53.69 kB / 0.5768 GB, free: 12.12 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.552e-05/0.4588, allocations: 35.97 kB / 0.5769 GB, free: 12.09 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001873/0.4606, allocations: 2.851 MB / 0.5796 GB, free: 8.957 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.4607, allocations: 0 / 0.5796 GB, free: 8.957 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002724/0.4634, allocations: 1.896 MB / 0.5815 GB, free: 6.977 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005992/0.464, allocations: 251.8 kB / 0.5817 GB, free: 6.711 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001924/0.4642, allocations: 39.98 kB / 0.5818 GB, free: 6.672 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006232/0.4648, allocations: 43.89 kB / 0.5818 GB, free: 6.629 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001509/0.465, allocations: 64.86 kB / 0.5819 GB, free: 6.566 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.866e-05/0.4651, allocations: 31.98 kB / 0.5819 GB, free: 6.535 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0006345/0.4657, allocations: 499 kB / 0.5824 GB, free: 6.051 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4657, allocations: 0 / 0.5824 GB, free: 6.051 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001345/0.4671, allocations: 376 kB / 0.5827 GB, free: 5.684 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 25 (generator.i[3],generator.psi_s[1],generator.psi_s[2],generator.psi_rd[1],generator.psi_rq[1],line.v[1,1],line.v[1,2],line.v[1,3],line.v[2,1],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) * 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 (95): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,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.003158/0.4702, allocations: 2.477 MB / 0.5852 GB, free: 3.109 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003983/0.4742, allocations: 2.116 MB / 0.5872 GB, free: 0.9609 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/0.4743, allocations: 0 / 0.5872 GB, free: 0.9609 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001193/0.4755, allocations: 0.7568 MB / 0.588 GB, free: 184 kB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001295/0.4768, allocations: 234 kB / 0.5882 GB, free: 15.96 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02479/0.5016, allocations: 13.95 MB / 0.6018 GB, free: 1.551 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001275/0.5029, allocations: 1.302 MB / 0.6031 GB, free: 220 kB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0011/0.504, allocations: 312 kB / 0.6034 GB, free: 15.91 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007957/0.5048, allocations: 463.3 kB / 0.6038 GB, free: 15.45 MB / 478.1 MB Notification: Performance of SimCode: time 1.232e-06/0.5049, allocations: 0 / 0.6038 GB, free: 15.45 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08984/0.5947, allocations: 30.89 MB / 0.634 GB, free: 0.793 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.43/14.02, allocations: 3.859 kB / 0.634 GB, free: 0.7891 MB / 494.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_IG.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_IG.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_IG.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_IG.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_IG_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_IG_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_IG.fmu > PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_IG.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_IG_res.mat does not exist to compare? outputFormat=mat