Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.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.AC1ph_DC.Elementary.Line,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Line,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001844/0.001844, allocations: 108.3 kB / 17.68 MB, free: 5.332 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.001746/0.001746, allocations: 192 kB / 18.62 MB, free: 4.41 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.629/1.629, allocations: 222.9 MB / 242.3 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.2051/0.2051, allocations: 38.05 MB / 330.5 MB, free: 8.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001443/0.001443, allocations: 66.56 kB / 400.2 MB, free: 33.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1579/0.1593, allocations: 58.06 MB / 458.3 MB, free: 7.336 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Line): time 0.007536/0.1669, allocations: 4.907 MB / 463.2 MB, free: 2.398 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002512/0.1695, allocations: 1.301 MB / 464.5 MB, free: 1.094 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003324/0.1698, allocations: 11.94 kB / 464.5 MB, free: 1.082 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005178/0.1704, allocations: 135 kB / 464.7 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007868/0.1712, allocations: 326.3 kB / 465 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005291/0.1718, allocations: 159.7 kB / 465.1 MB, free: 484 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008406/0.1726, allocations: 0.6892 MB / 465.8 MB, free: 15.78 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003145/0.173, allocations: 163.8 kB / 466 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004791/0.1735, allocations: 310.8 kB / 466.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007202/0.1742, allocations: 438.7 kB / 466.7 MB, free: 14.89 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.063e-05/0.1743, allocations: 44 kB / 466.8 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001115/0.1744, allocations: 48 kB / 466.8 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002915/0.1747, allocations: 235.4 kB / 467 MB, free: 14.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003253/0.175, allocations: 282.7 kB / 467.3 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007495/0.1758, allocations: 0.6074 MB / 467.9 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.228e-06/0.1758, allocations: 0 / 467.9 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.787e-06/0.1758, allocations: 7.938 kB / 467.9 MB, free: 13.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.372e-05/0.1758, allocations: 0 / 467.9 MB, free: 13.68 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.002276/0.1781, allocations: 0.9388 MB / 468.9 MB, free: 12.69 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.127e-05/0.1782, allocations: 15.89 kB / 468.9 MB, free: 12.67 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001231/0.1783, allocations: 52.38 kB / 468.9 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00127/0.1796, allocations: 0.615 MB / 469.5 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.214e-05/0.1796, allocations: 24.66 kB / 469.6 MB, free: 11.94 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.773e-05/0.1798, allocations: 47.91 kB / 469.6 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008465/0.1806, allocations: 0.5518 MB / 470.2 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.471e-05/0.1806, allocations: 0 / 470.2 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.334e-05/0.1807, allocations: 16 kB / 470.2 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000314/0.181, allocations: 92.52 kB / 470.3 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000555/0.1816, allocations: 358.2 kB / 470.6 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003479/0.1851, allocations: 2.058 MB / 472.7 MB, free: 8.711 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009718/0.1861, allocations: 373.2 kB / 473 MB, free: 8.328 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006435/0.1867, allocations: 325.6 kB / 473.4 MB, free: 8.004 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.334e-05/0.1868, allocations: 7.938 kB / 473.4 MB, free: 7.996 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.107e-05/0.1868, allocations: 38.56 kB / 473.4 MB, free: 7.949 MB / 350.1 MB Notification: Performance of pre-optimization done (n=32): time 2.285e-06/0.1868, allocations: 0 / 473.4 MB, free: 7.949 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.004865/0.1917, allocations: 2.542 MB / 476 MB, free: 5.199 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.395e-05/0.1918, allocations: 77.11 kB / 476 MB, free: 5.105 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004566/0.1923, allocations: 385.6 kB / 476.4 MB, free: 4.723 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.412e-05/0.1923, allocations: 29.7 kB / 476.4 MB, free: 4.688 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002069/0.1925, allocations: 256.1 kB / 476.7 MB, free: 4.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001191/0.1927, allocations: 138.1 kB / 476.8 MB, free: 4.293 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001556/0.1928, allocations: 98.16 kB / 476.9 MB, free: 4.191 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001785/0.193, allocations: 362.8 kB / 477.3 MB, free: 3.828 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003619/0.1934, allocations: 252.9 kB / 477.5 MB, free: 3.582 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004392/0.1938, allocations: 365.8 kB / 477.9 MB, free: 3.18 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008181/0.1947, allocations: 0.6196 MB / 478.5 MB, free: 2.516 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.1947, allocations: 0 / 478.5 MB, free: 2.516 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001644/0.1963, allocations: 1.014 MB / 479.5 MB, free: 1.488 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.646e-05/0.1964, allocations: 7.938 kB / 479.5 MB, free: 1.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.401e-05/0.1964, allocations: 7.984 kB / 479.5 MB, free: 1.473 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009808/0.1974, allocations: 413.4 kB / 479.9 MB, free: 1.062 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003211/0.1977, allocations: 91.81 kB / 480 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005765/0.2035, allocations: 5.124 MB / 485.1 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004641/0.204, allocations: 40 kB / 485.2 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.49e-05/0.204, allocations: 24 kB / 485.2 MB, free: 11.51 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (48): * Single equations (assignments): 46 * 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%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003566/0.2044, allocations: 201.7 kB / 485.4 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.495e-05/0.2045, allocations: 39.53 kB / 485.4 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001522/0.206, allocations: 0.8427 MB / 486.3 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.206, allocations: 4 kB / 486.3 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.206, allocations: 4 kB / 486.3 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.2061, allocations: 0 / 486.3 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002174/0.2082, allocations: 1.414 MB / 487.7 MB, free: 8.891 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.2083, allocations: 0 / 487.7 MB, free: 8.891 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000187/0.2084, allocations: 47.91 kB / 487.8 MB, free: 8.844 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001115/0.2096, allocations: 445.3 kB / 488.2 MB, free: 8.387 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.572e-05/0.2096, allocations: 35.91 kB / 488.2 MB, free: 8.352 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006328/0.216, allocations: 6.714 MB / 494.9 MB, free: 1.07 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.776e-06/0.216, allocations: 0 / 494.9 MB, free: 1.07 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001986/0.218, allocations: 1.138 MB / 496.1 MB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001676/0.2182, allocations: 116.5 kB / 496.2 MB, free: 15.75 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.277e-05/0.2183, allocations: 27.98 kB / 496.2 MB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002906/0.2186, allocations: 39.94 kB / 496.3 MB, free: 15.69 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001094/0.2187, allocations: 31.95 kB / 496.3 MB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.529e-05/0.2187, allocations: 15.98 kB / 496.3 MB, free: 15.64 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003404/0.2191, allocations: 271.1 kB / 496.6 MB, free: 15.38 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2191, allocations: 0 / 496.6 MB, free: 15.38 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007271/0.2198, allocations: 159.9 kB / 496.7 MB, free: 15.22 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 14 (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.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]) * 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 (29): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002493/0.2201, allocations: 129.2 kB / 496.8 MB, free: 15.09 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001748/0.2218, allocations: 0.9074 MB / 497.8 MB, free: 14.15 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.107e-06/0.2219, allocations: 0 / 497.8 MB, free: 14.15 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001659/0.2235, allocations: 1.079 MB / 498.8 MB, free: 12.96 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007505/0.2243, allocations: 121.5 kB / 499 MB, free: 12.84 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003125/0.2274, allocations: 1.828 MB / 0.489 GB, free: 10.98 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005951/0.228, allocations: 0.886 MB / 0.4899 GB, free: 10.07 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002299/0.2283, allocations: 68.34 kB / 0.49 GB, free: 10 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.674e-05/0.2284, allocations: 39.42 kB / 0.49 GB, free: 9.961 MB / 382.1 MB Notification: Performance of SimCode: time 1.413e-06/0.2284, allocations: 0 / 0.49 GB, free: 9.961 MB / 382.1 MB Notification: Performance of Templates: time 0.01477/0.2432, allocations: 7.613 MB / 0.4974 GB, free: 2.406 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Line.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches