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.001298/0.001298, allocations: 113.5 kB / 17.06 MB, free: 5.992 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.001271/0.001271, allocations: 200 kB / 18.01 MB, free: 5.066 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.434/1.434, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1801/0.1801, allocations: 38.04 MB / 329.9 MB, free: 8.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002024/0.002024, allocations: 71.88 kB / 457.7 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3942/0.3963, allocations: 58.06 MB / 0.5036 GB, free: 7.492 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Line): time 0.006395/0.4027, allocations: 5.175 MB / 0.5087 GB, free: 3.883 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003206/0.4059, allocations: 1.751 MB / 0.5104 GB, free: 2.66 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004548/0.4064, allocations: 18.28 kB / 0.5104 GB, free: 2.652 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001289/0.4078, allocations: 441 kB / 0.5108 GB, free: 2.395 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008223/0.4086, allocations: 303.8 kB / 0.5111 GB, free: 2.219 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001082/0.4097, allocations: 353.7 kB / 0.5115 GB, free: 2.078 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009718/0.4107, allocations: 0.7614 MB / 0.5122 GB, free: 1.754 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006017/0.4113, allocations: 386.8 kB / 0.5126 GB, free: 1.59 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006167/0.4119, allocations: 326.4 kB / 0.5129 GB, free: 1.457 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009281/0.4129, allocations: 466.1 kB / 0.5133 GB, free: 1.297 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001189/0.413, allocations: 50.28 kB / 0.5134 GB, free: 1.297 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004789/0.4135, allocations: 170.8 kB / 0.5135 GB, free: 1.258 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004065/0.4139, allocations: 284.6 kB / 0.5138 GB, free: 1.16 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004088/0.4143, allocations: 341.6 kB / 0.5141 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001495/0.4158, allocations: 0.8132 MB / 0.5149 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.4158, allocations: 0 / 0.5149 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.4158, allocations: 0 / 0.5149 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.167e-05/0.4159, allocations: 1.25 kB / 0.5149 GB, free: 0.6719 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.002028/0.4179, allocations: 0.927 MB / 0.5158 GB, free: 0 / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.268e-05/0.418, allocations: 9.844 kB / 0.5158 GB, free: 16 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000155/0.4181, allocations: 97.25 kB / 0.5159 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00106/0.4192, allocations: 142 kB / 0.5161 GB, free: 15.88 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001305/0.4205, allocations: 0.5439 MB / 0.5166 GB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.786e-05/0.4206, allocations: 34.66 kB / 0.5166 GB, free: 15.52 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004343/0.421, allocations: 130.9 kB / 0.5168 GB, free: 15.49 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001618/0.4226, allocations: 0.8594 MB / 0.5176 GB, free: 15.06 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.467e-05/0.4227, allocations: 10.22 kB / 0.5176 GB, free: 15.05 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.68e-05/0.4228, allocations: 22.14 kB / 0.5176 GB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004655/0.4232, allocations: 79.53 kB / 0.5177 GB, free: 15.02 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00111/0.4243, allocations: 0.616 MB / 0.5183 GB, free: 14.83 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00496/0.4293, allocations: 3.784 MB / 0.522 GB, free: 12.2 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001143/0.4305, allocations: 0.5393 MB / 0.5225 GB, free: 12 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006105/0.4311, allocations: 324.5 kB / 0.5228 GB, free: 11.87 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.995e-05/0.4312, allocations: 9.781 kB / 0.5228 GB, free: 11.87 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.366e-05/0.4313, allocations: 38.33 kB / 0.5229 GB, free: 11.82 MB / 398.1 MB Notification: Performance of pre-optimization done (n=48): time 2.856e-06/0.4313, allocations: 0 / 0.5229 GB, free: 11.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.004579/0.4359, allocations: 1.855 MB / 0.5247 GB, free: 10.91 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.384e-05/0.436, allocations: 83.39 kB / 0.5248 GB, free: 10.82 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007605/0.4367, allocations: 416.4 kB / 0.5252 GB, free: 10.62 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.536e-05/0.4368, allocations: 40.08 kB / 0.5252 GB, free: 10.58 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003981/0.4372, allocations: 336.3 kB / 0.5255 GB, free: 10.31 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000305/0.4376, allocations: 209.4 kB / 0.5257 GB, free: 10.15 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003838/0.438, allocations: 151.7 kB / 0.5259 GB, free: 10.07 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0003211/0.4383, allocations: 372.9 kB / 0.5262 GB, free: 9.734 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001091/0.4394, allocations: 379.4 kB / 0.5266 GB, free: 9.617 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001248/0.4407, allocations: 0.5999 MB / 0.5272 GB, free: 9.223 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002302/0.443, allocations: 1.069 MB / 0.5282 GB, free: 8.617 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.494e-06/0.443, allocations: 2.188 kB / 0.5282 GB, free: 8.617 MB / 398.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.007125/0.4501, allocations: 2.002 MB / 0.5302 GB, free: 7.914 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.355e-05/0.4502, allocations: 7.594 kB / 0.5302 GB, free: 7.914 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.758e-05/0.4502, allocations: 12 kB / 0.5302 GB, free: 7.91 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002467/0.4527, allocations: 0.9661 MB / 0.5311 GB, free: 7.754 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004396/0.4531, allocations: 122.7 kB / 0.5313 GB, free: 7.738 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01192/0.4651, allocations: 8.2 MB / 0.5393 GB, free: 2.133 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007375/0.4658, allocations: 40.56 kB / 0.5393 GB, free: 2.109 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.584e-05/0.4659, allocations: 35.59 kB / 0.5393 GB, free: 2.102 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.0004936/0.4664, allocations: 247.2 kB / 0.5396 GB, free: 1.91 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001204/0.4666, allocations: 51.48 kB / 0.5396 GB, free: 1.883 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0013/0.4679, allocations: 0.7229 MB / 0.5403 GB, free: 1.488 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.313e-06/0.4679, allocations: 5.281 kB / 0.5403 GB, free: 1.488 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.515e-06/0.4679, allocations: 5.344 kB / 0.5403 GB, free: 1.484 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/0.4679, allocations: 3.984 kB / 0.5403 GB, free: 1.48 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002786/0.4707, allocations: 1.522 MB / 0.5418 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.339e-06/0.4707, allocations: 0 / 0.5418 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001055/0.4718, allocations: 187.8 kB / 0.542 GB, free: 316 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.266e-06/0.4718, allocations: 4 kB / 0.542 GB, free: 312 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.9e-05/0.4719, allocations: 39.84 kB / 0.5421 GB, free: 272 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.991e-06/0.4719, allocations: 4 kB / 0.5421 GB, free: 268 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.4719, allocations: 4.094 kB / 0.5421 GB, free: 264 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001581/0.4735, allocations: 0.9937 MB / 0.543 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000197/0.4737, allocations: 128.8 kB / 0.5432 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001956/0.4739, allocations: 32.05 kB / 0.5432 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003303/0.4742, allocations: 27.97 kB / 0.5432 GB, free: 15.03 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.343e-05/0.4743, allocations: 32.39 kB / 0.5432 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.41e-05/0.4744, allocations: 16 kB / 0.5433 GB, free: 14.98 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003321/0.4747, allocations: 279.1 kB / 0.5435 GB, free: 14.71 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4747, allocations: 0 / 0.5435 GB, free: 14.71 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009259/0.4757, allocations: 212 kB / 0.5437 GB, free: 14.5 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.001959/0.4776, allocations: 1.573 MB / 0.5453 GB, free: 12.89 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002834/0.4805, allocations: 1.476 MB / 0.5467 GB, free: 11.39 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.4805, allocations: 0 / 0.5467 GB, free: 11.39 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00048/0.481, allocations: 310.2 kB / 0.547 GB, free: 11.09 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007241/0.4817, allocations: 134.4 kB / 0.5471 GB, free: 10.96 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01886/0.5006, allocations: 9.745 MB / 0.5566 GB, free: 0.8984 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008979/0.5015, allocations: 0.9804 MB / 0.5576 GB, free: 15.89 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005866/0.5021, allocations: 200.6 kB / 0.5578 GB, free: 15.7 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004333/0.5026, allocations: 231.4 kB / 0.558 GB, free: 15.47 MB / 430.1 MB Notification: Performance of SimCode: time 5.2e-07/0.5026, allocations: 0 / 0.558 GB, free: 15.47 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05258/0.5552, allocations: 17.5 MB / 0.5751 GB, free: 14.14 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.02/11.58, allocations: 10.28 kB / 0.5751 GB, free: 14.14 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