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.001752/0.001752, allocations: 110.1 kB / 17.29 MB, free: 6.059 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.006685/0.006685, allocations: 197.3 kB / 18.21 MB, free: 5.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.894/2.894, allocations: 222.9 MB / 241.9 MB, free: 15.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.3444/0.3444, allocations: 38.03 MB / 330.1 MB, free: 9.004 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002406/0.002407, allocations: 64.28 kB / 398.9 MB, free: 34.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1488/0.1512, allocations: 58.06 MB / 457 MB, free: 8.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Source): time 0.009891/0.1612, allocations: 4.562 MB / 461.6 MB, free: 3.816 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003/0.1642, allocations: 1.06 MB / 462.6 MB, free: 2.754 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006252/0.1649, allocations: 27.81 kB / 462.7 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003151/0.1653, allocations: 27.77 kB / 462.7 MB, free: 2.699 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009306/0.1663, allocations: 151.3 kB / 462.8 MB, free: 2.551 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004554/0.1667, allocations: 79.84 kB / 462.9 MB, free: 2.473 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007513/0.1675, allocations: 374.7 kB / 463.3 MB, free: 2.105 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002981/0.1678, allocations: 76.56 kB / 463.3 MB, free: 2.027 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004571/0.1683, allocations: 171.2 kB / 463.5 MB, free: 1.859 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004899/0.1688, allocations: 171.4 kB / 463.7 MB, free: 1.691 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.371e-05/0.1689, allocations: 16 kB / 463.7 MB, free: 1.676 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.63e-05/0.169, allocations: 16 kB / 463.7 MB, free: 1.66 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002274/0.1692, allocations: 87.72 kB / 463.8 MB, free: 1.574 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002528/0.1695, allocations: 123.3 kB / 463.9 MB, free: 1.453 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003783/0.1699, allocations: 191.5 kB / 464.1 MB, free: 1.266 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.1699, allocations: 0 / 464.1 MB, free: 1.266 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.046e-06/0.1699, allocations: 4 kB / 464.1 MB, free: 1.262 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.517e-05/0.1699, allocations: 0 / 464.1 MB, free: 1.262 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.001586/0.1715, allocations: 0.5544 MB / 464.7 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.256e-05/0.1716, allocations: 11.89 kB / 464.7 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.906e-05/0.1717, allocations: 28.56 kB / 464.7 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006611/0.1724, allocations: 300.1 kB / 465 MB, free: 292 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.084e-05/0.1724, allocations: 24.38 kB / 465 MB, free: 268 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.176e-05/0.1725, allocations: 20 kB / 465 MB, free: 248 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006511/0.1732, allocations: 274 kB / 465.3 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.712e-05/0.1732, allocations: 3.938 kB / 465.3 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.489e-05/0.1733, allocations: 12 kB / 465.3 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.136e-05/0.1733, allocations: 8 kB / 465.3 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000531/0.1738, allocations: 155.8 kB / 465.5 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002112/0.176, allocations: 1.19 MB / 466.7 MB, free: 14.49 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000203/0.1762, allocations: 73.11 kB / 466.7 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.479e-05/0.1763, allocations: 33.81 kB / 466.8 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.151e-05/0.1763, allocations: 4 kB / 466.8 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.344e-05/0.1764, allocations: 30.56 kB / 466.8 MB, free: 14.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 3.306e-06/0.1764, allocations: 4 kB / 466.8 MB, free: 14.31 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.001076/0.1775, allocations: 408.8 kB / 467.2 MB, free: 13.86 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.061e-05/0.1775, allocations: 85.03 kB / 467.3 MB, free: 13.76 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003842/0.1779, allocations: 254.6 kB / 467.5 MB, free: 13.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.321e-05/0.178, allocations: 25.7 kB / 467.6 MB, free: 13.47 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000191/0.1782, allocations: 195.6 kB / 467.8 MB, free: 13.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.941e-05/0.1782, allocations: 27.64 kB / 467.8 MB, free: 13.24 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001115/0.1784, allocations: 41.56 kB / 467.8 MB, free: 13.2 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001934/0.1786, allocations: 330.8 kB / 468.2 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.811e-05/0.1787, allocations: 27.98 kB / 468.2 MB, free: 12.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000186/0.1789, allocations: 126.1 kB / 468.3 MB, free: 12.67 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003367/0.1792, allocations: 160.7 kB / 468.5 MB, free: 12.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.492e-06/0.1792, allocations: 3.984 kB / 468.5 MB, free: 12.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004611/0.1797, allocations: 185.3 kB / 468.6 MB, free: 12.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.44e-05/0.1797, allocations: 4 kB / 468.7 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.506e-05/0.1798, allocations: 7.938 kB / 468.7 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.035e-05/0.1798, allocations: 4 kB / 468.7 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002615/0.1801, allocations: 39.92 kB / 468.7 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.743e-05/0.1801, allocations: 8 kB / 468.7 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001905/0.1803, allocations: 11.91 kB / 468.7 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.088e-05/0.1803, allocations: 8.312 kB / 468.7 MB, free: 12.19 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.000291/0.1806, allocations: 153.7 kB / 468.9 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.833e-05/0.1807, allocations: 15.81 kB / 468.9 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002568/0.181, allocations: 107.2 kB / 469 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.499e-06/0.181, allocations: 0 / 469 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.663e-06/0.181, allocations: 0 / 469 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.691e-06/0.181, allocations: 0 / 469 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007331/0.1818, allocations: 423.2 kB / 469.4 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.147e-06/0.1818, allocations: 4.469 kB / 469.4 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001572/0.182, allocations: 19.98 kB / 469.4 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.334e-06/0.182, allocations: 3.984 kB / 469.4 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.819e-05/0.182, allocations: 8 kB / 469.4 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.731e-06/0.182, allocations: 4 kB / 469.5 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/0.182, allocations: 0 / 469.5 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004021/0.1824, allocations: 232.9 kB / 469.7 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.796e-05/0.1825, allocations: 96.81 kB / 469.8 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.369e-05/0.1826, allocations: 4 kB / 469.8 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001535/0.1828, allocations: 4 kB / 469.8 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.545e-05/0.1828, allocations: 3.938 kB / 469.8 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.31e-05/0.1828, allocations: 8.031 kB / 469.8 MB, free: 11.01 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002538/0.1831, allocations: 177.9 kB / 470 MB, free: 10.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.1831, allocations: 0 / 470 MB, free: 10.84 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005765/0.1837, allocations: 40 kB / 470 MB, free: 10.8 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.0001389/0.1839, allocations: 99.31 kB / 470.1 MB, free: 10.7 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002955/0.1842, allocations: 91.78 kB / 470.2 MB, free: 10.61 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.1842, allocations: 0 / 470.2 MB, free: 10.61 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.286e-05/0.1843, allocations: 33.27 kB / 470.2 MB, free: 10.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007708/0.1851, allocations: 69.8 kB / 470.3 MB, free: 10.51 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001484/0.1866, allocations: 0.608 MB / 470.9 MB, free: 9.867 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005103/0.1871, allocations: 0.7673 MB / 471.7 MB, free: 9.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.822e-05/0.1872, allocations: 19.44 kB / 471.7 MB, free: 9.051 MB / 350.1 MB Notification: Performance of SimCode: time 1.102e-06/0.1872, allocations: 0 / 471.7 MB, free: 9.051 MB / 350.1 MB Notification: Performance of Templates: time 0.0079/0.1951, allocations: 2.646 MB / 474.3 MB, free: 6.414 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 -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