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.001125/0.001125, allocations: 109.2 kB / 16.92 MB, free: 5.762 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.001758/0.001758, allocations: 191.3 kB / 17.85 MB, free: 5.172 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.318/1.318, allocations: 222.9 MB / 241.6 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1745/0.1745, allocations: 38.02 MB / 329.7 MB, free: 8.801 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 60.03 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1014, allocations: 58.07 MB / 457 MB, free: 7.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine): time 0.009059/0.1105, allocations: 7.621 MB / 464.6 MB, free: 304 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007584/0.1181, allocations: 5.375 MB / 470 MB, free: 10.9 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005848/0.1187, allocations: 27.88 kB / 470 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009595/0.1283, allocations: 5.166 MB / 475.2 MB, free: 5.699 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001524/0.1299, allocations: 0.6377 MB / 475.8 MB, free: 5.059 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001144/0.131, allocations: 453.2 kB / 476.2 MB, free: 4.617 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002939/0.134, allocations: 2.202 MB / 478.4 MB, free: 2.406 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001582/0.1356, allocations: 1.127 MB / 479.6 MB, free: 1.258 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001133/0.1367, allocations: 0.6423 MB / 480.2 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001177/0.1379, allocations: 0.7396 MB / 480.9 MB, free: 15.87 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002979/0.1382, allocations: 116 kB / 481.1 MB, free: 15.76 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008377/0.1391, allocations: 395.5 kB / 481.4 MB, free: 15.37 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000582/0.1397, allocations: 0.491 MB / 481.9 MB, free: 14.88 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008367/0.1405, allocations: 0.6028 MB / 482.5 MB, free: 14.27 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001909/0.1424, allocations: 1.694 MB / 484.2 MB, free: 12.57 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.84e-06/0.1424, allocations: 0 / 484.2 MB, free: 12.57 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1424, allocations: 3.938 kB / 484.2 MB, free: 12.57 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.702e-05/0.1425, allocations: 0 / 484.2 MB, free: 12.57 MB / 366.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.003089/0.1456, allocations: 1.421 MB / 485.7 MB, free: 11.09 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.1456, allocations: 15.89 kB / 485.7 MB, free: 11.08 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000197/0.1458, allocations: 135.3 kB / 485.8 MB, free: 10.94 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007269/0.1466, allocations: 147.6 kB / 486 MB, free: 10.79 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001889/0.1485, allocations: 0.9404 MB / 486.9 MB, free: 9.812 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.385e-05/0.1486, allocations: 58 kB / 486.9 MB, free: 9.754 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002287/0.1488, allocations: 99.88 kB / 487 MB, free: 9.656 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001836/0.1507, allocations: 1.074 MB / 488.1 MB, free: 8.543 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.507e-05/0.1507, allocations: 3.984 kB / 488.1 MB, free: 8.539 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.597e-05/0.1508, allocations: 28 kB / 488.2 MB, free: 8.512 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002695/0.1511, allocations: 73.95 kB / 488.2 MB, free: 8.438 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001575/0.1527, allocations: 0.8353 MB / 489.1 MB, free: 7.605 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006185/0.1589, allocations: 4.004 MB / 493.1 MB, free: 3.414 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001053/0.1599, allocations: 0.6222 MB / 493.7 MB, free: 2.754 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004466/0.1604, allocations: 315.3 kB / 494 MB, free: 2.441 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.446e-05/0.1605, allocations: 8.547 kB / 494 MB, free: 2.434 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.793e-05/0.1605, allocations: 43.06 kB / 494 MB, free: 2.383 MB / 366.1 MB Notification: Performance of pre-optimization done (n=57): time 3.497e-06/0.1605, allocations: 0 / 494 MB, free: 2.383 MB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.004928/0.1655, allocations: 2.598 MB / 496.6 MB, free: 15.69 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.146e-05/0.1655, allocations: 107.4 kB / 496.7 MB, free: 15.56 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009191/0.1665, allocations: 0.6922 MB / 497.4 MB, free: 14.86 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.553e-05/0.1665, allocations: 37.7 kB / 497.5 MB, free: 14.82 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000356/0.1669, allocations: 487.1 kB / 498 MB, free: 14.33 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002176/0.1671, allocations: 240.5 kB / 498.2 MB, free: 14.09 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002306/0.1674, allocations: 154.6 kB / 498.3 MB, free: 13.94 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001756/0.1675, allocations: 390.8 kB / 498.7 MB, free: 13.55 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000467/0.168, allocations: 309.8 kB / 499 MB, free: 13.24 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005925/0.1686, allocations: 0.5115 MB / 499.5 MB, free: 12.64 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003755/0.1724, allocations: 1.676 MB / 0.4895 GB, free: 10.86 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.814e-06/0.1724, allocations: 4 kB / 0.4895 GB, free: 10.86 MB / 382.1 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.00224/0.1747, allocations: 1.278 MB / 0.4907 GB, free: 9.562 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.332e-05/0.1747, allocations: 8 kB / 0.4907 GB, free: 9.555 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.339e-05/0.1747, allocations: 4 kB / 0.4907 GB, free: 9.551 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001092/0.1758, allocations: 413.5 kB / 0.4911 GB, free: 9.141 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005062/0.1763, allocations: 147.8 kB / 0.4913 GB, free: 8.996 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007534/0.1839, allocations: 6.25 MB / 0.4974 GB, free: 2.453 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005206/0.1844, allocations: 27.98 kB / 0.4974 GB, free: 2.426 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.836e-05/0.1845, allocations: 32 kB / 0.4974 GB, free: 2.395 MB / 382.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.0005147/0.185, allocations: 358 kB / 0.4978 GB, free: 2.035 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001598/0.1852, allocations: 86.95 kB / 0.4978 GB, free: 1.949 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001602/0.1868, allocations: 0.8956 MB / 0.4987 GB, free: 1.027 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.828e-06/0.1868, allocations: 4 kB / 0.4987 GB, free: 1.023 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/0.1868, allocations: 7.984 kB / 0.4987 GB, free: 1.016 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/0.1868, allocations: 0 / 0.4987 GB, free: 1.016 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003351/0.1902, allocations: 2.013 MB / 0.5007 GB, free: 14.9 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.186e-06/0.1902, allocations: 4 kB / 0.5007 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006298/0.1909, allocations: 124 kB / 0.5008 GB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005619/0.1914, allocations: 186.4 kB / 0.501 GB, free: 14.58 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.229e-05/0.1915, allocations: 23.98 kB / 0.501 GB, free: 14.56 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004491/0.196, allocations: 5.488 MB / 0.5064 GB, free: 8.656 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.196, allocations: 4.062 kB / 0.5064 GB, free: 8.652 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001917/0.198, allocations: 1.27 MB / 0.5076 GB, free: 7.34 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003286/0.1983, allocations: 208 kB / 0.5078 GB, free: 7.117 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001399/0.1984, allocations: 20 kB / 0.5078 GB, free: 7.098 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003824/0.1988, allocations: 19.98 kB / 0.5079 GB, free: 7.078 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001055/0.199, allocations: 44.5 kB / 0.5079 GB, free: 7.035 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.875e-05/0.199, allocations: 23.98 kB / 0.5079 GB, free: 7.012 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006461/0.1997, allocations: 0.4912 MB / 0.5084 GB, free: 6.527 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1997, allocations: 0 / 0.5084 GB, free: 6.527 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001015/0.2007, allocations: 240 kB / 0.5086 GB, free: 6.293 MB / 398.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.002963/0.2037, allocations: 2.122 MB / 0.5107 GB, free: 4.262 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002318/0.206, allocations: 1.259 MB / 0.5119 GB, free: 2.973 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.206, allocations: 320 / 0.5119 GB, free: 2.973 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009327/0.207, allocations: 0.7177 MB / 0.5126 GB, free: 2.219 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009444/0.2079, allocations: 188.9 kB / 0.5128 GB, free: 2.039 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1717/0.3796, allocations: 8.822 MB / 0.5214 GB, free: 67.52 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001112/0.3808, allocations: 1.143 MB / 0.5225 GB, free: 66.76 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007234/0.3815, allocations: 161.1 kB / 0.5227 GB, free: 66.75 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004471/0.382, allocations: 355.3 kB / 0.523 GB, free: 66.48 MB / 398.1 MB Notification: Performance of SimCode: time 1.223e-06/0.382, allocations: 0 / 0.523 GB, free: 66.48 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04168/0.4237, allocations: 20.99 MB / 0.5435 GB, free: 57.04 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.69/12.11, allocations: 2.578 kB / 0.5435 GB, free: 57.04 MB / 398.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)