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.001275/0.001275, allocations: 111.2 kB / 17.06 MB, free: 6.055 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.001241/0.001241, allocations: 193.4 kB / 17.99 MB, free: 5.156 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.435/1.435, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2009/0.2009, allocations: 38.03 MB / 329.9 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0019/0.0019, allocations: 67.91 kB / 457.6 MB, free: 7.363 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3322/0.3341, allocations: 58.05 MB / 0.5036 GB, free: 7.375 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_IG): time 0.007339/0.3415, allocations: 8.097 MB / 0.5115 GB, free: 1.723 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007848/0.3494, allocations: 5.484 MB / 0.5169 GB, free: 13.91 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006888/0.3501, allocations: 29.88 kB / 0.5169 GB, free: 13.89 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01073/0.3609, allocations: 5.226 MB / 0.522 GB, free: 12.27 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002477/0.3634, allocations: 0.8371 MB / 0.5228 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00134/0.3647, allocations: 499.7 kB / 0.5233 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004073/0.3688, allocations: 2.524 MB / 0.5258 GB, free: 10.68 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001016/0.3699, allocations: 0.6313 MB / 0.5264 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00155/0.3714, allocations: 0.7721 MB / 0.5271 GB, free: 10.06 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00171/0.3731, allocations: 1.024 MB / 0.5281 GB, free: 9.703 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001978/0.3734, allocations: 104.2 kB / 0.5282 GB, free: 9.703 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008435/0.3742, allocations: 373 kB / 0.5286 GB, free: 9.578 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007199/0.3749, allocations: 0.6565 MB / 0.5292 GB, free: 9.164 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00081/0.3758, allocations: 0.6917 MB / 0.5299 GB, free: 8.699 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002425/0.3782, allocations: 1.734 MB / 0.5316 GB, free: 7.559 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.3782, allocations: 1.094 kB / 0.5316 GB, free: 7.559 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.3782, allocations: 0 / 0.5316 GB, free: 7.559 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.939e-05/0.3783, allocations: 0 / 0.5316 GB, free: 7.559 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.003618/0.3819, allocations: 1.623 MB / 0.5332 GB, free: 6.355 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.3819, allocations: 17.3 kB / 0.5332 GB, free: 6.348 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002165/0.3822, allocations: 167.3 kB / 0.5334 GB, free: 6.215 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001263/0.3834, allocations: 227.8 kB / 0.5336 GB, free: 6.102 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00208/0.3855, allocations: 0.9609 MB / 0.5345 GB, free: 5.402 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.157e-05/0.3856, allocations: 71.95 kB / 0.5346 GB, free: 5.367 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004455/0.3861, allocations: 182.3 kB / 0.5348 GB, free: 5.305 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002511/0.3886, allocations: 1.568 MB / 0.5363 GB, free: 4.336 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.899e-05/0.3886, allocations: 11.2 kB / 0.5363 GB, free: 4.328 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001127/0.3888, allocations: 38.11 kB / 0.5363 GB, free: 4.301 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006058/0.3894, allocations: 155.1 kB / 0.5365 GB, free: 4.246 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002126/0.3915, allocations: 1.245 MB / 0.5377 GB, free: 3.656 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.008795/0.4003, allocations: 6.471 MB / 0.544 GB, free: 14.43 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001657/0.402, allocations: 0.9116 MB / 0.5449 GB, free: 13.81 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008473/0.4029, allocations: 0.5005 MB / 0.5454 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.074e-05/0.4029, allocations: 16.94 kB / 0.5454 GB, free: 13.28 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.693e-05/0.403, allocations: 43.56 kB / 0.5455 GB, free: 13.23 MB / 414.1 MB Notification: Performance of pre-optimization done (n=91): time 2.895e-06/0.403, allocations: 0 / 0.5455 GB, free: 13.23 MB / 414.1 MB Notification: Performance of matching and sorting (n=96): time 0.007537/0.4105, allocations: 3.702 MB / 0.5491 GB, free: 9.395 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.369e-05/0.4107, allocations: 94.05 kB / 0.5492 GB, free: 9.281 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001121/0.4118, allocations: 0.7313 MB / 0.5499 GB, free: 8.543 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.904e-05/0.4119, allocations: 45.7 kB / 0.5499 GB, free: 8.492 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004697/0.4124, allocations: 0.5705 MB / 0.5505 GB, free: 7.914 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003721/0.4128, allocations: 384.8 kB / 0.5508 GB, free: 7.535 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003705/0.4132, allocations: 230.8 kB / 0.5511 GB, free: 7.305 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002223/0.4134, allocations: 414.7 kB / 0.5515 GB, free: 6.891 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009833/0.4144, allocations: 0.5647 MB / 0.552 GB, free: 6.324 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001211/0.4156, allocations: 0.8854 MB / 0.5529 GB, free: 5.309 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.008762/0.4244, allocations: 3.228 MB / 0.556 GB, free: 1.957 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.064e-05/0.4244, allocations: 4 kB / 0.556 GB, free: 1.953 MB / 414.1 MB Notification: Performance of matching and sorting (n=164) (initialization): time 0.006157/0.4306, allocations: 2.745 MB / 0.5587 GB, free: 15.19 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.529e-05/0.4306, allocations: 12 kB / 0.5587 GB, free: 15.18 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.029e-05/0.4306, allocations: 11.98 kB / 0.5587 GB, free: 15.17 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003142/0.4338, allocations: 1.156 MB / 0.5599 GB, free: 14 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009078/0.4347, allocations: 199.6 kB / 0.56 GB, free: 13.81 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02147/0.4562, allocations: 12.29 MB / 0.572 GB, free: 1.227 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009819/0.4572, allocations: 64.02 kB / 0.5721 GB, free: 1.164 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001299/0.4574, allocations: 55.98 kB / 0.5722 GB, free: 1.109 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.0007167/0.4581, allocations: 403.4 kB / 0.5725 GB, free: 0.707 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001807/0.4583, allocations: 103.3 kB / 0.5726 GB, free: 0.6055 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002443/0.4607, allocations: 1.408 MB / 0.574 GB, free: 15.14 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.05e-05/0.4607, allocations: 8 kB / 0.574 GB, free: 15.13 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.4608, allocations: 4 kB / 0.574 GB, free: 15.13 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.032e-05/0.4608, allocations: 3.984 kB / 0.574 GB, free: 15.12 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004792/0.4656, allocations: 2.668 MB / 0.5766 GB, free: 12.34 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.578e-06/0.4656, allocations: 4 kB / 0.5766 GB, free: 12.34 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001539/0.4672, allocations: 275.6 kB / 0.5769 GB, free: 12.07 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001831/0.4673, allocations: 57.67 kB / 0.577 GB, free: 12 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001057/0.4675, allocations: 40.02 kB / 0.577 GB, free: 11.96 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002338/0.4698, allocations: 2.847 MB / 0.5798 GB, free: 8.84 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.529e-06/0.4698, allocations: 4 kB / 0.5798 GB, free: 8.836 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003281/0.4731, allocations: 1.897 MB / 0.5816 GB, free: 6.855 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000566/0.4737, allocations: 264.3 kB / 0.5819 GB, free: 6.578 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002308/0.4739, allocations: 35.98 kB / 0.5819 GB, free: 6.543 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006613/0.4746, allocations: 43.95 kB / 0.582 GB, free: 6.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001852/0.4748, allocations: 68.78 kB / 0.582 GB, free: 6.434 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.247e-05/0.4749, allocations: 35.94 kB / 0.5821 GB, free: 6.398 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000764/0.4757, allocations: 0.4912 MB / 0.5825 GB, free: 5.91 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4757, allocations: 0 / 0.5825 GB, free: 5.91 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001527/0.4772, allocations: 376 kB / 0.5829 GB, free: 5.543 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.0039/0.4811, allocations: 2.478 MB / 0.5853 GB, free: 2.969 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004577/0.4857, allocations: 2.12 MB / 0.5874 GB, free: 0.8164 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.221e-06/0.4857, allocations: 320 / 0.5874 GB, free: 0.8164 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001334/0.4871, allocations: 0.7566 MB / 0.5881 GB, free: 36 kB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001374/0.4885, allocations: 222.6 kB / 0.5883 GB, free: 15.82 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02944/0.5179, allocations: 14.01 MB / 0.602 GB, free: 1.355 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002056/0.5201, allocations: 1.306 MB / 0.6033 GB, free: 16 kB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00142/0.5215, allocations: 312 kB / 0.6036 GB, free: 15.71 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001031/0.5226, allocations: 455.3 kB / 0.604 GB, free: 15.26 MB / 478.1 MB Notification: Performance of SimCode: time 3.366e-06/0.5226, allocations: 0 / 0.604 GB, free: 15.26 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0744/0.597, allocations: 30.26 MB / 0.6336 GB, free: 1.23 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.97/14.56, allocations: 6.047 kB / 0.6336 GB, free: 1.227 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 & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_IG_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_IG.fmu > PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_IG.pipe 2>&1)