Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.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/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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.AC3ph.Generation.WindGeneratorLine,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_WindGeneratorLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_WindGeneratorLine",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.001536/0.001536, allocations: 113 kB / 17.06 MB, free: 6.016 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.001694/0.001694, allocations: 191.9 kB / 18 MB, free: 5.098 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.461/1.461, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.2433/0.2433, allocations: 38.03 MB / 329.9 MB, free: 8.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002826/0.002826, allocations: 63.91 kB / 457.7 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.352/0.3548, allocations: 58.06 MB / 0.5036 GB, free: 7.594 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine): time 0.01257/0.3675, allocations: 7.616 MB / 0.5111 GB, free: 2.301 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01281/0.3803, allocations: 5.377 MB / 0.5163 GB, free: 14.56 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001295/0.3816, allocations: 25.84 kB / 0.5163 GB, free: 14.55 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01847/0.4002, allocations: 5.184 MB / 0.5214 GB, free: 12.96 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003047/0.4033, allocations: 0.6369 MB / 0.522 GB, free: 12.6 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00209/0.4054, allocations: 455.6 kB / 0.5225 GB, free: 12.36 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005611/0.411, allocations: 2.207 MB / 0.5246 GB, free: 11.49 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00232/0.4134, allocations: 1.127 MB / 0.5257 GB, free: 10.96 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00169/0.4151, allocations: 0.6351 MB / 0.5263 GB, free: 10.66 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001894/0.417, allocations: 0.7323 MB / 0.527 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002673/0.4173, allocations: 116.4 kB / 0.5272 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001229/0.4185, allocations: 400.8 kB / 0.5275 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008038/0.4193, allocations: 0.4957 MB / 0.528 GB, free: 10 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009994/0.4204, allocations: 0.5952 MB / 0.5286 GB, free: 9.586 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003081/0.4235, allocations: 1.708 MB / 0.5303 GB, free: 8.379 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.4235, allocations: 1.125 kB / 0.5303 GB, free: 8.379 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.4235, allocations: 0 / 0.5303 GB, free: 8.379 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.674e-05/0.4235, allocations: 0 / 0.5303 GB, free: 8.379 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: 208 * Number of variables: 208 Notification: Performance of Generate backend data structure: time 0.003057/0.4266, allocations: 1.459 MB / 0.5317 GB, free: 7.262 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.4267, allocations: 13.83 kB / 0.5317 GB, free: 7.258 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001855/0.4269, allocations: 136.5 kB / 0.5318 GB, free: 7.145 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007346/0.4276, allocations: 164.4 kB / 0.532 GB, free: 7.059 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001876/0.4295, allocations: 0.9758 MB / 0.533 GB, free: 6.305 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.658e-05/0.4296, allocations: 64.89 kB / 0.533 GB, free: 6.273 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000211/0.4298, allocations: 94.03 kB / 0.5331 GB, free: 6.238 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001931/0.4317, allocations: 1.061 MB / 0.5341 GB, free: 5.574 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.395e-05/0.4318, allocations: 7.328 kB / 0.5341 GB, free: 5.57 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.992e-05/0.4319, allocations: 30.95 kB / 0.5342 GB, free: 5.547 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00024/0.4321, allocations: 77.3 kB / 0.5342 GB, free: 5.523 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001393/0.4335, allocations: 0.8408 MB / 0.5351 GB, free: 5.105 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006084/0.4396, allocations: 3.971 MB / 0.5389 GB, free: 1.926 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001107/0.4407, allocations: 0.626 MB / 0.5396 GB, free: 1.531 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004721/0.4412, allocations: 314.5 kB / 0.5399 GB, free: 1.367 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.462e-05/0.4413, allocations: 11.08 kB / 0.5399 GB, free: 1.359 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.555e-05/0.4413, allocations: 42.41 kB / 0.5399 GB, free: 1.312 MB / 398.1 MB Notification: Performance of pre-optimization done (n=57): time 2.535e-06/0.4413, allocations: 0 / 0.5399 GB, free: 1.312 MB / 398.1 MB Notification: Performance of matching and sorting (n=65): time 0.005394/0.4467, allocations: 2.605 MB / 0.5425 GB, free: 15.63 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.212e-05/0.4469, allocations: 113.1 kB / 0.5426 GB, free: 15.5 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009478/0.4478, allocations: 0.6996 MB / 0.5432 GB, free: 15.09 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.274e-05/0.4479, allocations: 37.2 kB / 0.5433 GB, free: 15.05 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000421/0.4483, allocations: 498.7 kB / 0.5438 GB, free: 14.62 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002177/0.4485, allocations: 246.5 kB / 0.544 GB, free: 14.4 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002572/0.4488, allocations: 150.3 kB / 0.5441 GB, free: 14.31 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002267/0.449, allocations: 396.7 kB / 0.5445 GB, free: 13.93 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005036/0.4495, allocations: 309.7 kB / 0.5448 GB, free: 13.78 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006765/0.4502, allocations: 0.5092 MB / 0.5453 GB, free: 13.34 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00416/0.4544, allocations: 1.675 MB / 0.5469 GB, free: 11.56 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.286e-06/0.4544, allocations: 4 kB / 0.5469 GB, free: 11.56 MB / 414.1 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.002648/0.4571, allocations: 1.279 MB / 0.5482 GB, free: 10.27 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.819e-05/0.4571, allocations: 8 kB / 0.5482 GB, free: 10.26 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.6e-05/0.4572, allocations: 8 kB / 0.5482 GB, free: 10.25 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001204/0.4584, allocations: 393.4 kB / 0.5486 GB, free: 9.859 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005718/0.4589, allocations: 155.7 kB / 0.5487 GB, free: 9.707 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008589/0.4675, allocations: 6.246 MB / 0.5548 GB, free: 3.16 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006973/0.4683, allocations: 31.94 kB / 0.5549 GB, free: 3.129 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.274e-05/0.4684, allocations: 32 kB / 0.5549 GB, free: 3.098 MB / 414.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.windGen.WT.turbine.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * 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 initialization (75): * Single equations (assignments): 73 * 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,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0006515/0.469, allocations: 357.5 kB / 0.5552 GB, free: 2.738 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001491/0.4692, allocations: 79.48 kB / 0.5553 GB, free: 2.66 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001742/0.4709, allocations: 0.9033 MB / 0.5562 GB, free: 1.734 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.829e-06/0.4709, allocations: 11.94 kB / 0.5562 GB, free: 1.723 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.471, allocations: 4 kB / 0.5562 GB, free: 1.719 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.297e-05/0.471, allocations: 7.984 kB / 0.5562 GB, free: 1.711 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003787/0.4748, allocations: 1.994 MB / 0.5582 GB, free: 15.61 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.4748, allocations: 4 kB / 0.5582 GB, free: 15.61 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006396/0.4754, allocations: 120 kB / 0.5583 GB, free: 15.49 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005924/0.476, allocations: 182.4 kB / 0.5585 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.721e-05/0.4761, allocations: 27.98 kB / 0.5585 GB, free: 15.27 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005384/0.4815, allocations: 5.496 MB / 0.5638 GB, free: 9.359 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.4816, allocations: 3.938 kB / 0.5639 GB, free: 9.355 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002163/0.4837, allocations: 1.271 MB / 0.5651 GB, free: 8.039 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003767/0.4841, allocations: 212.7 kB / 0.5653 GB, free: 7.812 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001093/0.4842, allocations: 19.98 kB / 0.5653 GB, free: 7.793 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003521/0.4846, allocations: 20 kB / 0.5653 GB, free: 7.773 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000116/0.4847, allocations: 56.42 kB / 0.5654 GB, free: 7.719 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.831e-05/0.4848, allocations: 20 kB / 0.5654 GB, free: 7.699 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0007153/0.4855, allocations: 0.4912 MB / 0.5659 GB, free: 7.211 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4855, allocations: 0 / 0.5659 GB, free: 7.211 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001111/0.4866, allocations: 243.9 kB / 0.5661 GB, free: 6.973 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 11 (windGen.generator.i[3],windGen.generator.psi_rd[1],windGen.generator.psi_rq[1],windGen.WT.genRotor.phi,windGen.WT.genRotor.w,windGen.WT.turbine.phi,windGen.WT.turbine.w,windGen.WT.gear.phi,windGen.WT.gear.w,line.i[1],line.i[2]) * 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 (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,5,100.0%), (1,5,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003751/0.4904, allocations: 2.139 MB / 0.5682 GB, free: 4.93 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002155/0.4926, allocations: 1.142 MB / 0.5693 GB, free: 3.754 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.4926, allocations: 0 / 0.5693 GB, free: 3.754 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001029/0.4936, allocations: 0.7138 MB / 0.57 GB, free: 3.004 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00101/0.4946, allocations: 186.4 kB / 0.5702 GB, free: 2.836 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01466/0.5093, allocations: 8.608 MB / 0.5786 GB, free: 9.891 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001093/0.5104, allocations: 1.146 MB / 0.5797 GB, free: 8.719 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0006001/0.511, allocations: 166.6 kB / 0.5799 GB, free: 8.551 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005397/0.5116, allocations: 355.3 kB / 0.5802 GB, free: 8.203 MB / 446.1 MB Notification: Performance of SimCode: time 1.122e-06/0.5116, allocations: 0 / 0.5802 GB, free: 8.203 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06184/0.5735, allocations: 21.31 MB / 0.601 GB, free: 3.047 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.34/15.91, allocations: 0 / 0.601 GB, free: 3.047 MB / 462.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.06 PowerSystems_PowerSystems_Examples_AC3ph_Generation_WindGeneratorLine.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.pipe 2>&1)