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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001045/0.001045, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001093/0.001093, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.475/1.475, allocations: 222.9 MB / 241.5 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.1795/0.1795, allocations: 38.05 MB / 329.7 MB, free: 8.828 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001349/0.001349, allocations: 65.34 kB / 398.8 MB, free: 34.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1029, allocations: 58.06 MB / 456.9 MB, free: 8.07 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.01009/0.113, allocations: 7.566 MB / 464.4 MB, free: 476 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004674/0.1177, allocations: 2.321 MB / 466.8 MB, free: 14.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006846/0.1184, allocations: 27.81 kB / 466.8 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002433/0.1209, allocations: 0.8506 MB / 467.6 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001616/0.1225, allocations: 0.5052 MB / 468.1 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001432/0.1239, allocations: 451 kB / 468.6 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001801/0.1258, allocations: 1.321 MB / 469.9 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001017/0.1268, allocations: 0.6893 MB / 470.6 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001051/0.1279, allocations: 0.568 MB / 471.2 MB, free: 9.719 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001367/0.1292, allocations: 0.6814 MB / 471.8 MB, free: 9.035 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003233/0.1296, allocations: 84 kB / 471.9 MB, free: 8.953 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000772/0.1304, allocations: 267.6 kB / 472.2 MB, free: 8.691 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006594/0.131, allocations: 0.5065 MB / 472.7 MB, free: 8.184 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009369/0.132, allocations: 0.5365 MB / 473.2 MB, free: 7.645 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001602/0.1336, allocations: 1.316 MB / 474.5 MB, free: 6.324 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.1336, allocations: 4 kB / 474.5 MB, free: 6.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1336, allocations: 0 / 474.5 MB, free: 6.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.951e-05/0.1337, allocations: 0 / 474.5 MB, free: 6.32 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.002792/0.1365, allocations: 1.339 MB / 475.9 MB, free: 4.922 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.564e-05/0.1365, allocations: 15.89 kB / 475.9 MB, free: 4.906 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001072/0.1376, allocations: 159.5 kB / 476.1 MB, free: 4.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001226/0.1388, allocations: 0.7076 MB / 476.8 MB, free: 4 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.43e-05/0.1389, allocations: 66.34 kB / 476.8 MB, free: 3.938 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002287/0.1391, allocations: 108.1 kB / 476.9 MB, free: 3.832 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001871/0.141, allocations: 1.215 MB / 478.1 MB, free: 2.543 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.647e-05/0.1411, allocations: 11.84 kB / 478.2 MB, free: 2.531 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.388e-05/0.1412, allocations: 39.98 kB / 478.2 MB, free: 2.492 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002648/0.1414, allocations: 69.95 kB / 478.3 MB, free: 2.426 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001613/0.1431, allocations: 1.011 MB / 479.3 MB, free: 1.414 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005777/0.1488, allocations: 4.764 MB / 484 MB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001059/0.1499, allocations: 0.6725 MB / 484.7 MB, free: 11.75 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005922/0.1505, allocations: 451.8 kB / 485.2 MB, free: 11.31 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.865e-05/0.1506, allocations: 12.55 kB / 485.2 MB, free: 11.3 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007154/0.1513, allocations: 0.5042 MB / 485.7 MB, free: 10.76 MB / 366.1 MB Notification: Performance of pre-optimization done (n=69): time 2.645e-06/0.1513, allocations: 0 / 485.7 MB, free: 10.76 MB / 366.1 MB Notification: Performance of matching and sorting (n=73): time 0.004757/0.1561, allocations: 2.776 MB / 488.4 MB, free: 7.902 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001011/0.1562, allocations: 170.8 kB / 488.6 MB, free: 7.699 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006675/0.1569, allocations: 0.5899 MB / 489.2 MB, free: 7.098 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.818e-05/0.1569, allocations: 49.62 kB / 489.2 MB, free: 7.043 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003315/0.1573, allocations: 478.9 kB / 489.7 MB, free: 6.566 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000229/0.1575, allocations: 252.5 kB / 490 MB, free: 6.316 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002585/0.1578, allocations: 174.5 kB / 490.1 MB, free: 6.141 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001746/0.158, allocations: 390.7 kB / 490.5 MB, free: 5.75 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006119/0.1586, allocations: 381.8 kB / 490.9 MB, free: 5.375 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000986/0.1596, allocations: 0.6232 MB / 491.5 MB, free: 4.637 MB / 366.1 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.006892/0.1665, allocations: 3.48 MB / 495 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.626e-06/0.1665, allocations: 4 kB / 495 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002277/0.1688, allocations: 1.335 MB / 496.3 MB, free: 15.62 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.969e-05/0.1689, allocations: 33.7 kB / 496.4 MB, free: 15.58 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.973e-05/0.1689, allocations: 8 kB / 496.4 MB, free: 15.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006412/0.1695, allocations: 255.1 kB / 496.6 MB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001159/0.1707, allocations: 259.6 kB / 496.9 MB, free: 15.06 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005507/0.1762, allocations: 6.081 MB / 0.4912 GB, free: 8.562 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005783/0.1768, allocations: 36.11 kB / 0.4912 GB, free: 8.527 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.344e-05/0.1769, allocations: 43.98 kB / 0.4912 GB, free: 8.484 MB / 382.1 MB Warning: The initial conditions are over specified. The following 3 initial equations are redundant, so they are removed from the initialization system: 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: 37 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,relayNet.cnt,$PRE.relayNet.cnt,$whenCondition1,$PRE.switch.t0,$PRE.switch.closed,$PRE.switch.open,relayNet.y[1],$PRE.relayNet.y[1],switch.closed,switch.open,switch.t0,switch.control[1],$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (99): * Single equations (assignments): 94 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,7,100.0%), (1,7,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005496/0.1775, allocations: 375.5 kB / 0.4916 GB, free: 8.102 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001601/0.1776, allocations: 79 kB / 0.4917 GB, free: 8.023 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001956/0.1796, allocations: 1.145 MB / 0.4928 GB, free: 6.848 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.48e-05/0.1796, allocations: 15.98 kB / 0.4928 GB, free: 6.832 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.028e-05/0.1797, allocations: 4 kB / 0.4928 GB, free: 6.828 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.037e-06/0.1797, allocations: 3.984 kB / 0.4928 GB, free: 6.824 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003455/0.1831, allocations: 2.246 MB / 0.495 GB, free: 4.488 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.1831, allocations: 0 / 0.495 GB, free: 4.488 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009268/0.1841, allocations: 187.8 kB / 0.4952 GB, free: 4.305 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006812/0.1848, allocations: 258.3 kB / 0.4954 GB, free: 4.043 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.448e-05/0.1848, allocations: 27.92 kB / 0.4955 GB, free: 4.016 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005004/0.1899, allocations: 6.007 MB / 0.5013 GB, free: 13.59 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.1899, allocations: 0 / 0.5013 GB, free: 13.59 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002485/0.1924, allocations: 1.646 MB / 0.5029 GB, free: 11.9 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002045/0.1926, allocations: 148.3 kB / 0.5031 GB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001462/0.1927, allocations: 31.98 kB / 0.5031 GB, free: 11.7 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004282/0.1932, allocations: 23.98 kB / 0.5031 GB, free: 11.68 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001546/0.1933, allocations: 60.36 kB / 0.5032 GB, free: 11.62 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.844e-05/0.1934, allocations: 31.92 kB / 0.5032 GB, free: 11.59 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005051/0.1939, allocations: 411 kB / 0.5036 GB, free: 11.2 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1939, allocations: 0 / 0.5036 GB, free: 11.2 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00108/0.195, allocations: 272 kB / 0.5039 GB, free: 10.93 MB / 398.1 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 (55): * Single equations (assignments): 48 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,7,100.0%), (1,7,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002283/0.1953, allocations: 131.1 kB / 0.504 GB, free: 10.79 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002499/0.1978, allocations: 1.564 MB / 0.5055 GB, free: 9.18 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.1978, allocations: 0 / 0.5055 GB, free: 9.18 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001315/0.1991, allocations: 0.9164 MB / 0.5064 GB, free: 8.211 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009539/0.2001, allocations: 185.6 kB / 0.5066 GB, free: 8.031 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003579/0.2037, allocations: 2.181 MB / 0.5087 GB, free: 5.805 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007939/0.2045, allocations: 1.111 MB / 0.5098 GB, free: 4.668 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006109/0.2051, allocations: 210.5 kB / 0.51 GB, free: 4.457 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001797/0.2053, allocations: 59.42 kB / 0.5101 GB, free: 4.398 MB / 398.1 MB Notification: Performance of SimCode: time 6.92e-07/0.2053, allocations: 4 kB / 0.5101 GB, free: 4.395 MB / 398.1 MB Notification: Performance of Templates: time 0.2109/0.4162, allocations: 10.97 MB / 0.5208 GB, free: 69.83 MB / 398.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches