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.001338/0.001338, allocations: 103.3 kB / 17.59 MB, free: 5.418 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.001541/0.001542, allocations: 191.3 kB / 18.52 MB, free: 4.508 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.325/1.325, allocations: 222.9 MB / 242.2 MB, free: 15.23 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.03 MB / 330.4 MB, free: 8.859 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001436/0.001436, allocations: 69.64 kB / 399.5 MB, free: 34.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09214/0.0936, allocations: 58.06 MB / 457.5 MB, free: 8.074 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Line): time 0.006757/0.1004, allocations: 5.165 MB / 462.7 MB, free: 2.879 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003111/0.1035, allocations: 1.753 MB / 464.5 MB, free: 1.121 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003877/0.1039, allocations: 19.88 kB / 464.5 MB, free: 1.102 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001455/0.1054, allocations: 449.1 kB / 464.9 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008826/0.1063, allocations: 294.4 kB / 465.2 MB, free: 384 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001031/0.1074, allocations: 359.2 kB / 465.6 MB, free: 24 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001008/0.1084, allocations: 0.7598 MB / 466.3 MB, free: 15.26 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006929/0.1091, allocations: 382.1 kB / 466.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005852/0.1097, allocations: 334.7 kB / 467 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007405/0.1104, allocations: 454.7 kB / 467.5 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001442/0.1106, allocations: 48 kB / 467.5 MB, free: 14.06 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004201/0.111, allocations: 175.7 kB / 467.7 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003118/0.1113, allocations: 287.3 kB / 468 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005744/0.1119, allocations: 334.4 kB / 468.3 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001019/0.113, allocations: 0.7983 MB / 469.1 MB, free: 12.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.113, allocations: 4 kB / 469.1 MB, free: 12.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.113, allocations: 0 / 469.1 MB, free: 12.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.498e-05/0.113, allocations: 4 kB / 469.1 MB, free: 12.47 MB / 350.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.002108/0.1151, allocations: 0.9136 MB / 470 MB, free: 11.51 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.1152, allocations: 19.88 kB / 470 MB, free: 11.49 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001115/0.1163, allocations: 132.1 kB / 470.2 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001033/0.1174, allocations: 0.5119 MB / 470.7 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.905e-05/0.1174, allocations: 37.12 kB / 470.7 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003728/0.1178, allocations: 127.8 kB / 470.8 MB, free: 10.65 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001333/0.1191, allocations: 0.8704 MB / 471.7 MB, free: 9.715 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.061e-05/0.1192, allocations: 0 / 471.7 MB, free: 9.715 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.184e-05/0.1192, allocations: 20 kB / 471.7 MB, free: 9.695 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004889/0.1197, allocations: 68.94 kB / 471.8 MB, free: 9.629 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001091/0.1208, allocations: 0.6166 MB / 472.4 MB, free: 9.008 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005187/0.126, allocations: 3.804 MB / 476.2 MB, free: 5.039 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001107/0.1272, allocations: 0.5422 MB / 476.7 MB, free: 4.477 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000457/0.1276, allocations: 315 kB / 477.1 MB, free: 4.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.04e-05/0.1277, allocations: 12.42 kB / 477.1 MB, free: 4.148 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.105e-05/0.1277, allocations: 46.88 kB / 477.1 MB, free: 4.094 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 2.444e-06/0.1278, allocations: 0 / 477.1 MB, free: 4.094 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.003267/0.131, allocations: 1.834 MB / 478.9 MB, free: 2.215 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.63e-05/0.1311, allocations: 81.55 kB / 479 MB, free: 2.117 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004494/0.1315, allocations: 429.8 kB / 479.4 MB, free: 1.688 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.876e-05/0.1316, allocations: 33.7 kB / 479.5 MB, free: 1.648 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002293/0.1318, allocations: 331.6 kB / 479.8 MB, free: 1.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001746/0.132, allocations: 197.3 kB / 480 MB, free: 1.125 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000233/0.1323, allocations: 146.2 kB / 480.1 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.1324, allocations: 370.7 kB / 480.5 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006069/0.133, allocations: 385.4 kB / 480.9 MB, free: 236 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008075/0.1339, allocations: 0.5941 MB / 481.5 MB, free: 15.54 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00137/0.1352, allocations: 1.061 MB / 482.5 MB, free: 14.38 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.372e-06/0.1352, allocations: 4 kB / 482.5 MB, free: 14.37 MB / 366.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.004612/0.1399, allocations: 2.003 MB / 484.5 MB, free: 12.35 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.134e-05/0.1399, allocations: 8 kB / 484.5 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.369e-05/0.1399, allocations: 4 kB / 484.6 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002484/0.1424, allocations: 0.9731 MB / 485.5 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004303/0.1429, allocations: 115.8 kB / 485.6 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01119/0.1541, allocations: 8.208 MB / 493.8 MB, free: 2.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005724/0.1547, allocations: 40.03 kB / 493.9 MB, free: 2.711 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001071/0.1548, allocations: 32 kB / 493.9 MB, free: 2.68 MB / 366.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.0004182/0.1552, allocations: 253.5 kB / 494.2 MB, free: 2.422 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001422/0.1554, allocations: 47.44 kB / 494.2 MB, free: 2.375 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001264/0.1566, allocations: 0.7335 MB / 494.9 MB, free: 1.637 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.201e-06/0.1566, allocations: 8 kB / 495 MB, free: 1.629 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.595e-06/0.1567, allocations: 0 / 495 MB, free: 1.629 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.785e-06/0.1567, allocations: 3.984 kB / 495 MB, free: 1.625 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002619/0.1593, allocations: 1.513 MB / 496.5 MB, free: 52 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.491e-06/0.1593, allocations: 4 kB / 496.5 MB, free: 48 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00105/0.1604, allocations: 187.8 kB / 496.7 MB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.945e-06/0.1604, allocations: 0 / 496.7 MB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.852e-05/0.1605, allocations: 31.92 kB / 496.7 MB, free: 15.83 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.701e-06/0.1605, allocations: 8.094 kB / 496.7 MB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.524e-06/0.1605, allocations: 3.938 kB / 496.7 MB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001387/0.1619, allocations: 0.9933 MB / 497.7 MB, free: 14.8 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001587/0.1621, allocations: 132.4 kB / 497.8 MB, free: 14.65 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000104/0.1622, allocations: 27.98 kB / 497.8 MB, free: 14.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003433/0.1625, allocations: 27.97 kB / 497.9 MB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.538e-05/0.1626, allocations: 32.39 kB / 497.9 MB, free: 14.56 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.783e-05/0.1627, allocations: 16 kB / 497.9 MB, free: 14.55 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003018/0.163, allocations: 283.1 kB / 498.2 MB, free: 14.27 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.163, allocations: 0 / 498.2 MB, free: 14.27 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007841/0.1638, allocations: 212 kB / 498.4 MB, free: 14.06 MB / 382.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.0001548/0.1639, allocations: 135 kB / 498.5 MB, free: 13.92 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002728/0.1667, allocations: 1.652 MB / 0.4885 GB, free: 12.25 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.1667, allocations: 0 / 0.4885 GB, free: 12.25 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000436/0.1671, allocations: 306.3 kB / 0.4888 GB, free: 11.95 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006599/0.1678, allocations: 137.5 kB / 0.4889 GB, free: 11.81 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004216/0.172, allocations: 2.759 MB / 0.4916 GB, free: 9.004 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005583/0.1726, allocations: 0.9882 MB / 0.4925 GB, free: 7.988 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001791/0.1728, allocations: 47.42 kB / 0.4926 GB, free: 7.945 MB / 382.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1728, allocations: 0 / 0.4926 GB, free: 7.945 MB / 382.1 MB Notification: Performance of Templates: time 0.01523/0.188, allocations: 10.93 MB / 0.5033 GB, free: 13.03 MB / 398.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