Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line.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.Elementary.Line,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Line",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Line,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Line",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.001016/0.001016, allocations: 112.7 kB / 17.07 MB, free: 5.988 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.001465/0.001465, allocations: 195 kB / 18 MB, free: 5.074 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.397/1.397, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.228/0.228, allocations: 38.04 MB / 329.9 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001359/0.00136, allocations: 67.91 kB / 457.6 MB, free: 7.371 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3514/0.3528, allocations: 58.06 MB / 0.5036 GB, free: 7.461 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Line): time 0.005712/0.3585, allocations: 5.182 MB / 0.5087 GB, free: 3.84 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002746/0.3613, allocations: 1.75 MB / 0.5104 GB, free: 2.617 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003571/0.3617, allocations: 18.38 kB / 0.5104 GB, free: 2.609 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001245/0.363, allocations: 441.7 kB / 0.5108 GB, free: 2.348 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007682/0.3637, allocations: 303.6 kB / 0.5111 GB, free: 2.172 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009855/0.3647, allocations: 358 kB / 0.5115 GB, free: 2.027 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009494/0.3657, allocations: 0.7597 MB / 0.5122 GB, free: 1.707 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005704/0.3663, allocations: 377.7 kB / 0.5126 GB, free: 1.555 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005626/0.3669, allocations: 349 kB / 0.5129 GB, free: 1.406 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006569/0.3675, allocations: 450.1 kB / 0.5133 GB, free: 1.262 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.169e-05/0.3676, allocations: 54.66 kB / 0.5134 GB, free: 1.258 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003756/0.368, allocations: 174.2 kB / 0.5135 GB, free: 1.215 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000287/0.3683, allocations: 292.6 kB / 0.5138 GB, free: 1.109 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003392/0.3687, allocations: 337.9 kB / 0.5141 GB, free: 0.918 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009854/0.3696, allocations: 0.8118 MB / 0.5149 GB, free: 0.625 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.3697, allocations: 4.719 kB / 0.5149 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.3697, allocations: 0.6562 kB / 0.5149 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.037e-05/0.3697, allocations: 0 / 0.5149 GB, free: 0.6211 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 139 * Number of variables: 139 Notification: Performance of Generate backend data structure: time 0.001722/0.3714, allocations: 0.9241 MB / 0.5158 GB, free: 15.95 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.286e-05/0.3715, allocations: 17.61 kB / 0.5159 GB, free: 15.94 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001313/0.3716, allocations: 96.69 kB / 0.516 GB, free: 15.87 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001065/0.3727, allocations: 141.5 kB / 0.5161 GB, free: 15.83 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001185/0.3739, allocations: 0.5365 MB / 0.5166 GB, free: 15.5 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.738e-05/0.3739, allocations: 35.53 kB / 0.5166 GB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000443/0.3744, allocations: 134 kB / 0.5168 GB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001509/0.3759, allocations: 0.8597 MB / 0.5176 GB, free: 15.01 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.445e-05/0.376, allocations: 6.188 kB / 0.5176 GB, free: 15.01 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.629e-05/0.376, allocations: 25.61 kB / 0.5176 GB, free: 14.99 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004838/0.3765, allocations: 75.48 kB / 0.5177 GB, free: 14.98 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001165/0.3777, allocations: 0.6162 MB / 0.5183 GB, free: 14.79 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005123/0.3828, allocations: 3.785 MB / 0.522 GB, free: 12.16 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001364/0.3842, allocations: 0.5424 MB / 0.5225 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005984/0.3848, allocations: 319.7 kB / 0.5228 GB, free: 11.83 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.109e-05/0.3849, allocations: 10.75 kB / 0.5229 GB, free: 11.82 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.769e-05/0.385, allocations: 42.83 kB / 0.5229 GB, free: 11.77 MB / 398.1 MB Notification: Performance of pre-optimization done (n=48): time 2.825e-06/0.385, allocations: 0 / 0.5229 GB, free: 11.77 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.003751/0.3887, allocations: 1.847 MB / 0.5247 GB, free: 10.87 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.493e-05/0.3888, allocations: 82.56 kB / 0.5248 GB, free: 10.78 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000522/0.3893, allocations: 417.2 kB / 0.5252 GB, free: 10.59 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.311e-05/0.3894, allocations: 36.14 kB / 0.5252 GB, free: 10.55 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002413/0.3897, allocations: 343.5 kB / 0.5255 GB, free: 10.27 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001921/0.3899, allocations: 214.3 kB / 0.5257 GB, free: 10.1 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002954/0.3902, allocations: 147.6 kB / 0.5259 GB, free: 10.03 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001815/0.3904, allocations: 368.3 kB / 0.5262 GB, free: 9.695 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006297/0.391, allocations: 384.2 kB / 0.5266 GB, free: 9.574 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000775/0.3918, allocations: 0.5994 MB / 0.5272 GB, free: 9.18 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001486/0.3933, allocations: 1.069 MB / 0.5282 GB, free: 8.574 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.3933, allocations: 2.312 kB / 0.5282 GB, free: 8.574 MB / 398.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.004964/0.3983, allocations: 2.006 MB / 0.5302 GB, free: 7.867 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.642e-05/0.3983, allocations: 8.828 kB / 0.5302 GB, free: 7.867 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.805e-05/0.3983, allocations: 15.31 kB / 0.5302 GB, free: 7.859 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002662/0.401, allocations: 0.967 MB / 0.5312 GB, free: 7.703 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005168/0.4016, allocations: 118.3 kB / 0.5313 GB, free: 7.691 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01145/0.413, allocations: 8.193 MB / 0.5393 GB, free: 2.082 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006799/0.4137, allocations: 33.33 kB / 0.5393 GB, free: 2.066 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001675/0.4139, allocations: 40.02 kB / 0.5393 GB, free: 2.055 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * 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 (60): * Single equations (assignments): 58 * 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): 2 systems {(1,6,100.0%), (23,12,23.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005064/0.4144, allocations: 242.5 kB / 0.5396 GB, free: 1.867 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001596/0.4146, allocations: 51.73 kB / 0.5396 GB, free: 1.84 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001407/0.416, allocations: 0.7272 MB / 0.5403 GB, free: 1.441 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.293e-06/0.416, allocations: 5.375 kB / 0.5403 GB, free: 1.441 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.416, allocations: 1.219 kB / 0.5403 GB, free: 1.441 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.424e-05/0.4161, allocations: 3.984 kB / 0.5403 GB, free: 1.438 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002988/0.4191, allocations: 1.529 MB / 0.5418 GB, free: 496 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.4191, allocations: 1.75 kB / 0.5418 GB, free: 496 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001086/0.4202, allocations: 193.2 kB / 0.542 GB, free: 372 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.275e-05/0.4202, allocations: 8.094 kB / 0.542 GB, free: 364 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.976e-05/0.4203, allocations: 27.92 kB / 0.5421 GB, free: 336 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.172e-06/0.4203, allocations: 4 kB / 0.5421 GB, free: 332 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.4203, allocations: 4.156 kB / 0.5421 GB, free: 328 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001531/0.4219, allocations: 1.001 MB / 0.543 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002354/0.4221, allocations: 124.8 kB / 0.5432 GB, free: 15.15 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000146/0.4223, allocations: 27.98 kB / 0.5432 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003736/0.4226, allocations: 23.97 kB / 0.5432 GB, free: 15.1 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.834e-05/0.4227, allocations: 28.39 kB / 0.5432 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.44e-05/0.4228, allocations: 19.98 kB / 0.5433 GB, free: 15.05 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003415/0.4231, allocations: 279.1 kB / 0.5435 GB, free: 14.78 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4231, allocations: 0 / 0.5435 GB, free: 14.78 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001086/0.4242, allocations: 220 kB / 0.5437 GB, free: 14.56 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 21 (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[1,4],line.i[2,1],line.i[2,2],line.i[2,3],line.i[2,4],line.i[3,1],line.i[3,2],line.i[3,3],line.i[3,4]) * 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 (52): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001798/0.4261, allocations: 1.562 MB / 0.5453 GB, free: 12.96 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002781/0.4288, allocations: 1.48 MB / 0.5467 GB, free: 11.46 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.4289, allocations: 4 kB / 0.5467 GB, free: 11.46 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004945/0.4294, allocations: 307.1 kB / 0.547 GB, free: 11.16 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008555/0.4303, allocations: 132.1 kB / 0.5471 GB, free: 11.03 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01783/0.4481, allocations: 9.739 MB / 0.5566 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008086/0.449, allocations: 0.9843 MB / 0.5576 GB, free: 15.96 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0006568/0.4496, allocations: 196.6 kB / 0.5578 GB, free: 15.77 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004784/0.4501, allocations: 231.4 kB / 0.558 GB, free: 15.54 MB / 430.1 MB Notification: Performance of SimCode: time 7.51e-07/0.4501, allocations: 0 / 0.558 GB, free: 15.54 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05432/0.5045, allocations: 17.51 MB / 0.5751 GB, free: 14.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.59/12.09, allocations: 10.22 kB / 0.5751 GB, free: 14.19 MB / 446.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Line.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Line.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches