Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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-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.AC3ph.Generation.WindGeneratorLine,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_WindGeneratorLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine,fileNamePrefix="PowerSystems_latest_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.001519/0.001519, allocations: 108.7 kB / 16.92 MB, free: 6.145 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.001791/0.001791, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.369/1.369, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1785/0.1785, allocations: 38.04 MB / 329.7 MB, free: 8.824 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 64.8 kB / 398.9 MB, free: 33.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09104/0.09231, allocations: 58.06 MB / 457 MB, free: 7.949 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine): time 0.009425/0.1018, allocations: 7.617 MB / 464.6 MB, free: 300 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007607/0.1094, allocations: 5.379 MB / 470 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000601/0.11, allocations: 27.88 kB / 470 MB, free: 10.87 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00951/0.1196, allocations: 5.169 MB / 475.2 MB, free: 5.691 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00151/0.1211, allocations: 0.6415 MB / 475.8 MB, free: 5.047 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001059/0.1222, allocations: 455.1 kB / 476.3 MB, free: 4.602 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00284/0.125, allocations: 2.202 MB / 478.5 MB, free: 2.391 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001498/0.1265, allocations: 1.131 MB / 479.6 MB, free: 1.238 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001054/0.1276, allocations: 0.6384 MB / 480.2 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001211/0.1288, allocations: 0.7318 MB / 481 MB, free: 15.86 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003198/0.1292, allocations: 120 kB / 481.1 MB, free: 15.75 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008739/0.13, allocations: 395.5 kB / 481.5 MB, free: 15.36 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005605/0.1306, allocations: 498.8 kB / 481.9 MB, free: 14.87 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008474/0.1315, allocations: 0.6066 MB / 482.6 MB, free: 14.26 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00192/0.1334, allocations: 1.69 MB / 484.2 MB, free: 12.57 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.1334, allocations: 0 / 484.2 MB, free: 12.57 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.1334, allocations: 0 / 484.2 MB, free: 12.57 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.063e-05/0.1335, 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.00371/0.1372, allocations: 1.424 MB / 485.7 MB, free: 11.09 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.1373, allocations: 11.89 kB / 485.7 MB, free: 11.07 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002217/0.1375, allocations: 135.3 kB / 485.8 MB, free: 10.93 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007968/0.1383, allocations: 147.6 kB / 486 MB, free: 10.79 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002014/0.1403, allocations: 0.9404 MB / 486.9 MB, free: 9.809 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.226e-05/0.1404, allocations: 58 kB / 487 MB, free: 9.75 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002239/0.1406, allocations: 99.88 kB / 487 MB, free: 9.652 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001608/0.1422, allocations: 1.07 MB / 488.1 MB, free: 8.543 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.561e-05/0.1423, allocations: 7.984 kB / 488.1 MB, free: 8.535 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.163e-05/0.1424, allocations: 35.98 kB / 488.2 MB, free: 8.5 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002286/0.1426, allocations: 73.95 kB / 488.2 MB, free: 8.426 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001409/0.144, allocations: 0.8314 MB / 489.1 MB, free: 7.598 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005467/0.1495, allocations: 4.008 MB / 493.1 MB, free: 3.402 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009836/0.1505, allocations: 0.6254 MB / 493.7 MB, free: 2.742 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004319/0.151, allocations: 313.7 kB / 494 MB, free: 2.434 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.69e-05/0.151, allocations: 12.56 kB / 494 MB, free: 2.422 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.363e-05/0.1511, allocations: 43.06 kB / 494.1 MB, free: 2.371 MB / 366.1 MB Notification: Performance of pre-optimization done (n=57): time 2.134e-06/0.1511, allocations: 0 / 494.1 MB, free: 2.371 MB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.004661/0.1557, allocations: 2.59 MB / 496.7 MB, free: 15.68 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.41e-05/0.1558, allocations: 111.4 kB / 496.8 MB, free: 15.55 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008375/0.1567, allocations: 0.6918 MB / 497.5 MB, free: 14.85 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.957e-05/0.1567, allocations: 41.7 kB / 497.5 MB, free: 14.8 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003341/0.1571, allocations: 487.4 kB / 498 MB, free: 14.32 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002112/0.1573, allocations: 232.6 kB / 498.2 MB, free: 14.09 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002172/0.1575, allocations: 154.6 kB / 498.3 MB, free: 13.93 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001598/0.1577, allocations: 398.7 kB / 498.7 MB, free: 13.54 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004571/0.1581, allocations: 305.8 kB / 499 MB, free: 13.23 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006471/0.1588, allocations: 0.511 MB / 499.5 MB, free: 12.63 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00376/0.1626, allocations: 1.683 MB / 0.4895 GB, free: 10.84 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.1626, allocations: 0 / 0.4895 GB, free: 10.84 MB / 382.1 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.002219/0.1648, allocations: 1.274 MB / 0.4907 GB, free: 9.555 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.181e-05/0.1648, allocations: 8 kB / 0.4907 GB, free: 9.547 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.282e-05/0.1649, allocations: 7.984 kB / 0.4907 GB, free: 9.539 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001091/0.166, allocations: 417.5 kB / 0.4911 GB, free: 9.125 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000533/0.1665, allocations: 143.8 kB / 0.4913 GB, free: 8.984 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008073/0.1746, allocations: 6.234 MB / 0.4974 GB, free: 2.449 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000581/0.1752, allocations: 39.98 kB / 0.4974 GB, free: 2.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.382e-05/0.1753, allocations: 28 kB / 0.4974 GB, free: 2.383 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.0005951/0.1759, allocations: 372.6 kB / 0.4978 GB, free: 2.012 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000193/0.1761, allocations: 82.95 kB / 0.4979 GB, free: 1.93 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001683/0.1778, allocations: 0.8956 MB / 0.4987 GB, free: 1.008 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.1778, allocations: 4 kB / 0.4987 GB, free: 1.004 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.997e-06/0.1778, allocations: 8 kB / 0.4987 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.148e-06/0.1778, allocations: 3.984 kB / 0.4988 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003215/0.181, allocations: 2.005 MB / 0.5007 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.603e-06/0.1811, allocations: 4 kB / 0.5007 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006217/0.1817, allocations: 120 kB / 0.5008 GB, free: 14.76 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005373/0.1822, allocations: 186.3 kB / 0.501 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.256e-05/0.1823, allocations: 23.98 kB / 0.501 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004322/0.1866, allocations: 5.488 MB / 0.5064 GB, free: 8.645 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.1867, allocations: 0 / 0.5064 GB, free: 8.645 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00188/0.1885, allocations: 1.266 MB / 0.5076 GB, free: 7.336 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003179/0.1889, allocations: 208 kB / 0.5078 GB, free: 7.113 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001341/0.189, allocations: 23.94 kB / 0.5078 GB, free: 7.09 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003842/0.1894, allocations: 20.17 kB / 0.5079 GB, free: 7.07 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.591e-05/0.1895, allocations: 52.5 kB / 0.5079 GB, free: 7.02 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.368e-05/0.1896, allocations: 23.98 kB / 0.5079 GB, free: 6.996 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00063/0.1902, allocations: 499 kB / 0.5084 GB, free: 6.516 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1902, allocations: 0 / 0.5084 GB, free: 6.516 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009971/0.1912, allocations: 244 kB / 0.5086 GB, free: 6.277 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.002917/0.1941, allocations: 2.127 MB / 0.5107 GB, free: 4.242 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002289/0.1964, allocations: 1.263 MB / 0.512 GB, free: 2.949 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.1965, allocations: 0 / 0.512 GB, free: 2.949 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009264/0.1974, allocations: 0.7099 MB / 0.5127 GB, free: 2.203 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009294/0.1983, allocations: 178.2 kB / 0.5128 GB, free: 2.027 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1803/0.3787, allocations: 8.827 MB / 0.5214 GB, free: 67.33 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006553/0.3794, allocations: 1.143 MB / 0.5226 GB, free: 66.6 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005841/0.3799, allocations: 164.7 kB / 0.5227 GB, free: 66.59 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003824/0.3803, allocations: 351.6 kB / 0.523 GB, free: 66.32 MB / 398.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3803, allocations: 0 / 0.523 GB, free: 66.32 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04698/0.4273, allocations: 21 MB / 0.5436 GB, free: 57 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.5/11.92, allocations: 12.62 kB / 0.5436 GB, free: 56.99 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_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_latest_PowerSystems_Examples_AC3ph_Generation_WindGeneratorLine.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches