Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.Introductory.SimulationFixedInitial,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.SimulationFixedInitial") translateModel(PowerSystems.Examples.Introductory.SimulationFixedInitial,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.SimulationFixedInitial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0012/0.001199, allocations: 172.2 kB / 17.39 MB, free: 4.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.44/1.44, allocations: 205.4 MB / 223.5 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008295/0.0008294, allocations: 82.42 kB / 271.9 MB, free: 8.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1715/0.1715, allocations: 38.08 MB / 358.3 MB, free: 1.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003835/0.0003835, allocations: 12 kB / 425.2 MB, free: 37.38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.311/0.3114, allocations: 56.31 MB / 481.6 MB, free: 9.602 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1457/0.4572, allocations: 103.8 MB / 0.5716 GB, free: 14.48 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002812/0.4575, allocations: 87.81 kB / 0.5717 GB, free: 14.4 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07213/0.5297, allocations: 25.87 MB / 0.5969 GB, free: 4.207 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.655e-06/0.5297, allocations: 0 / 0.5969 GB, free: 4.207 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.695e-05/0.5298, allocations: 24 kB / 0.597 GB, free: 4.184 MB / 426.7 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.002293/0.5321, allocations: 1.205 MB / 0.5981 GB, free: 2.914 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.5321, allocations: 11.98 kB / 0.5982 GB, free: 2.902 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009535/0.5331, allocations: 181.2 kB / 0.5983 GB, free: 2.727 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001943/0.5351, allocations: 1.018 MB / 0.5993 GB, free: 1.668 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.881e-05/0.5351, allocations: 66 kB / 0.5994 GB, free: 1.602 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001474/0.5353, allocations: 95.83 kB / 0.5995 GB, free: 1.508 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001764/0.5371, allocations: 1.196 MB / 0.6006 GB, free: 248 kB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.293e-05/0.5371, allocations: 11.92 kB / 0.6007 GB, free: 236 kB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.159e-05/0.5372, allocations: 32 kB / 0.6007 GB, free: 204 kB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.813e-05/0.5373, allocations: 53.98 kB / 0.6007 GB, free: 148 kB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001552/0.5388, allocations: 0.9717 MB / 0.6017 GB, free: 15.18 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005859/0.5447, allocations: 4.691 MB / 0.6063 GB, free: 10.29 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001004/0.5458, allocations: 0.6729 MB / 0.6069 GB, free: 9.598 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006572/0.5464, allocations: 471.8 kB / 0.6074 GB, free: 9.129 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.53e-05/0.5465, allocations: 16.53 kB / 0.6074 GB, free: 9.113 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007258/0.5472, allocations: 0.5243 MB / 0.6079 GB, free: 8.566 MB / 442.7 MB Notification: Performance of pre-optimization done (n=73): time 3.046e-06/0.5472, allocations: 4 kB / 0.6079 GB, free: 8.562 MB / 442.7 MB Notification: Performance of matching and sorting (n=77): time 0.004925/0.5522, allocations: 2.892 MB / 0.6107 GB, free: 5.582 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.291e-05/0.5523, allocations: 166.9 kB / 0.6109 GB, free: 5.383 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006431/0.5529, allocations: 0.586 MB / 0.6115 GB, free: 4.789 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.51e-05/0.553, allocations: 37.7 kB / 0.6115 GB, free: 4.746 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003647/0.5534, allocations: 467.1 kB / 0.6119 GB, free: 4.281 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000215/0.5536, allocations: 264.3 kB / 0.6122 GB, free: 4.02 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.415e-05/0.5537, allocations: 20 kB / 0.6122 GB, free: 4 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001769/0.5538, allocations: 386.8 kB / 0.6126 GB, free: 3.613 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005954/0.5544, allocations: 393.7 kB / 0.613 GB, free: 3.23 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007573/0.5552, allocations: 0.6258 MB / 0.6136 GB, free: 2.496 MB / 442.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[1] = lineR.i_start[1] (lineL.i_start[1] - lineB.i_start[1] = lineR.i_start[1]) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[2] = lineR.i_start[2] (lineL.i_start[2] - lineB.i_start[2] = lineR.i_start[2]) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[3] = lineR.i_start[3] (lineL.i_start[3] - lineB.i_start[3] = lineR.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.01143/0.5666, allocations: 4.877 MB / 0.6183 GB, free: 13.46 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.318e-06/0.5667, allocations: 4 kB / 0.6183 GB, free: 13.46 MB / 458.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002302/0.569, allocations: 1.365 MB / 0.6197 GB, free: 12.07 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.277e-05/0.569, allocations: 33.7 kB / 0.6197 GB, free: 12.03 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.565e-05/0.5691, allocations: 8 kB / 0.6197 GB, free: 12.02 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006101/0.5697, allocations: 247 kB / 0.6199 GB, free: 11.77 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001054/0.5707, allocations: 255.6 kB / 0.6202 GB, free: 11.52 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005025/0.5758, allocations: 5.574 MB / 0.6256 GB, free: 5.539 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007384/0.5766, allocations: 48.03 kB / 0.6257 GB, free: 5.492 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.778e-05/0.5766, allocations: 39.98 kB / 0.6257 GB, free: 5.453 MB / 458.7 MB Warning: The initial conditions are over specified. The following 3 initial equations are redundant, so they are removed from the initialization sytem: lineR.i[1] = lineR.i_start[1] lineR.i[2] = lineR.i_start[2] lineR.i[3] = lineR.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$whenCondition1,$PRE.relayNet.cnt,relayNet.cnt,$PRE.switch.t0,$PRE.switch.open,$PRE.switch.closed,$whenCondition2,switch.control[1],switch.t0,switch.open,switch.closed,$PRE.relayNet.y[1],relayNet.y[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (97): * Single equations (assignments): 91 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 7,(1,100.0%) 7,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006407/0.5773, allocations: 375.1 kB / 0.6261 GB, free: 5.07 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001139/0.5774, allocations: 79 kB / 0.6262 GB, free: 4.992 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002045/0.5795, allocations: 1.192 MB / 0.6273 GB, free: 3.77 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.661e-05/0.5795, allocations: 16 kB / 0.6273 GB, free: 3.754 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.5795, allocations: 4 kB / 0.6273 GB, free: 3.75 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/0.5795, allocations: 3.984 kB / 0.6273 GB, free: 3.746 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003461/0.583, allocations: 2.322 MB / 0.6296 GB, free: 1.34 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.703e-06/0.583, allocations: 8.031 kB / 0.6296 GB, free: 1.332 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008524/0.5839, allocations: 191.8 kB / 0.6298 GB, free: 1.145 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006522/0.5845, allocations: 242.2 kB / 0.63 GB, free: 0.8984 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.364e-05/0.5846, allocations: 31.92 kB / 0.6301 GB, free: 0.8672 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004712/0.5893, allocations: 5.511 MB / 0.6354 GB, free: 10.95 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.5894, allocations: 4.031 kB / 0.6354 GB, free: 10.95 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002574/0.5919, allocations: 1.71 MB / 0.6371 GB, free: 9.188 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002368/0.5922, allocations: 156.4 kB / 0.6373 GB, free: 9.016 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001438/0.5923, allocations: 19.98 kB / 0.6373 GB, free: 8.996 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004649/0.5928, allocations: 39.97 kB / 0.6373 GB, free: 8.957 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001443/0.593, allocations: 60.42 kB / 0.6374 GB, free: 8.898 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.708e-05/0.593, allocations: 27.98 kB / 0.6374 GB, free: 8.871 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.000532/0.5936, allocations: 407 kB / 0.6378 GB, free: 8.48 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5936, allocations: 0 / 0.6378 GB, free: 8.48 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001179/0.5948, allocations: 304 kB / 0.6381 GB, free: 8.184 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (lineL.i[1],lineL.i[2],lineL.i[3],lineB.i[1],lineB.i[2],lineB.i[3]) * Number of discrete variables: 9 (switch.control[1],$whenCondition2,$whenCondition1,switch.t0,switch.open,switch.closed,relayNet.y[1],relayNet.cnt,system.initime) * Number of discrete states: 5 (relayNet.y[1],relayNet.cnt,$whenCondition1,switch.open,switch.closed) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 48 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 7,(1,100.0%) 7,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003501/0.5951, allocations: 194.9 kB / 0.6383 GB, free: 7.984 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002214/0.5974, allocations: 1.423 MB / 0.6397 GB, free: 6.516 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.095e-06/0.5974, allocations: 0 / 0.6397 GB, free: 6.516 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001379/0.5988, allocations: 0.9367 MB / 0.6406 GB, free: 5.523 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001054/0.5998, allocations: 179.3 kB / 0.6407 GB, free: 5.344 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003937/0.6038, allocations: 2.644 MB / 0.6433 GB, free: 2.652 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008426/0.6047, allocations: 1.111 MB / 0.6444 GB, free: 1.516 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0007159/0.6054, allocations: 210.3 kB / 0.6446 GB, free: 1.305 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002157/0.6056, allocations: 59.42 kB / 0.6447 GB, free: 1.25 MB / 474.7 MB Notification: Performance of SimCode: time 5.01e-07/0.6056, allocations: 4 kB / 0.6447 GB, free: 1.246 MB / 474.7 MB Notification: Performance of Templates: time 0.2229/0.8285, allocations: 11.01 MB / 0.6554 GB, free: 135.3 MB / 474.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.sim & ./PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.SimulationFixedInitial.mat","../files/PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches