Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.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.Introductory.SimulationSteadyState,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState") translateModel(PowerSystems.Examples.Introductory.SimulationSteadyState,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001219/0.001219, 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.001251/0.001251, 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.307/1.307, 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.177/0.177, allocations: 38.04 MB / 330.4 MB, free: 8.848 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001385/0.001385, allocations: 61.48 kB / 399.5 MB, free: 34.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09008/0.09148, allocations: 58.06 MB / 457.5 MB, free: 8.082 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.00904/0.1006, allocations: 7.566 MB / 465.1 MB, free: 492 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004106/0.1047, allocations: 2.329 MB / 467.4 MB, free: 14.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005512/0.1053, allocations: 23.88 kB / 467.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002297/0.1076, allocations: 0.8626 MB / 468.3 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001288/0.1089, allocations: 0.5091 MB / 468.8 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001215/0.1101, allocations: 455 kB / 469.3 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001499/0.1116, allocations: 1.266 MB / 470.5 MB, free: 11.03 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001001/0.1127, allocations: 0.6815 MB / 471.2 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009255/0.1136, allocations: 0.5485 MB / 471.8 MB, free: 9.793 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001088/0.1147, allocations: 0.6502 MB / 472.4 MB, free: 9.141 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002225/0.1149, allocations: 76 kB / 472.5 MB, free: 9.066 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006214/0.1156, allocations: 219.7 kB / 472.7 MB, free: 8.852 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005417/0.1161, allocations: 490.7 kB / 473.2 MB, free: 8.371 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007713/0.1169, allocations: 0.5248 MB / 473.7 MB, free: 7.844 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001378/0.1183, allocations: 1.23 MB / 474.9 MB, free: 6.609 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.1183, allocations: 0 / 474.9 MB, free: 6.609 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1183, allocations: 0 / 474.9 MB, free: 6.609 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.895e-05/0.1184, allocations: 0 / 474.9 MB, free: 6.609 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: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.002515/0.1209, allocations: 1.312 MB / 476.2 MB, free: 5.242 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.75e-05/0.1209, allocations: 15.89 kB / 476.3 MB, free: 5.227 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009651/0.1219, allocations: 159.5 kB / 476.4 MB, free: 5.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001167/0.1231, allocations: 0.692 MB / 477.1 MB, free: 4.336 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.22e-05/0.1232, allocations: 66.38 kB / 477.2 MB, free: 4.273 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001312/0.1233, allocations: 88.11 kB / 477.3 MB, free: 4.188 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001732/0.125, allocations: 1.167 MB / 478.4 MB, free: 2.938 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.311e-05/0.1251, allocations: 11.94 kB / 478.4 MB, free: 2.926 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.539e-05/0.1252, allocations: 39.98 kB / 478.5 MB, free: 2.887 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.187e-05/0.1253, allocations: 53.98 kB / 478.5 MB, free: 2.836 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001497/0.1268, allocations: 0.9327 MB / 479.5 MB, free: 1.902 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005559/0.1323, allocations: 4.799 MB / 484.3 MB, free: 12.89 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001138/0.1335, allocations: 0.6684 MB / 484.9 MB, free: 12.2 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006035/0.1341, allocations: 379.8 kB / 485.3 MB, free: 11.82 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.608e-05/0.1342, allocations: 12.55 kB / 485.3 MB, free: 11.81 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005897/0.1348, allocations: 439.8 kB / 485.7 MB, free: 11.36 MB / 366.1 MB Notification: Performance of pre-optimization done (n=65): time 3.456e-06/0.1348, allocations: 0 / 485.7 MB, free: 11.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.005153/0.14, allocations: 2.436 MB / 488.2 MB, free: 8.852 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.393e-05/0.1401, allocations: 170.8 kB / 488.3 MB, free: 8.648 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000693/0.1408, allocations: 0.5977 MB / 488.9 MB, free: 8.039 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.594e-05/0.1408, allocations: 41.64 kB / 489 MB, free: 7.992 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003456/0.1412, allocations: 482.6 kB / 489.5 MB, free: 7.512 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001974/0.1414, allocations: 224.9 kB / 489.7 MB, free: 7.289 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002155/0.1416, allocations: 158.4 kB / 489.8 MB, free: 7.129 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.1418, allocations: 390.7 kB / 490.2 MB, free: 6.738 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004723/0.1423, allocations: 285.8 kB / 490.5 MB, free: 6.457 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006272/0.1429, allocations: 0.5524 MB / 491 MB, free: 5.781 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001148/0.1441, allocations: 0.9534 MB / 492 MB, free: 4.688 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.356e-06/0.1441, allocations: 7.938 kB / 492 MB, free: 4.68 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002062/0.1461, allocations: 1.223 MB / 493.2 MB, free: 3.441 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.174e-05/0.1462, allocations: 33.7 kB / 493.3 MB, free: 3.402 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.558e-05/0.1462, allocations: 8 kB / 493.3 MB, free: 3.395 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001085/0.1473, allocations: 345.8 kB / 493.6 MB, free: 3.051 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000481/0.1478, allocations: 147.7 kB / 493.7 MB, free: 2.906 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006085/0.1539, allocations: 5.393 MB / 499.1 MB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005007/0.1544, allocations: 32.03 kB / 499.2 MB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.124e-05/0.1545, allocations: 39.98 kB / 499.2 MB, free: 13.14 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 11 (system.initime,relayNet.cnt,$PRE.relayNet.cnt,$whenCondition1,relayNet.y[1],$PRE.relayNet.y[1],switch.closed,$PRE.switch.closed,switch.open,$PRE.switch.open,switch.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,17,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004738/0.155, allocations: 355.1 kB / 499.6 MB, free: 12.78 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001221/0.1551, allocations: 79 kB / 499.6 MB, free: 12.7 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001877/0.157, allocations: 1.044 MB / 0.4889 GB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.543e-06/0.157, allocations: 8 kB / 0.489 GB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.084e-05/0.157, allocations: 8 kB / 0.489 GB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.436e-06/0.157, allocations: 3.984 kB / 0.489 GB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003333/0.1604, allocations: 2.059 MB / 0.491 GB, free: 9.461 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.02e-06/0.1604, allocations: 0 / 0.491 GB, free: 9.461 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003033/0.1607, allocations: 67.91 kB / 0.491 GB, free: 9.395 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008814/0.1616, allocations: 317.8 kB / 0.4913 GB, free: 9.078 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.979e-05/0.1617, allocations: 23.92 kB / 0.4914 GB, free: 9.055 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005893/0.1676, allocations: 5.32 MB / 0.4966 GB, free: 3.426 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/0.1676, allocations: 8 kB / 0.4966 GB, free: 3.418 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001849/0.1695, allocations: 1.107 MB / 0.4977 GB, free: 2.266 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002201/0.1697, allocations: 148.2 kB / 0.4978 GB, free: 2.102 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001256/0.1698, allocations: 16 kB / 0.4978 GB, free: 2.086 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003569/0.1702, allocations: 19.98 kB / 0.4978 GB, free: 2.066 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001389/0.1704, allocations: 64.34 kB / 0.4979 GB, free: 2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.389e-05/0.1704, allocations: 24 kB / 0.4979 GB, free: 1.977 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005448/0.171, allocations: 415 kB / 0.4983 GB, free: 1.578 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.171, allocations: 0 / 0.4983 GB, free: 1.578 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009739/0.172, allocations: 268 kB / 0.4986 GB, free: 1.309 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 7 (switch.open,switch.control[1],switch.closed,$whenCondition1,relayNet.y[1],relayNet.cnt,system.initime) * Number of discrete states: 3 (relayNet.y[1],relayNet.cnt,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,17,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00018/0.1721, allocations: 130.3 kB / 0.4987 GB, free: 1.176 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002076/0.1742, allocations: 1.261 MB / 0.4999 GB, free: 15.88 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.1742, allocations: 0 / 0.4999 GB, free: 15.88 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001094/0.1753, allocations: 0.7682 MB / 0.5007 GB, free: 15.07 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009421/0.1763, allocations: 184.7 kB / 0.5008 GB, free: 14.89 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003049/0.1794, allocations: 1.85 MB / 0.5027 GB, free: 12.99 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007875/0.1802, allocations: 1.111 MB / 0.5037 GB, free: 11.85 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001513/0.1803, allocations: 55.42 kB / 0.5038 GB, free: 11.8 MB / 398.1 MB Notification: Performance of SimCode: time 7.01e-07/0.1803, allocations: 0 / 0.5038 GB, free: 11.8 MB / 398.1 MB Notification: Performance of Templates: time 0.1859/0.3663, allocations: 16.97 MB / 0.5204 GB, free: 69.45 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.sim & ./PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.SimulationSteadyState.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches