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.00106/0.00106, allocations: 114.1 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.001219/0.001219, allocations: 191 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.398/1.398, 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.1759/0.1759, allocations: 38.03 MB / 329.9 MB, free: 8.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001437, allocations: 59.91 kB / 457.6 MB, free: 7.332 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3536/0.355, allocations: 58.06 MB / 0.5036 GB, free: 7.559 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine): time 0.008217/0.3633, allocations: 7.616 MB / 0.5111 GB, free: 2.266 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008309/0.3716, allocations: 5.378 MB / 0.5163 GB, free: 14.52 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008202/0.3725, allocations: 25.69 kB / 0.5163 GB, free: 14.52 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0131/0.3856, allocations: 5.19 MB / 0.5214 GB, free: 12.92 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002096/0.3878, allocations: 0.649 MB / 0.522 GB, free: 12.55 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001418/0.3892, allocations: 446.8 kB / 0.5225 GB, free: 12.31 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003473/0.3927, allocations: 2.214 MB / 0.5246 GB, free: 11.45 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001478/0.3942, allocations: 1.122 MB / 0.5257 GB, free: 10.92 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001148/0.3953, allocations: 0.6489 MB / 0.5264 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001046/0.3964, allocations: 0.7428 MB / 0.5271 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001623/0.3966, allocations: 115.6 kB / 0.5272 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008482/0.3974, allocations: 388.7 kB / 0.5276 GB, free: 10.22 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005506/0.398, allocations: 0.5 MB / 0.528 GB, free: 9.992 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005985/0.3986, allocations: 0.5999 MB / 0.5286 GB, free: 9.566 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001899/0.4005, allocations: 1.709 MB / 0.5303 GB, free: 8.359 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.4005, allocations: 0 / 0.5303 GB, free: 8.359 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.4005, allocations: 1.094 kB / 0.5303 GB, free: 8.359 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.737e-05/0.4006, allocations: 0 / 0.5303 GB, free: 8.359 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.002742/0.4033, allocations: 1.454 MB / 0.5317 GB, free: 7.246 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.4033, allocations: 13.64 kB / 0.5317 GB, free: 7.242 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001716/0.4035, allocations: 133.5 kB / 0.5319 GB, free: 7.133 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007436/0.4043, allocations: 164.5 kB / 0.532 GB, free: 7.047 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001839/0.4061, allocations: 0.9788 MB / 0.533 GB, free: 6.289 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.931e-05/0.4062, allocations: 65.33 kB / 0.533 GB, free: 6.258 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001951/0.4064, allocations: 81.31 kB / 0.5331 GB, free: 6.234 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001607/0.408, allocations: 1.066 MB / 0.5342 GB, free: 5.566 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.505e-05/0.4081, allocations: 6.141 kB / 0.5342 GB, free: 5.562 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.408e-05/0.4082, allocations: 35.7 kB / 0.5342 GB, free: 5.535 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00023/0.4084, allocations: 77.17 kB / 0.5343 GB, free: 5.512 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001356/0.4098, allocations: 0.8375 MB / 0.5351 GB, free: 5.098 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00553/0.4153, allocations: 3.971 MB / 0.539 GB, free: 1.918 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001002/0.4163, allocations: 0.6329 MB / 0.5396 GB, free: 1.52 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006167/0.4169, allocations: 318.1 kB / 0.5399 GB, free: 1.352 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.394e-05/0.417, allocations: 11.28 kB / 0.5399 GB, free: 1.344 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.687e-05/0.4171, allocations: 38.38 kB / 0.5399 GB, free: 1.301 MB / 398.1 MB Notification: Performance of pre-optimization done (n=57): time 2.745e-06/0.4171, allocations: 0 / 0.5399 GB, free: 1.301 MB / 398.1 MB Notification: Performance of matching and sorting (n=65): time 0.004819/0.4219, allocations: 2.601 MB / 0.5425 GB, free: 15.62 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.345e-05/0.422, allocations: 113.7 kB / 0.5426 GB, free: 15.49 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009243/0.4229, allocations: 0.7004 MB / 0.5433 GB, free: 15.09 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.012e-05/0.423, allocations: 36.61 kB / 0.5433 GB, free: 15.05 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000432/0.4235, allocations: 0.4907 MB / 0.5438 GB, free: 14.61 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002459/0.4237, allocations: 247.1 kB / 0.544 GB, free: 14.39 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002465/0.424, allocations: 145.9 kB / 0.5442 GB, free: 14.3 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001819/0.4242, allocations: 396.5 kB / 0.5445 GB, free: 13.93 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005102/0.4247, allocations: 306 kB / 0.5448 GB, free: 13.78 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006544/0.4253, allocations: 0.516 MB / 0.5453 GB, free: 13.3 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003783/0.4291, allocations: 1.676 MB / 0.547 GB, free: 11.52 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.4291, allocations: 0 / 0.547 GB, free: 11.52 MB / 414.1 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.002384/0.4315, allocations: 1.279 MB / 0.5482 GB, free: 10.23 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.458e-05/0.4316, allocations: 8 kB / 0.5482 GB, free: 10.22 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.384e-05/0.4316, allocations: 4 kB / 0.5482 GB, free: 10.22 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001098/0.4327, allocations: 409.6 kB / 0.5486 GB, free: 9.812 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005239/0.4332, allocations: 143.8 kB / 0.5488 GB, free: 9.672 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008178/0.4414, allocations: 6.248 MB / 0.5549 GB, free: 3.125 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007431/0.4422, allocations: 31.95 kB / 0.5549 GB, free: 3.094 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001172/0.4423, allocations: 35.98 kB / 0.5549 GB, free: 3.059 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.0006389/0.443, allocations: 353.5 kB / 0.5553 GB, free: 2.703 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002119/0.4432, allocations: 83.48 kB / 0.5553 GB, free: 2.621 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001773/0.445, allocations: 0.8994 MB / 0.5562 GB, free: 1.699 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.076e-05/0.445, allocations: 12 kB / 0.5562 GB, free: 1.688 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.087e-05/0.445, allocations: 4 kB / 0.5562 GB, free: 1.684 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.327e-06/0.4451, allocations: 3.984 kB / 0.5562 GB, free: 1.68 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003658/0.4487, allocations: 2.006 MB / 0.5582 GB, free: 15.57 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/0.4487, allocations: 4.156 kB / 0.5582 GB, free: 15.57 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006435/0.4494, allocations: 119.8 kB / 0.5583 GB, free: 15.45 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005719/0.45, allocations: 186.4 kB / 0.5585 GB, free: 15.26 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.809e-05/0.4501, allocations: 19.98 kB / 0.5585 GB, free: 15.24 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004886/0.455, allocations: 5.488 MB / 0.5639 GB, free: 9.328 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.312e-06/0.455, allocations: 11.95 kB / 0.5639 GB, free: 9.316 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001991/0.457, allocations: 1.275 MB / 0.5651 GB, free: 7.996 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000537/0.4575, allocations: 212.5 kB / 0.5653 GB, free: 7.77 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002542/0.4578, allocations: 23.98 kB / 0.5653 GB, free: 7.746 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005456/0.4584, allocations: 19.98 kB / 0.5654 GB, free: 7.727 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001101/0.4585, allocations: 48.5 kB / 0.5654 GB, free: 7.68 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.738e-05/0.4586, allocations: 19.98 kB / 0.5654 GB, free: 7.66 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0007673/0.4593, allocations: 495 kB / 0.5659 GB, free: 7.18 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4593, allocations: 0 / 0.5659 GB, free: 7.18 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001214/0.4606, allocations: 255.9 kB / 0.5661 GB, free: 6.93 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.003116/0.4637, allocations: 2.131 MB / 0.5682 GB, free: 4.895 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002144/0.4658, allocations: 1.145 MB / 0.5693 GB, free: 3.715 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/0.4659, allocations: 0 / 0.5693 GB, free: 3.715 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009719/0.4668, allocations: 0.7189 MB / 0.57 GB, free: 2.961 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001021/0.4679, allocations: 178.7 kB / 0.5702 GB, free: 2.797 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01321/0.4811, allocations: 8.619 MB / 0.5786 GB, free: 9.84 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008917/0.482, allocations: 1.146 MB / 0.5798 GB, free: 8.668 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005238/0.4825, allocations: 162.6 kB / 0.5799 GB, free: 8.504 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004697/0.483, allocations: 351.3 kB / 0.5802 GB, free: 8.16 MB / 446.1 MB Notification: Performance of SimCode: time 6.42e-07/0.483, allocations: 0 / 0.5802 GB, free: 8.16 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08287/0.5659, allocations: 21.31 MB / 0.6011 GB, free: 3.004 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.39/14.95, allocations: 8 kB / 0.6011 GB, free: 2.996 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)