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.001381/0.001381, allocations: 103.8 kB / 16.92 MB, free: 5.855 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.001771/0.001771, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.368/1.368, allocations: 222.9 MB / 241.5 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1708/0.1708, allocations: 38.05 MB / 329.7 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001341/0.001341, allocations: 58.62 kB / 398.8 MB, free: 34.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1136, allocations: 58.06 MB / 456.9 MB, free: 8.062 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop_d): time 0.00997/0.1236, allocations: 7.557 MB / 464.4 MB, free: 484 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006152/0.1298, allocations: 4.159 MB / 468.6 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000969/0.1308, allocations: 15.94 kB / 468.6 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003051/0.1339, allocations: 1.033 MB / 469.6 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002644/0.1366, allocations: 1.094 MB / 470.7 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009596/0.1376, allocations: 307.1 kB / 471 MB, free: 9.848 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001648/0.1392, allocations: 1.375 MB / 472.4 MB, free: 8.469 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008055/0.14, allocations: 463.9 kB / 472.8 MB, free: 8.016 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00103/0.1411, allocations: 0.5601 MB / 473.4 MB, free: 7.453 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009271/0.142, allocations: 0.576 MB / 474 MB, free: 6.875 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001009/0.1421, allocations: 39.98 kB / 474 MB, free: 6.836 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001772/0.1439, allocations: 0.9934 MB / 475 MB, free: 5.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003742/0.1443, allocations: 267.3 kB / 475.3 MB, free: 5.578 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003731/0.1447, allocations: 246.8 kB / 475.5 MB, free: 5.336 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001394/0.1461, allocations: 0.8102 MB / 476.3 MB, free: 4.523 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.1461, allocations: 0 / 476.3 MB, free: 4.523 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1461, allocations: 0 / 476.3 MB, free: 4.523 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.618e-05/0.1461, allocations: 0 / 476.3 MB, free: 4.523 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.001386/0.1475, allocations: 0.8 MB / 477.1 MB, free: 3.676 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/0.1476, allocations: 8.031 kB / 477.1 MB, free: 3.668 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001656/0.1492, allocations: 132.3 kB / 477.3 MB, free: 3.539 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004621/0.1497, allocations: 334.3 kB / 477.6 MB, free: 3.168 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.632e-05/0.1497, allocations: 25.38 kB / 477.6 MB, free: 3.145 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.184e-05/0.1498, allocations: 40.36 kB / 477.7 MB, free: 3.105 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007907/0.1506, allocations: 0.5937 MB / 478.3 MB, free: 2.445 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.398e-05/0.1506, allocations: 0 / 478.3 MB, free: 2.445 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.994e-05/0.1507, allocations: 19.98 kB / 478.3 MB, free: 2.426 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.203e-05/0.1507, allocations: 40.56 kB / 478.3 MB, free: 2.387 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005942/0.1513, allocations: 386.1 kB / 478.7 MB, free: 2.012 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002374/0.1537, allocations: 2.599 MB / 481.3 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006044/0.1543, allocations: 431.7 kB / 481.7 MB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002858/0.1546, allocations: 214.5 kB / 481.9 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.999e-05/0.1547, allocations: 4 kB / 481.9 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.271e-05/0.1547, allocations: 38.56 kB / 482 MB, free: 14.57 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 1.894e-06/0.1547, allocations: 0 / 482 MB, free: 14.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.001794/0.1565, allocations: 0.7654 MB / 482.7 MB, free: 13.77 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.12e-05/0.1566, allocations: 106.8 kB / 482.8 MB, free: 13.64 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003819/0.157, allocations: 320.5 kB / 483.1 MB, free: 13.32 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.846e-05/0.157, allocations: 29.7 kB / 483.2 MB, free: 13.29 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002057/0.1573, allocations: 256 kB / 483.4 MB, free: 13.03 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001153/0.1574, allocations: 114.3 kB / 483.5 MB, free: 12.92 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001214/0.1575, allocations: 82.12 kB / 483.6 MB, free: 12.83 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.1577, allocations: 342.8 kB / 483.9 MB, free: 12.49 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002001/0.1579, allocations: 128.8 kB / 484.1 MB, free: 12.36 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002802/0.1582, allocations: 281.5 kB / 484.3 MB, free: 12.02 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005427/0.1587, allocations: 456.1 kB / 484.8 MB, free: 11.51 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.952e-06/0.1587, allocations: 4 kB / 484.8 MB, free: 11.51 MB / 366.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0008436/0.1596, allocations: 0.5622 MB / 485.4 MB, free: 10.94 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.796e-05/0.1596, allocations: 10.03 kB / 485.4 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.148e-05/0.1596, allocations: 8 kB / 485.4 MB, free: 10.92 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003431/0.16, allocations: 116.8 kB / 485.5 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002536/0.1602, allocations: 71.91 kB / 485.6 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002688/0.1629, allocations: 2.567 MB / 488.1 MB, free: 8.016 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002481/0.1632, allocations: 47.47 kB / 488.2 MB, free: 7.969 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.618e-05/0.1632, allocations: 20 kB / 488.2 MB, free: 7.949 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.0002399/0.1635, allocations: 205.7 kB / 488.4 MB, free: 7.738 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.281e-05/0.1636, allocations: 43.45 kB / 488.4 MB, free: 7.695 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.823e-05/0.1637, allocations: 51.95 kB / 488.5 MB, free: 7.645 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.1637, allocations: 4 kB / 488.5 MB, free: 7.641 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.146e-06/0.1637, allocations: 0 / 488.5 MB, free: 7.641 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.1637, allocations: 4.031 kB / 488.5 MB, free: 7.637 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001243/0.165, allocations: 0.946 MB / 489.4 MB, free: 6.625 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/0.165, allocations: 7.938 kB / 489.4 MB, free: 6.617 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001453/0.1651, allocations: 35.92 kB / 489.5 MB, free: 6.582 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002498/0.1654, allocations: 108.8 kB / 489.6 MB, free: 6.473 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.165e-05/0.1654, allocations: 8 kB / 489.6 MB, free: 6.465 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002538/0.168, allocations: 2.555 MB / 492.2 MB, free: 3.758 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.168, allocations: 0 / 492.2 MB, free: 3.758 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007353/0.1687, allocations: 0.6343 MB / 492.8 MB, free: 3.094 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001158/0.1689, allocations: 108.7 kB / 492.9 MB, free: 2.969 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.963e-05/0.1689, allocations: 15.88 kB / 492.9 MB, free: 2.953 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001784/0.1691, allocations: 7.984 kB / 492.9 MB, free: 2.945 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.537e-05/0.1692, allocations: 27.97 kB / 492.9 MB, free: 2.918 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.681e-05/0.1692, allocations: 12 kB / 493 MB, free: 2.906 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002253/0.1694, allocations: 215.1 kB / 493.2 MB, free: 2.695 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1694, allocations: 0 / 493.2 MB, free: 2.695 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007284/0.1702, allocations: 167.7 kB / 493.3 MB, free: 2.531 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.0001355/0.1703, allocations: 104.2 kB / 493.4 MB, free: 2.422 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009947/0.1713, allocations: 0.5452 MB / 494 MB, free: 1.863 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.1713, allocations: 1.312 kB / 494 MB, free: 1.863 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004929/0.1718, allocations: 350.2 kB / 494.3 MB, free: 1.508 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005881/0.1724, allocations: 57.78 kB / 494.4 MB, free: 1.453 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001535/0.174, allocations: 0.8184 MB / 495.2 MB, free: 0.5898 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005361/0.1745, allocations: 0.8824 MB / 496.1 MB, free: 15.68 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001777/0.1747, allocations: 74.89 kB / 496.2 MB, free: 15.61 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.232e-05/0.1748, allocations: 23.44 kB / 496.2 MB, free: 15.59 MB / 382.1 MB Notification: Performance of SimCode: time 7.21e-07/0.1748, allocations: 0 / 496.2 MB, free: 15.59 MB / 382.1 MB Notification: Performance of Templates: time 0.008711/0.1835, allocations: 3.759 MB / 499.9 MB, free: 11.83 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Network.NetworkLoop_d.mat","/var/lib/jenkins/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