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: translateModel(PowerSystems.Examples.AC3ph.Elementary.Line,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line") translateModel(PowerSystems.Examples.AC3ph.Elementary.Line,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001442/0.001442, allocations: 112.3 kB / 17.74 MB, free: 5.293 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.001358/0.001358, allocations: 187 kB / 18.67 MB, free: 4.375 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.354/1.354, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.181/0.181, allocations: 38.04 MB / 330.6 MB, free: 8.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001527/0.001527, allocations: 71.81 kB / 458.8 MB, free: 6.836 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3369/0.3384, allocations: 58.05 MB / 0.5048 GB, free: 7.777 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Line): time 0.006126/0.3446, allocations: 5.184 MB / 0.5098 GB, free: 4.164 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002896/0.3475, allocations: 1.749 MB / 0.5115 GB, free: 2.949 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004783/0.348, allocations: 18.19 kB / 0.5115 GB, free: 2.941 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001341/0.3494, allocations: 445.6 kB / 0.512 GB, free: 2.676 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009107/0.3503, allocations: 297.4 kB / 0.5123 GB, free: 2.508 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001055/0.3514, allocations: 360.3 kB / 0.5126 GB, free: 2.359 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00101/0.3524, allocations: 0.7576 MB / 0.5133 GB, free: 2.039 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005967/0.353, allocations: 384.9 kB / 0.5137 GB, free: 1.875 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005388/0.3536, allocations: 340 kB / 0.514 GB, free: 1.734 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006908/0.3543, allocations: 455.8 kB / 0.5145 GB, free: 1.586 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.886e-05/0.3544, allocations: 50.03 kB / 0.5145 GB, free: 1.586 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004168/0.3548, allocations: 173.7 kB / 0.5147 GB, free: 1.543 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003176/0.3551, allocations: 290 kB / 0.515 GB, free: 1.441 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003867/0.3555, allocations: 336.6 kB / 0.5153 GB, free: 1.25 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001012/0.3566, allocations: 0.8179 MB / 0.5161 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.3566, allocations: 0 / 0.5161 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3566, allocations: 0 / 0.5161 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.603e-05/0.3566, allocations: 1.438 kB / 0.5161 GB, free: 0.9531 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.001789/0.3584, allocations: 0.9061 MB / 0.517 GB, free: 312 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.757e-05/0.3584, allocations: 12.95 kB / 0.517 GB, free: 308 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001084/0.3595, allocations: 137.6 kB / 0.5171 GB, free: 268 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009684/0.3605, allocations: 0.5361 MB / 0.5176 GB, free: 15.92 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.473e-05/0.3606, allocations: 35.25 kB / 0.5177 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004328/0.361, allocations: 131.1 kB / 0.5178 GB, free: 15.88 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001391/0.3624, allocations: 0.8595 MB / 0.5186 GB, free: 15.44 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.345e-05/0.3625, allocations: 10.45 kB / 0.5186 GB, free: 15.44 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.449e-05/0.3625, allocations: 17.47 kB / 0.5187 GB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000487/0.363, allocations: 73.19 kB / 0.5187 GB, free: 15.42 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0011/0.3641, allocations: 0.6181 MB / 0.5193 GB, free: 15.22 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004783/0.3689, allocations: 3.787 MB / 0.523 GB, free: 12.59 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001084/0.37, allocations: 0.5358 MB / 0.5235 GB, free: 12.39 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004843/0.3705, allocations: 320.5 kB / 0.5239 GB, free: 12.27 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.943e-05/0.3706, allocations: 11.3 kB / 0.5239 GB, free: 12.26 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.403e-05/0.3706, allocations: 42.22 kB / 0.5239 GB, free: 12.21 MB / 398.1 MB Notification: Performance of pre-optimization done (n=48): time 2.825e-06/0.3706, allocations: 7.938 kB / 0.5239 GB, free: 12.2 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.003206/0.3739, allocations: 1.837 MB / 0.5257 GB, free: 11.31 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.695e-05/0.3739, allocations: 83.45 kB / 0.5258 GB, free: 11.21 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004842/0.3744, allocations: 417.6 kB / 0.5262 GB, free: 11.02 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.441e-05/0.3745, allocations: 39.98 kB / 0.5262 GB, free: 10.98 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002402/0.3747, allocations: 327.7 kB / 0.5265 GB, free: 10.71 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002094/0.3749, allocations: 204.1 kB / 0.5267 GB, free: 10.56 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002428/0.3752, allocations: 142.4 kB / 0.5269 GB, free: 10.49 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001803/0.3754, allocations: 373.6 kB / 0.5272 GB, free: 10.15 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005901/0.376, allocations: 380.3 kB / 0.5276 GB, free: 10.04 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007739/0.3767, allocations: 0.5999 MB / 0.5282 GB, free: 9.641 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001391/0.3781, allocations: 1.072 MB / 0.5292 GB, free: 9.031 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.3782, allocations: 2.125 kB / 0.5292 GB, free: 9.031 MB / 398.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.004626/0.3828, allocations: 1.99 MB / 0.5312 GB, free: 8.34 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.499e-05/0.3828, allocations: 12.19 kB / 0.5312 GB, free: 8.336 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.305e-05/0.3829, allocations: 12.52 kB / 0.5312 GB, free: 8.332 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002511/0.3854, allocations: 0.969 MB / 0.5321 GB, free: 8.086 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004751/0.3859, allocations: 125.9 kB / 0.5323 GB, free: 8.051 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01096/0.3968, allocations: 8.179 MB / 0.5402 GB, free: 2.449 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006992/0.3976, allocations: 36.44 kB / 0.5403 GB, free: 2.43 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.909e-05/0.3977, allocations: 35.14 kB / 0.5403 GB, free: 2.422 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.0004268/0.3981, allocations: 258.6 kB / 0.5406 GB, free: 2.219 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001085/0.3982, allocations: 51.31 kB / 0.5406 GB, free: 2.191 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001243/0.3995, allocations: 0.7194 MB / 0.5413 GB, free: 1.801 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.743e-06/0.3995, allocations: 5.406 kB / 0.5413 GB, free: 1.801 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.3995, allocations: 1.219 kB / 0.5413 GB, free: 1.801 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.075e-05/0.3995, allocations: 5.391 kB / 0.5413 GB, free: 1.797 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002534/0.4021, allocations: 1.525 MB / 0.5428 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.222e-06/0.4021, allocations: 4.062 kB / 0.5428 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001022/0.4031, allocations: 191.9 kB / 0.543 GB, free: 420 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.3e-06/0.4031, allocations: 4 kB / 0.543 GB, free: 416 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.971e-05/0.4032, allocations: 31.92 kB / 0.543 GB, free: 384 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.434e-06/0.4032, allocations: 7.938 kB / 0.543 GB, free: 376 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.4032, allocations: 0 / 0.543 GB, free: 376 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001392/0.4046, allocations: 0.9856 MB / 0.544 GB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001473/0.4048, allocations: 128.5 kB / 0.5441 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.999e-05/0.4049, allocations: 31.89 kB / 0.5442 GB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003438/0.4052, allocations: 23.97 kB / 0.5442 GB, free: 15.16 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.141e-05/0.4053, allocations: 36.33 kB / 0.5442 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.934e-05/0.4054, allocations: 16 kB / 0.5442 GB, free: 15.1 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003007/0.4057, allocations: 287.1 kB / 0.5445 GB, free: 14.82 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.4057, allocations: 0 / 0.5445 GB, free: 14.82 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000905/0.4066, allocations: 215.9 kB / 0.5447 GB, free: 14.61 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.000161/0.4068, allocations: 119.2 kB / 0.5448 GB, free: 14.48 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002642/0.4094, allocations: 1.471 MB / 0.5463 GB, free: 12.99 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.4094, allocations: 4.125 kB / 0.5463 GB, free: 12.98 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004547/0.4099, allocations: 310.3 kB / 0.5466 GB, free: 12.68 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007229/0.4106, allocations: 123.6 kB / 0.5467 GB, free: 12.57 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004429/0.4151, allocations: 2.758 MB / 0.5494 GB, free: 9.758 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006726/0.4158, allocations: 0.9843 MB / 0.5503 GB, free: 8.746 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002184/0.416, allocations: 43.44 kB / 0.5504 GB, free: 8.703 MB / 414.1 MB Notification: Performance of SimCode: time 5.81e-07/0.416, allocations: 4 kB / 0.5504 GB, free: 8.699 MB / 414.1 MB Notification: Performance of Templates: time 0.01658/0.4326, allocations: 10.99 MB / 0.5611 GB, free: 13.72 MB / 430.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line.makefile (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 & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line_res.mat","/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) "" Variables in the reference:Time,meter.i[1],meter.i[2],meter.i[3],meter.p[1],meter.p[2],meter.p[3],meter.v[1],meter.v[2],meter.v[3] Variables in the result:meter.i[1],meter.i[2],meter.i[3],meter.p[1],meter.p[2],meter.p[3],meter.v[1],meter.v[2],meter.v[3],time