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.001699/0.001699, allocations: 109.6 kB / 17.06 MB, free: 6.004 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.002078/0.002078, allocations: 192 kB / 18 MB, free: 5.09 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.455/1.455, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1816/0.1816, allocations: 38.04 MB / 329.9 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00186/0.00186, allocations: 71.88 kB / 457.6 MB, free: 7.379 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3296/0.3315, allocations: 58.06 MB / 0.5036 GB, free: 7.422 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_IG): time 0.00833/0.3398, allocations: 8.092 MB / 0.5115 GB, free: 1.773 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.009241/0.3491, allocations: 5.481 MB / 0.5169 GB, free: 13.96 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008646/0.35, allocations: 34.25 kB / 0.5169 GB, free: 13.95 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01171/0.3618, allocations: 5.218 MB / 0.522 GB, free: 12.32 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002506/0.3643, allocations: 0.8372 MB / 0.5228 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001472/0.3658, allocations: 0.4924 MB / 0.5233 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004397/0.3702, allocations: 2.524 MB / 0.5258 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001054/0.3713, allocations: 0.6306 MB / 0.5264 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001395/0.3727, allocations: 0.7675 MB / 0.5271 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001633/0.3743, allocations: 1.024 MB / 0.5281 GB, free: 9.758 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002146/0.3746, allocations: 107.8 kB / 0.5282 GB, free: 9.754 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008873/0.3755, allocations: 374.7 kB / 0.5286 GB, free: 9.613 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006976/0.3762, allocations: 0.6539 MB / 0.5292 GB, free: 9.199 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009546/0.3771, allocations: 0.6938 MB / 0.5299 GB, free: 8.734 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002512/0.3797, allocations: 1.729 MB / 0.5316 GB, free: 7.598 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.3797, allocations: 0 / 0.5316 GB, free: 7.598 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3797, allocations: 5.344 kB / 0.5316 GB, free: 7.594 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.502e-05/0.3797, allocations: 0 / 0.5316 GB, free: 7.594 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.003471/0.3832, allocations: 1.626 MB / 0.5332 GB, free: 6.387 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.214e-05/0.3833, allocations: 13.61 kB / 0.5332 GB, free: 6.383 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002294/0.3835, allocations: 167.9 kB / 0.5334 GB, free: 6.25 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001291/0.3848, allocations: 223.1 kB / 0.5336 GB, free: 6.141 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002101/0.3869, allocations: 0.9614 MB / 0.5345 GB, free: 5.441 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.053e-05/0.387, allocations: 72.39 kB / 0.5346 GB, free: 5.406 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000463/0.3875, allocations: 183.4 kB / 0.5348 GB, free: 5.344 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002653/0.3901, allocations: 1.574 MB / 0.5363 GB, free: 4.367 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.135e-05/0.3902, allocations: 11.17 kB / 0.5363 GB, free: 4.359 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001176/0.3903, allocations: 38.08 kB / 0.5363 GB, free: 4.332 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000615/0.3909, allocations: 150.9 kB / 0.5365 GB, free: 4.281 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002338/0.3933, allocations: 1.249 MB / 0.5377 GB, free: 3.688 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.009379/0.4027, allocations: 6.467 MB / 0.544 GB, free: 14.47 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00169/0.4044, allocations: 0.9123 MB / 0.5449 GB, free: 13.8 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008753/0.4053, allocations: 0.5044 MB / 0.5454 GB, free: 13.29 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.46e-05/0.4054, allocations: 13 kB / 0.5454 GB, free: 13.28 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.123e-05/0.4054, allocations: 47.56 kB / 0.5455 GB, free: 13.22 MB / 414.1 MB Notification: Performance of pre-optimization done (n=91): time 2.805e-06/0.4054, allocations: 0 / 0.5455 GB, free: 13.22 MB / 414.1 MB Notification: Performance of matching and sorting (n=96): time 0.007491/0.4129, allocations: 3.706 MB / 0.5491 GB, free: 9.383 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.847e-05/0.413, allocations: 90.23 kB / 0.5492 GB, free: 9.273 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009708/0.414, allocations: 0.7273 MB / 0.5499 GB, free: 8.539 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.968e-05/0.4141, allocations: 45.7 kB / 0.5499 GB, free: 8.488 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000505/0.4146, allocations: 0.5744 MB / 0.5505 GB, free: 7.906 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003805/0.415, allocations: 376.8 kB / 0.5508 GB, free: 7.535 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004003/0.4154, allocations: 238.8 kB / 0.5511 GB, free: 7.297 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000259/0.4157, allocations: 414.7 kB / 0.5515 GB, free: 6.883 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001008/0.4167, allocations: 0.5609 MB / 0.552 GB, free: 6.32 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001252/0.418, allocations: 0.8854 MB / 0.5529 GB, free: 5.305 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.008777/0.4267, allocations: 3.224 MB / 0.556 GB, free: 1.957 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.197e-05/0.4268, allocations: 4 kB / 0.556 GB, free: 1.953 MB / 414.1 MB Notification: Performance of matching and sorting (n=164) (initialization): time 0.006247/0.433, allocations: 2.749 MB / 0.5587 GB, free: 15.18 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.133e-05/0.4331, allocations: 19.92 kB / 0.5587 GB, free: 15.16 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.864e-05/0.4331, allocations: 8 kB / 0.5587 GB, free: 15.16 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003008/0.4361, allocations: 1.158 MB / 0.5599 GB, free: 13.99 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008522/0.437, allocations: 203.6 kB / 0.5601 GB, free: 13.79 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01992/0.4569, allocations: 12.29 MB / 0.5721 GB, free: 1.219 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001093/0.458, allocations: 59.95 kB / 0.5721 GB, free: 1.16 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001303/0.4582, allocations: 59.92 kB / 0.5722 GB, free: 1.102 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.0007617/0.459, allocations: 393.4 kB / 0.5726 GB, free: 0.707 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001886/0.4592, allocations: 107.4 kB / 0.5727 GB, free: 0.6016 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002484/0.4616, allocations: 1.404 MB / 0.574 GB, free: 15.14 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.143e-05/0.4617, allocations: 8 kB / 0.574 GB, free: 15.14 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.114e-06/0.4617, allocations: 4 kB / 0.574 GB, free: 15.13 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.01e-05/0.4617, allocations: 7.984 kB / 0.574 GB, free: 15.12 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00483/0.4665, allocations: 2.668 MB / 0.5767 GB, free: 12.34 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.384e-06/0.4666, allocations: 3.938 kB / 0.5767 GB, free: 12.33 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001553/0.4681, allocations: 275.7 kB / 0.5769 GB, free: 12.06 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001937/0.4683, allocations: 61.89 kB / 0.577 GB, free: 12 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.522e-05/0.4684, allocations: 35.98 kB / 0.577 GB, free: 11.96 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002491/0.4709, allocations: 2.847 MB / 0.5798 GB, free: 8.836 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.471, allocations: 4 kB / 0.5798 GB, free: 8.832 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003105/0.4741, allocations: 1.901 MB / 0.5817 GB, free: 6.848 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005759/0.4747, allocations: 260.4 kB / 0.5819 GB, free: 6.574 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001559/0.4748, allocations: 35.98 kB / 0.5819 GB, free: 6.539 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005819/0.4754, allocations: 43.95 kB / 0.582 GB, free: 6.496 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001713/0.4756, allocations: 68.84 kB / 0.582 GB, free: 6.43 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.215e-05/0.4757, allocations: 28 kB / 0.5821 GB, free: 6.402 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0007031/0.4764, allocations: 0.4912 MB / 0.5825 GB, free: 5.914 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4764, allocations: 0 / 0.5825 GB, free: 5.914 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001337/0.4777, allocations: 376 kB / 0.5829 GB, free: 5.547 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.00345/0.4812, allocations: 2.482 MB / 0.5853 GB, free: 2.969 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00448/0.4857, allocations: 2.128 MB / 0.5874 GB, free: 0.8086 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.845e-06/0.4857, allocations: 0 / 0.5874 GB, free: 0.8086 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001258/0.487, allocations: 0.7527 MB / 0.5881 GB, free: 32 kB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001203/0.4882, allocations: 222.1 kB / 0.5884 GB, free: 15.82 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0253/0.5135, allocations: 14.01 MB / 0.602 GB, free: 1.348 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001118/0.5147, allocations: 1.314 MB / 0.6033 GB, free: 0 / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0009155/0.5156, allocations: 316 kB / 0.6036 GB, free: 15.69 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006957/0.5163, allocations: 451.3 kB / 0.6041 GB, free: 15.25 MB / 478.1 MB Notification: Performance of SimCode: time 5.71e-07/0.5163, allocations: 0 / 0.6041 GB, free: 15.25 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09625/0.6126, allocations: 30.25 MB / 0.6336 GB, free: 1.223 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.08/14.69, allocations: 3.859 kB / 0.6336 GB, free: 1.219 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