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.001387/0.001387, allocations: 174.8 kB / 13.63 MB, free: 1.684 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.696/1.696, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.001071/0.001071, allocations: 82.66 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1967/0.1967, allocations: 37.98 MB / 353.5 MB, free: 1.746 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.6e-05/2.601e-05, allocations: 4 kB / 417.7 MB, free: 29.12 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/0.1184, allocations: 56.32 MB / 474.1 MB, free: 4.797 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3772/0.4956, allocations: 103.6 MB / 0.5641 GB, free: 15.25 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003174/0.496, allocations: 83.02 kB / 0.5642 GB, free: 15.21 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07401/0.57, allocations: 25.87 MB / 0.5895 GB, free: 8.918 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.57, allocations: 0 / 0.5895 GB, free: 8.918 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.219e-05/0.5701, allocations: 27.98 kB / 0.5895 GB, free: 8.891 MB / 394.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.002009/0.5721, allocations: 1.082 MB / 0.5906 GB, free: 7.812 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.468e-05/0.5722, allocations: 11.98 kB / 0.5906 GB, free: 7.801 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001015/0.5732, allocations: 186.5 kB / 0.5908 GB, free: 7.617 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003036/0.5762, allocations: 1.356 MB / 0.5921 GB, free: 6.457 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.429e-05/0.5763, allocations: 68.05 kB / 0.5921 GB, free: 6.418 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001453/0.5765, allocations: 95.14 kB / 0.5922 GB, free: 6.352 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001689/0.5782, allocations: 1.17 MB / 0.5934 GB, free: 5.438 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.958e-05/0.5782, allocations: 11.94 kB / 0.5934 GB, free: 5.426 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.621e-05/0.5783, allocations: 35.17 kB / 0.5934 GB, free: 5.414 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.565e-05/0.5784, allocations: 53.8 kB / 0.5935 GB, free: 5.367 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00142/0.5798, allocations: 0.95 MB / 0.5944 GB, free: 4.699 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005592/0.5854, allocations: 4.69 MB / 0.599 GB, free: 0.5352 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001063/0.5865, allocations: 0.6624 MB / 0.5996 GB, free: 68 kB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006376/0.5872, allocations: 466.7 kB / 0.6001 GB, free: 15.76 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.537e-05/0.5872, allocations: 16.48 kB / 0.6001 GB, free: 15.75 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007716/0.588, allocations: 0.5137 MB / 0.6006 GB, free: 15.34 MB / 410.7 MB Notification: Performance of pre-optimization done (n=73): time 3.297e-06/0.588, allocations: 4 kB / 0.6006 GB, free: 15.34 MB / 410.7 MB Notification: Performance of matching and sorting (n=77): time 0.004256/0.5923, allocations: 2.536 MB / 0.6031 GB, free: 13.22 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001078/0.5924, allocations: 177.9 kB / 0.6032 GB, free: 13.01 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006528/0.5931, allocations: 0.5009 MB / 0.6037 GB, free: 12.61 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.932e-05/0.5932, allocations: 42.33 kB / 0.6038 GB, free: 12.57 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003278/0.5935, allocations: 468.8 kB / 0.6042 GB, free: 12.23 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002204/0.5937, allocations: 268.2 kB / 0.6045 GB, free: 12 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.43e-05/0.5938, allocations: 22.88 kB / 0.6045 GB, free: 11.99 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001799/0.594, allocations: 393 kB / 0.6049 GB, free: 11.63 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000569/0.5945, allocations: 377.2 kB / 0.6052 GB, free: 11.38 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007134/0.5953, allocations: 0.6226 MB / 0.6058 GB, free: 10.79 MB / 410.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.01311/0.6084, allocations: 3.883 MB / 0.6096 GB, free: 7.391 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-05/0.6084, allocations: 4 kB / 0.6096 GB, free: 7.387 MB / 410.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002561/0.611, allocations: 1.341 MB / 0.6109 GB, free: 6.336 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.02e-05/0.6111, allocations: 33.7 kB / 0.611 GB, free: 6.297 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.117e-05/0.6111, allocations: 12.03 kB / 0.611 GB, free: 6.285 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007683/0.6119, allocations: 252.4 kB / 0.6112 GB, free: 6.078 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001161/0.6131, allocations: 273.5 kB / 0.6115 GB, free: 5.816 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00559/0.6187, allocations: 5.569 MB / 0.6169 GB, free: 15.89 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008418/0.6195, allocations: 39.97 kB / 0.617 GB, free: 15.85 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.264e-05/0.6196, allocations: 39.98 kB / 0.617 GB, free: 15.81 MB / 426.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,$whenCondition2,switch.control[1],$PRE.switch.t0,switch.t0,$PRE.switch.open,switch.open,$PRE.switch.closed,switch.closed,$PRE.relayNet.y[1],relayNet.y[1]) * Number of discrete 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.000326/0.62, allocations: 207.4 kB / 0.6172 GB, free: 15.6 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001215/0.6201, allocations: 75.06 kB / 0.6173 GB, free: 15.52 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002236/0.6223, allocations: 1.168 MB / 0.6184 GB, free: 14.33 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.657e-05/0.6224, allocations: 12 kB / 0.6184 GB, free: 14.32 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.6224, allocations: 4 kB / 0.6184 GB, free: 14.31 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.099e-05/0.6224, allocations: 3.984 kB / 0.6184 GB, free: 14.31 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003792/0.6262, allocations: 2.312 MB / 0.6207 GB, free: 11.91 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.45e-06/0.6263, allocations: 4 kB / 0.6207 GB, free: 11.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001032/0.6273, allocations: 195.8 kB / 0.6209 GB, free: 11.71 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006987/0.628, allocations: 246.5 kB / 0.6211 GB, free: 11.46 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.091e-05/0.6281, allocations: 31.97 kB / 0.6212 GB, free: 11.43 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004965/0.6331, allocations: 5.5 MB / 0.6265 GB, free: 5.531 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.6331, allocations: 0 / 0.6265 GB, free: 5.531 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002701/0.6358, allocations: 1.75 MB / 0.6282 GB, free: 3.688 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002447/0.6361, allocations: 156.1 kB / 0.6284 GB, free: 3.516 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001097/0.6362, allocations: 23.98 kB / 0.6284 GB, free: 3.492 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004288/0.6366, allocations: 31.97 kB / 0.6284 GB, free: 3.461 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001598/0.6368, allocations: 68.41 kB / 0.6285 GB, free: 3.395 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.914e-05/0.6369, allocations: 20 kB / 0.6285 GB, free: 3.375 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005368/0.6374, allocations: 399.1 kB / 0.6289 GB, free: 2.988 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6374, allocations: 0 / 0.6289 GB, free: 2.988 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001239/0.6387, allocations: 308 kB / 0.6292 GB, free: 2.688 MB / 426.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) * 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.0003815/0.6391, allocations: 201.5 kB / 0.6294 GB, free: 2.48 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002204/0.6413, allocations: 1.417 MB / 0.6308 GB, free: 1.012 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.6413, allocations: 4 kB / 0.6308 GB, free: 1.008 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001419/0.6427, allocations: 0.9211 MB / 0.6317 GB, free: 40 kB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008201/0.6436, allocations: 162.8 kB / 0.6318 GB, free: 15.88 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003436/0.647, allocations: 1.82 MB / 0.6336 GB, free: 14.01 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007753/0.6478, allocations: 1.131 MB / 0.6347 GB, free: 12.85 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.00064/0.6484, allocations: 210.4 kB / 0.6349 GB, free: 12.64 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000165/0.6486, allocations: 59.42 kB / 0.635 GB, free: 12.59 MB / 442.7 MB Notification: Performance of SimCode: time 9.01e-07/0.6486, allocations: 0 / 0.635 GB, free: 12.59 MB / 442.7 MB Notification: Performance of Templates: time 0.01983/0.6685, allocations: 11.21 MB / 0.6459 GB, free: 1.379 MB / 442.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/jenkins/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