Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.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.Source,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Source,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001929/0.001929, allocations: 111.9 kB / 17.68 MB, free: 5.355 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.002345/0.002345, allocations: 192 kB / 18.62 MB, free: 4.434 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.726/1.726, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2119/0.2119, allocations: 38.03 MB / 330.5 MB, free: 8.793 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001425/0.001425, allocations: 59.95 kB / 400.2 MB, free: 33.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1532/0.1547, allocations: 58.06 MB / 458.3 MB, free: 7.352 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Source): time 0.007599/0.1623, allocations: 3.917 MB / 462.2 MB, free: 3.406 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002065/0.1645, allocations: 0.8727 MB / 463.1 MB, free: 2.531 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002124/0.1647, allocations: 11.94 kB / 463.1 MB, free: 2.52 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002369/0.165, allocations: 47.56 kB / 463.2 MB, free: 2.473 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000577/0.1656, allocations: 163.1 kB / 463.3 MB, free: 2.312 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002208/0.1658, allocations: 79.83 kB / 463.4 MB, free: 2.234 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004806/0.1663, allocations: 378.7 kB / 463.8 MB, free: 1.863 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002344/0.1666, allocations: 88.53 kB / 463.8 MB, free: 1.773 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002751/0.1669, allocations: 163.3 kB / 464 MB, free: 1.613 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003637/0.1672, allocations: 167.4 kB / 464.2 MB, free: 1.449 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.931e-05/0.1673, allocations: 20 kB / 464.2 MB, free: 1.43 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.571e-05/0.1674, allocations: 16 kB / 464.2 MB, free: 1.414 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001194/0.1675, allocations: 79.73 kB / 464.3 MB, free: 1.336 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001467/0.1677, allocations: 131.3 kB / 464.4 MB, free: 1.207 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003546/0.168, allocations: 255 kB / 464.7 MB, free: 0.957 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.168, allocations: 0 / 464.7 MB, free: 0.957 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.494e-06/0.1681, allocations: 4 kB / 464.7 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.614e-06/0.1681, allocations: 0 / 464.7 MB, free: 0.9531 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001085/0.1692, allocations: 0.5544 MB / 465.2 MB, free: 360 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.762e-05/0.1692, allocations: 11.89 kB / 465.2 MB, free: 348 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.508e-05/0.1693, allocations: 32.56 kB / 465.3 MB, free: 316 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006694/0.17, allocations: 320.1 kB / 465.6 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.682e-05/0.17, allocations: 16.38 kB / 465.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.863e-05/0.1701, allocations: 20 kB / 465.6 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000547/0.1706, allocations: 274 kB / 465.9 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.842e-05/0.1707, allocations: 7.938 kB / 465.9 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.806e-05/0.1707, allocations: 4 kB / 465.9 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.333e-05/0.1707, allocations: 11.94 kB / 465.9 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003057/0.171, allocations: 159.8 kB / 466.1 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001578/0.1726, allocations: 1.183 MB / 467.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001458/0.1728, allocations: 77.11 kB / 467.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.375e-05/0.1729, allocations: 29.81 kB / 467.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.22e-05/0.1729, allocations: 0 / 467.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.003e-05/0.1729, allocations: 42.56 kB / 467.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.193e-06/0.1729, allocations: 0 / 467.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0008619/0.1738, allocations: 405 kB / 467.8 MB, free: 13.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.69e-05/0.1739, allocations: 77.11 kB / 467.9 MB, free: 13.44 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002713/0.1742, allocations: 250.3 kB / 468.1 MB, free: 13.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.419e-05/0.1742, allocations: 29.7 kB / 468.1 MB, free: 13.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001612/0.1744, allocations: 191.8 kB / 468.3 MB, free: 12.96 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.135e-05/0.1744, allocations: 31.62 kB / 468.3 MB, free: 12.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.924e-05/0.1745, allocations: 45.55 kB / 468.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001699/0.1747, allocations: 334.8 kB / 468.7 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.461e-05/0.1747, allocations: 24.17 kB / 468.7 MB, free: 12.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001248/0.1749, allocations: 120.9 kB / 468.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002146/0.1751, allocations: 172.6 kB / 469 MB, free: 12.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.1751, allocations: 4 kB / 469 MB, free: 12.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002954/0.1754, allocations: 177.5 kB / 469.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.537e-05/0.1754, allocations: 8 kB / 469.2 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.354e-05/0.1755, allocations: 3.938 kB / 469.2 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.012e-05/0.1755, allocations: 8 kB / 469.2 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001771/0.1757, allocations: 43.92 kB / 469.3 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.397e-05/0.1757, allocations: 4 kB / 469.3 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001016/0.1758, allocations: 4 kB / 469.3 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.967e-05/0.1758, allocations: 12 kB / 469.3 MB, free: 11.88 MB / 350.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 (22): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000184/0.176, allocations: 153.7 kB / 469.4 MB, free: 11.72 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.716e-05/0.1761, allocations: 27.77 kB / 469.5 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002021/0.1763, allocations: 99.27 kB / 469.6 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.1763, allocations: 0 / 469.6 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.1763, allocations: 0 / 469.6 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.1763, allocations: 4 kB / 469.6 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005351/0.1769, allocations: 419.5 kB / 470 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.1769, allocations: 3.938 kB / 470 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.929e-05/0.177, allocations: 16 kB / 470 MB, free: 11.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.177, allocations: 4.031 kB / 470 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.142e-05/0.177, allocations: 0 / 470 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.177, allocations: 4 kB / 470 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.177, allocations: 4.016 kB / 470 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003312/0.1774, allocations: 236.8 kB / 470.2 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.804e-05/0.1775, allocations: 92.94 kB / 470.3 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.041e-05/0.1775, allocations: 8.062 kB / 470.3 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.864e-05/0.1776, allocations: 0 / 470.3 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.005e-05/0.1776, allocations: 15.92 kB / 470.4 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.323e-06/0.1776, allocations: 0 / 470.4 MB, free: 10.7 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001796/0.1778, allocations: 170 kB / 470.5 MB, free: 10.54 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1778, allocations: 0 / 470.5 MB, free: 10.54 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003329/0.1782, allocations: 40 kB / 470.6 MB, free: 10.5 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.i) * 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 (9): * Single equations (assignments): 8 * 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.0001752/0.1784, allocations: 103.1 kB / 470.7 MB, free: 10.39 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002348/0.1786, allocations: 91.77 kB / 470.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.1786, allocations: 0 / 470.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.753e-05/0.1787, allocations: 31.98 kB / 470.8 MB, free: 10.27 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005521/0.1792, allocations: 59.66 kB / 470.8 MB, free: 10.21 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001127/0.1804, allocations: 0.5046 MB / 471.3 MB, free: 9.676 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005197/0.1809, allocations: 0.7556 MB / 472.1 MB, free: 8.895 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001108/0.181, allocations: 34.28 kB / 472.1 MB, free: 8.855 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.474e-05/0.1811, allocations: 23.44 kB / 472.2 MB, free: 8.832 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1811, allocations: 0 / 472.2 MB, free: 8.832 MB / 350.1 MB Notification: Performance of Templates: time 0.005564/0.1867, allocations: 1.748 MB / 473.9 MB, free: 7.109 MB / 350.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Source.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches