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.001515/0.001515, allocations: 112.5 kB / 17.69 MB, free: 5.426 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.001686/0.001686, allocations: 191 kB / 18.63 MB, free: 4.496 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.33/1.33, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1822/0.1822, allocations: 38.05 MB / 330.5 MB, free: 8.789 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002305/0.002306, allocations: 61.53 kB / 400.3 MB, free: 33.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1133, allocations: 58.06 MB / 458.3 MB, free: 7.348 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.008345/0.1217, allocations: 7.569 MB / 465.9 MB, free: 15.74 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003835/0.1256, allocations: 2.321 MB / 468.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005055/0.1261, allocations: 27.81 kB / 468.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002153/0.1283, allocations: 0.8595 MB / 469.1 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001176/0.1295, allocations: 0.4975 MB / 469.6 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001224/0.1307, allocations: 451 kB / 470 MB, free: 11.58 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001535/0.1323, allocations: 1.313 MB / 471.3 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009177/0.1332, allocations: 0.6855 MB / 472 MB, free: 9.574 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009031/0.1341, allocations: 0.568 MB / 472.6 MB, free: 9.004 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001109/0.1352, allocations: 0.693 MB / 473.3 MB, free: 8.309 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002159/0.1354, allocations: 80 kB / 473.4 MB, free: 8.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006187/0.1361, allocations: 267.6 kB / 473.6 MB, free: 7.969 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005146/0.1366, allocations: 0.5066 MB / 474.1 MB, free: 7.461 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007056/0.1373, allocations: 0.5481 MB / 474.7 MB, free: 6.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00125/0.1386, allocations: 1.32 MB / 476 MB, free: 5.586 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.1386, allocations: 0 / 476 MB, free: 5.586 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1386, allocations: 0 / 476 MB, free: 5.586 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.277e-05/0.1386, allocations: 0 / 476 MB, free: 5.586 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.00221/0.1408, allocations: 1.337 MB / 477.3 MB, free: 4.191 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.391e-05/0.1409, allocations: 19.88 kB / 477.4 MB, free: 4.172 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009618/0.1419, allocations: 167.5 kB / 477.5 MB, free: 4.008 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001289/0.1432, allocations: 0.7466 MB / 478.3 MB, free: 3.219 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.128e-05/0.1432, allocations: 66.36 kB / 478.3 MB, free: 3.156 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002137/0.1434, allocations: 104.1 kB / 478.4 MB, free: 3.055 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001655/0.1451, allocations: 1.223 MB / 479.7 MB, free: 1.758 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.007e-05/0.1452, allocations: 3.906 kB / 479.7 MB, free: 1.754 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.137e-05/0.1452, allocations: 43.97 kB / 479.7 MB, free: 1.711 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000252/0.1455, allocations: 61.97 kB / 479.8 MB, free: 1.652 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00153/0.147, allocations: 1.011 MB / 480.8 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005753/0.1528, allocations: 4.74 MB / 485.5 MB, free: 11.7 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00109/0.1539, allocations: 0.6764 MB / 486.2 MB, free: 11 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006026/0.1545, allocations: 451.8 kB / 486.6 MB, free: 10.55 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.94e-05/0.1546, allocations: 16.55 kB / 486.7 MB, free: 10.54 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007043/0.1553, allocations: 0.508 MB / 487.2 MB, free: 10 MB / 366.1 MB Notification: Performance of pre-optimization done (n=69): time 2.324e-06/0.1553, allocations: 0 / 487.2 MB, free: 10 MB / 366.1 MB Notification: Performance of matching and sorting (n=73): time 0.004556/0.1599, allocations: 2.776 MB / 489.9 MB, free: 7.141 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.848e-05/0.16, allocations: 166.8 kB / 490.1 MB, free: 6.941 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006378/0.1607, allocations: 0.5976 MB / 490.7 MB, free: 6.332 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.818e-05/0.1607, allocations: 41.7 kB / 490.7 MB, free: 6.285 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003544/0.1611, allocations: 482.8 kB / 491.2 MB, free: 5.805 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002027/0.1613, allocations: 256.5 kB / 491.5 MB, free: 5.551 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002593/0.1616, allocations: 166.6 kB / 491.6 MB, free: 5.383 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001541/0.1617, allocations: 394.7 kB / 492 MB, free: 4.988 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005592/0.1623, allocations: 373.8 kB / 492.4 MB, free: 4.621 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007128/0.163, allocations: 0.6385 MB / 493 MB, free: 3.867 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.006762/0.1698, allocations: 3.453 MB / 496.5 MB, free: 248 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.943e-06/0.1698, allocations: 0 / 496.5 MB, free: 248 kB / 366.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002193/0.172, allocations: 1.344 MB / 497.8 MB, free: 14.88 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.856e-05/0.1721, allocations: 37.73 kB / 497.8 MB, free: 14.83 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.644e-05/0.1721, allocations: 8 kB / 497.9 MB, free: 14.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006013/0.1727, allocations: 242.3 kB / 498.1 MB, free: 14.58 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001107/0.1738, allocations: 267.6 kB / 498.3 MB, free: 14.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005207/0.179, allocations: 6.081 MB / 0.4926 GB, free: 7.816 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005622/0.1796, allocations: 31.98 kB / 0.4926 GB, free: 7.785 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.329e-05/0.1797, allocations: 43.98 kB / 0.4927 GB, free: 7.742 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.000527/0.1802, allocations: 375.2 kB / 0.493 GB, free: 7.359 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001325/0.1804, allocations: 82.98 kB / 0.4931 GB, free: 7.277 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001913/0.1823, allocations: 1.141 MB / 0.4942 GB, free: 6.105 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.045e-05/0.1823, allocations: 11.98 kB / 0.4942 GB, free: 6.094 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/0.1824, allocations: 4 kB / 0.4942 GB, free: 6.09 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.195e-06/0.1824, allocations: 3.984 kB / 0.4943 GB, free: 6.086 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003518/0.1859, allocations: 2.258 MB / 0.4965 GB, free: 3.738 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.528e-06/0.1859, allocations: 0 / 0.4965 GB, free: 3.738 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008747/0.1868, allocations: 183.7 kB / 0.4966 GB, free: 3.559 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006821/0.1875, allocations: 250.3 kB / 0.4969 GB, free: 3.305 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.627e-05/0.1876, allocations: 27.92 kB / 0.4969 GB, free: 3.277 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005083/0.1927, allocations: 6.019 MB / 0.5028 GB, free: 12.84 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.1927, allocations: 0 / 0.5028 GB, free: 12.84 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002458/0.1951, allocations: 1.651 MB / 0.5044 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000202/0.1954, allocations: 144.2 kB / 0.5045 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001222/0.1955, allocations: 23.98 kB / 0.5045 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004162/0.1959, allocations: 23.98 kB / 0.5046 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001476/0.1961, allocations: 64.36 kB / 0.5046 GB, free: 10.87 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.416e-05/0.1961, allocations: 23.98 kB / 0.5047 GB, free: 10.85 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004627/0.1966, allocations: 411 kB / 0.505 GB, free: 10.45 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1966, allocations: 4 kB / 0.505 GB, free: 10.45 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001081/0.1977, allocations: 276 kB / 0.5053 GB, free: 10.18 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.0002149/0.1979, allocations: 131.1 kB / 0.5054 GB, free: 10.04 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002138/0.2001, allocations: 1.392 MB / 0.5068 GB, free: 8.602 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.2001, allocations: 4 kB / 0.5068 GB, free: 8.598 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001333/0.2014, allocations: 0.9046 MB / 0.5077 GB, free: 7.645 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008634/0.2023, allocations: 192 kB / 0.5079 GB, free: 7.461 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003352/0.2057, allocations: 2.153 MB / 0.51 GB, free: 5.258 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007004/0.2064, allocations: 1.115 MB / 0.5111 GB, free: 4.117 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005049/0.2069, allocations: 214.5 kB / 0.5113 GB, free: 3.902 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001552/0.2071, allocations: 59.38 kB / 0.5113 GB, free: 3.844 MB / 398.1 MB Notification: Performance of SimCode: time 5.41e-07/0.2071, allocations: 4 kB / 0.5113 GB, free: 3.84 MB / 398.1 MB Notification: Performance of Templates: time 0.2081/0.4152, allocations: 10.96 MB / 0.522 GB, free: 68.73 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 -s gbode -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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches