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.001136/0.001136, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001188/0.001188, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.344/1.344, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1765/0.1765, allocations: 38.04 MB / 330.4 MB, free: 8.836 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001394/0.001394, allocations: 66.78 kB / 399.5 MB, free: 34.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09962/0.101, allocations: 58.06 MB / 457.5 MB, free: 8.066 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop_d): time 0.009091/0.1102, allocations: 7.558 MB / 465.1 MB, free: 484 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005693/0.1159, allocations: 4.155 MB / 469.3 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006308/0.1166, allocations: 15.94 kB / 469.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002709/0.1193, allocations: 1.028 MB / 470.3 MB, free: 11.26 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002843/0.1222, allocations: 1.094 MB / 471.4 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008897/0.1231, allocations: 315.1 kB / 471.7 MB, free: 9.852 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001661/0.1247, allocations: 1.367 MB / 473.1 MB, free: 8.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008647/0.1256, allocations: 463.9 kB / 473.5 MB, free: 8.027 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001071/0.1267, allocations: 0.564 MB / 474.1 MB, free: 7.461 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009016/0.1276, allocations: 0.5799 MB / 474.7 MB, free: 6.879 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001103/0.1277, allocations: 32 kB / 474.7 MB, free: 6.848 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001801/0.1295, allocations: 0.9895 MB / 475.7 MB, free: 5.855 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003635/0.1299, allocations: 271.3 kB / 475.9 MB, free: 5.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003979/0.1303, allocations: 246.8 kB / 476.2 MB, free: 5.348 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001501/0.1318, allocations: 0.8141 MB / 477 MB, free: 4.531 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.1319, allocations: 3.938 kB / 477 MB, free: 4.527 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1319, allocations: 0 / 477 MB, free: 4.527 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.159e-05/0.1319, allocations: 0 / 477 MB, free: 4.527 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.001338/0.1332, allocations: 0.8 MB / 477.8 MB, free: 3.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.82e-05/0.1333, allocations: 8.031 kB / 477.8 MB, free: 3.672 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001593/0.1349, allocations: 124.3 kB / 477.9 MB, free: 3.551 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004411/0.1353, allocations: 338.3 kB / 478.3 MB, free: 3.176 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.576e-05/0.1354, allocations: 29.36 kB / 478.3 MB, free: 3.148 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.607e-05/0.1354, allocations: 44.36 kB / 478.3 MB, free: 3.105 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007942/0.1362, allocations: 0.5869 MB / 478.9 MB, free: 2.449 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.497e-05/0.1363, allocations: 0 / 478.9 MB, free: 2.449 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.891e-05/0.1363, allocations: 15.98 kB / 478.9 MB, free: 2.434 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.988e-05/0.1364, allocations: 40.62 kB / 479 MB, free: 2.395 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005633/0.1369, allocations: 386.1 kB / 479.4 MB, free: 2.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00235/0.1393, allocations: 2.596 MB / 482 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006111/0.1399, allocations: 435.8 kB / 482.4 MB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002805/0.1402, allocations: 210.4 kB / 482.6 MB, free: 14.63 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.661e-05/0.1402, allocations: 4 kB / 482.6 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.799e-05/0.1403, allocations: 38.56 kB / 482.6 MB, free: 14.58 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 1.933e-06/0.1403, allocations: 0 / 482.6 MB, free: 14.58 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.001624/0.1419, allocations: 0.7656 MB / 483.4 MB, free: 13.79 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.134e-05/0.142, allocations: 110.8 kB / 483.5 MB, free: 13.65 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003313/0.1423, allocations: 320.5 kB / 483.8 MB, free: 13.33 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.308e-05/0.1424, allocations: 29.7 kB / 483.8 MB, free: 13.3 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001534/0.1425, allocations: 247.8 kB / 484.1 MB, free: 13.05 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001004/0.1426, allocations: 118.3 kB / 484.2 MB, free: 12.93 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001038/0.1427, allocations: 78.12 kB / 484.3 MB, free: 12.85 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.1429, allocations: 350.9 kB / 484.6 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001882/0.1431, allocations: 132.8 kB / 484.7 MB, free: 12.37 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002641/0.1433, allocations: 275.4 kB / 485 MB, free: 12.03 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005061/0.1439, allocations: 460.1 kB / 485.5 MB, free: 11.52 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.1439, allocations: 0 / 485.5 MB, free: 11.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0008523/0.1447, allocations: 0.5617 MB / 486 MB, free: 10.95 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.936e-05/0.1448, allocations: 4 kB / 486 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/0.1448, allocations: 11.98 kB / 486 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003237/0.1451, allocations: 121.3 kB / 486.2 MB, free: 10.81 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002373/0.1454, allocations: 75.91 kB / 486.2 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002491/0.1479, allocations: 2.567 MB / 488.8 MB, free: 8.012 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002314/0.1481, allocations: 47.47 kB / 488.8 MB, free: 7.965 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.8e-05/0.1481, allocations: 20 kB / 488.9 MB, free: 7.945 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.0002224/0.1484, allocations: 195.9 kB / 489.1 MB, free: 7.746 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.092e-05/0.1485, allocations: 35.53 kB / 489.1 MB, free: 7.711 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.846e-05/0.1485, allocations: 60 kB / 489.2 MB, free: 7.652 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.848e-06/0.1486, allocations: 4 kB / 489.2 MB, free: 7.648 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.097e-05/0.1486, allocations: 4 kB / 489.2 MB, free: 7.645 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.1486, allocations: 7.875 kB / 489.2 MB, free: 7.637 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001197/0.1498, allocations: 0.9383 MB / 490.1 MB, free: 6.633 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.1498, allocations: 0 / 490.1 MB, free: 6.633 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000139/0.1499, allocations: 35.92 kB / 490.1 MB, free: 6.598 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002397/0.1502, allocations: 110.7 kB / 490.2 MB, free: 6.488 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.042e-05/0.1502, allocations: 15.94 kB / 490.3 MB, free: 6.473 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00232/0.1525, allocations: 2.553 MB / 492.8 MB, free: 3.77 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.093e-06/0.1526, allocations: 4.031 kB / 492.8 MB, free: 3.766 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006886/0.1533, allocations: 0.6304 MB / 493.5 MB, free: 3.105 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000104/0.1534, allocations: 120.7 kB / 493.6 MB, free: 2.969 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.162e-05/0.1534, allocations: 7.938 kB / 493.6 MB, free: 2.961 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001733/0.1536, allocations: 8 kB / 493.6 MB, free: 2.953 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.804e-05/0.1537, allocations: 31.89 kB / 493.6 MB, free: 2.922 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.396e-05/0.1537, allocations: 4 kB / 493.6 MB, free: 2.918 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002059/0.1539, allocations: 223.1 kB / 493.8 MB, free: 2.699 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1539, allocations: 0 / 493.8 MB, free: 2.699 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006572/0.1546, allocations: 163.7 kB / 494 MB, free: 2.539 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.0001125/0.1547, allocations: 107.2 kB / 494.1 MB, free: 2.426 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008668/0.1556, allocations: 0.5502 MB / 494.7 MB, free: 1.863 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.1556, allocations: 0 / 494.7 MB, free: 1.863 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004373/0.156, allocations: 342 kB / 495 MB, free: 1.516 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006169/0.1567, allocations: 69.16 kB / 495.1 MB, free: 1.453 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001307/0.158, allocations: 0.884 MB / 495.9 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004711/0.1585, allocations: 0.8824 MB / 496.8 MB, free: 15.61 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.54e-05/0.1585, allocations: 23.44 kB / 496.8 MB, free: 15.59 MB / 382.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1585, allocations: 0 / 496.8 MB, free: 15.59 MB / 382.1 MB Notification: Performance of Templates: time 0.008505/0.1671, allocations: 6.091 MB / 0.4911 GB, free: 9.488 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/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