Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d.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.Generic.Network.NetworkLoop_d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|impedance3.i.1.|impedance3.p.1.|impedance3.v.1.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d") translateModel(PowerSystems.Examples.Generic.Network.NetworkLoop_d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|impedance3.i.1.|impedance3.p.1.|impedance3.v.1.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001216/0.001216, allocations: 115.9 kB / 17.7 MB, free: 5.309 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.001269/0.001269, allocations: 191 kB / 18.63 MB, free: 4.379 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.444/1.444, allocations: 222.9 MB / 242.3 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1795/0.1795, allocations: 38.04 MB / 330.5 MB, free: 8.793 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002302/0.002302, allocations: 63.5 kB / 400.3 MB, free: 33.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1267/0.129, allocations: 58.07 MB / 458.3 MB, free: 7.344 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop_d): time 0.008375/0.1374, allocations: 7.546 MB / 465.9 MB, free: 15.76 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005399/0.1429, allocations: 4.167 MB / 470 MB, free: 11.58 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004823/0.1434, allocations: 19.94 kB / 470.1 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002475/0.1459, allocations: 1.038 MB / 471.1 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002597/0.1485, allocations: 1.09 MB / 472.2 MB, free: 9.426 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008507/0.1493, allocations: 307.2 kB / 472.5 MB, free: 9.125 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001566/0.1509, allocations: 1.36 MB / 473.8 MB, free: 7.762 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007172/0.1516, allocations: 467.9 kB / 474.3 MB, free: 7.305 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007955/0.1525, allocations: 0.5562 MB / 474.9 MB, free: 6.746 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007333/0.1532, allocations: 0.5916 MB / 475.4 MB, free: 6.152 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.856e-05/0.1533, allocations: 40 kB / 475.5 MB, free: 6.113 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001832/0.1551, allocations: 0.9778 MB / 476.5 MB, free: 5.133 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002797/0.1554, allocations: 267.3 kB / 476.7 MB, free: 4.871 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002717/0.1557, allocations: 246.9 kB / 477 MB, free: 4.629 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001111/0.1568, allocations: 0.8102 MB / 477.8 MB, free: 3.816 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1568, allocations: 0 / 477.8 MB, free: 3.816 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.1568, allocations: 0 / 477.8 MB, free: 3.816 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.398e-06/0.1568, allocations: 4 kB / 477.8 MB, free: 3.812 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: 101 * Number of variables: 101 Notification: Performance of Generate backend data structure: time 0.000992/0.1578, allocations: 0.8039 MB / 478.6 MB, free: 2.961 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.279e-05/0.1579, allocations: 8.031 kB / 478.6 MB, free: 2.953 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0015/0.1594, allocations: 132.3 kB / 478.7 MB, free: 2.824 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005559/0.1599, allocations: 334.4 kB / 479 MB, free: 2.453 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.643e-05/0.16, allocations: 41.3 kB / 479.1 MB, free: 2.414 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.531e-05/0.16, allocations: 36.36 kB / 479.1 MB, free: 2.379 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007682/0.1608, allocations: 0.5869 MB / 479.7 MB, free: 1.723 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.453e-05/0.1608, allocations: 3.984 kB / 479.7 MB, free: 1.719 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.667e-05/0.1609, allocations: 19.98 kB / 479.7 MB, free: 1.699 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.388e-05/0.161, allocations: 40.62 kB / 479.8 MB, free: 1.66 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005355/0.1615, allocations: 386.1 kB / 480.2 MB, free: 1.285 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002298/0.1638, allocations: 2.588 MB / 482.7 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006386/0.1645, allocations: 423.8 kB / 483.2 MB, free: 14.13 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002671/0.1647, allocations: 214.6 kB / 483.4 MB, free: 13.91 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.316e-05/0.1648, allocations: 4 kB / 483.4 MB, free: 13.91 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.307e-05/0.1648, allocations: 42.44 kB / 483.4 MB, free: 13.86 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 1.763e-06/0.1648, allocations: 0 / 483.4 MB, free: 13.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.001629/0.1665, allocations: 0.7654 MB / 484.2 MB, free: 13.06 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.863e-05/0.1665, allocations: 111.1 kB / 484.3 MB, free: 12.93 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003163/0.1669, allocations: 320.5 kB / 484.6 MB, free: 12.61 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.553e-05/0.1669, allocations: 33.7 kB / 484.6 MB, free: 12.57 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001523/0.167, allocations: 251.7 kB / 484.9 MB, free: 12.32 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.68e-05/0.1671, allocations: 118.3 kB / 485 MB, free: 12.2 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001159/0.1673, allocations: 78.12 kB / 485.1 MB, free: 12.12 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001247/0.1674, allocations: 346.8 kB / 485.4 MB, free: 11.77 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001969/0.1676, allocations: 124.8 kB / 485.5 MB, free: 11.65 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002821/0.1679, allocations: 283.4 kB / 485.8 MB, free: 11.3 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005115/0.1684, allocations: 448.2 kB / 486.2 MB, free: 10.8 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.1684, allocations: 0 / 486.2 MB, free: 10.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0008329/0.1693, allocations: 0.5697 MB / 486.8 MB, free: 10.22 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.2e-05/0.1693, allocations: 8 kB / 486.8 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.261e-05/0.1693, allocations: 8 kB / 486.8 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000349/0.1697, allocations: 128.7 kB / 487 MB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002366/0.1699, allocations: 72.22 kB / 487 MB, free: 10.01 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002564/0.1725, allocations: 2.565 MB / 489.6 MB, free: 7.293 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002157/0.1727, allocations: 43.47 kB / 489.6 MB, free: 7.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.707e-05/0.1728, allocations: 20 kB / 489.6 MB, free: 7.23 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (41): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002169/0.173, allocations: 197.7 kB / 489.8 MB, free: 7.027 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.839e-05/0.1731, allocations: 43.52 kB / 489.9 MB, free: 6.984 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.852e-05/0.1732, allocations: 47.95 kB / 489.9 MB, free: 6.938 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.1732, allocations: 4 kB / 489.9 MB, free: 6.934 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.203e-05/0.1732, allocations: 4 kB / 489.9 MB, free: 6.93 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.61e-06/0.1732, allocations: 3.938 kB / 489.9 MB, free: 6.926 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001231/0.1744, allocations: 0.9461 MB / 490.9 MB, free: 5.914 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.1744, allocations: 0 / 490.9 MB, free: 5.914 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001425/0.1746, allocations: 39.92 kB / 490.9 MB, free: 5.875 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000242/0.1748, allocations: 108.9 kB / 491 MB, free: 5.766 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.18e-05/0.1749, allocations: 11.94 kB / 491 MB, free: 5.754 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002336/0.1772, allocations: 2.558 MB / 493.6 MB, free: 3.047 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.1772, allocations: 0 / 493.6 MB, free: 3.047 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006874/0.1779, allocations: 0.6343 MB / 494.2 MB, free: 2.383 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.824e-05/0.178, allocations: 108.7 kB / 494.3 MB, free: 2.258 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.942e-05/0.1781, allocations: 11.94 kB / 494.4 MB, free: 2.246 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001713/0.1783, allocations: 11.98 kB / 494.4 MB, free: 2.234 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.704e-05/0.1783, allocations: 23.97 kB / 494.4 MB, free: 2.211 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.03e-05/0.1784, allocations: 15.94 kB / 494.4 MB, free: 2.195 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002091/0.1786, allocations: 215.1 kB / 494.6 MB, free: 1.984 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1786, allocations: 0 / 494.6 MB, free: 1.984 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006486/0.1792, allocations: 167.7 kB / 494.8 MB, free: 1.82 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 simulation (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001389/0.1794, allocations: 107.2 kB / 494.9 MB, free: 1.707 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008306/0.1802, allocations: 0.5109 MB / 495.4 MB, free: 1.184 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.1802, allocations: 0 / 495.4 MB, free: 1.184 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004209/0.1807, allocations: 346.4 kB / 495.7 MB, free: 0.832 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005047/0.1812, allocations: 56.77 kB / 495.8 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001228/0.1824, allocations: 0.8216 MB / 496.6 MB, free: 15.91 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000457/0.1829, allocations: 0.8785 MB / 497.5 MB, free: 15.01 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001593/0.183, allocations: 78.88 kB / 497.6 MB, free: 14.93 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.131e-05/0.1831, allocations: 19.44 kB / 497.6 MB, free: 14.91 MB / 382.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1831, allocations: 4 kB / 497.6 MB, free: 14.91 MB / 382.1 MB Notification: Performance of Templates: time 0.007515/0.1906, allocations: 3.745 MB / 0.4896 GB, free: 11.17 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d.sim & ./PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Network.NetworkLoop_d.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches