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.001118/0.001118, allocations: 99.45 kB / 17.59 MB, free: 5.562 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.001069/0.001069, allocations: 191.3 kB / 18.52 MB, free: 4.637 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.364/1.364, 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.1822/0.1821, allocations: 38.03 MB / 330.4 MB, free: 8.859 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001395/0.001395, allocations: 60.98 kB / 399.5 MB, free: 34.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08397/0.08538, allocations: 58.06 MB / 457.5 MB, free: 8.09 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.008597/0.09402, allocations: 7.558 MB / 465.1 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003884/0.09794, allocations: 2.333 MB / 467.4 MB, free: 14.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005264/0.09849, allocations: 27.81 kB / 467.5 MB, free: 14.13 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002167/0.1007, allocations: 0.8572 MB / 468.3 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001207/0.1019, allocations: 0.5014 MB / 468.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001166/0.1031, allocations: 447 kB / 469.3 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001487/0.1046, allocations: 1.305 MB / 470.6 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009215/0.1056, allocations: 0.701 MB / 471.3 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008612/0.1064, allocations: 0.5641 MB / 471.8 MB, free: 9.746 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001046/0.1075, allocations: 0.693 MB / 472.5 MB, free: 9.051 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001986/0.1077, allocations: 80 kB / 472.6 MB, free: 8.973 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006237/0.1083, allocations: 267.6 kB / 472.9 MB, free: 8.711 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005389/0.1089, allocations: 0.5027 MB / 473.4 MB, free: 8.207 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007197/0.1096, allocations: 0.5443 MB / 473.9 MB, free: 7.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001344/0.111, allocations: 1.304 MB / 475.2 MB, free: 6.352 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.111, allocations: 4 kB / 475.2 MB, free: 6.348 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.111, allocations: 0 / 475.2 MB, free: 6.348 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.513e-05/0.111, allocations: 0 / 475.2 MB, free: 6.348 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.002536/0.1136, allocations: 1.339 MB / 476.5 MB, free: 4.949 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.746e-05/0.1136, allocations: 11.89 kB / 476.6 MB, free: 4.938 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001065/0.1147, allocations: 175.5 kB / 476.7 MB, free: 4.766 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001178/0.1159, allocations: 0.696 MB / 477.4 MB, free: 4.027 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.626e-05/0.116, allocations: 70.36 kB / 477.5 MB, free: 3.961 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002162/0.1162, allocations: 108 kB / 477.6 MB, free: 3.855 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001773/0.118, allocations: 1.219 MB / 478.8 MB, free: 2.562 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.031e-05/0.118, allocations: 3.906 kB / 478.8 MB, free: 2.559 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001052/0.1181, allocations: 43.97 kB / 478.9 MB, free: 2.516 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002783/0.1184, allocations: 61.97 kB / 478.9 MB, free: 2.457 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001621/0.12, allocations: 1.011 MB / 479.9 MB, free: 1.445 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005791/0.1258, allocations: 4.768 MB / 484.7 MB, free: 12.47 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00106/0.1269, allocations: 0.6763 MB / 485.4 MB, free: 11.78 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006116/0.1275, allocations: 455.8 kB / 485.8 MB, free: 11.33 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.974e-05/0.1276, allocations: 12.55 kB / 485.8 MB, free: 11.32 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007305/0.1283, allocations: 0.5041 MB / 486.3 MB, free: 10.78 MB / 366.1 MB Notification: Performance of pre-optimization done (n=69): time 6.311e-06/0.1284, allocations: 3.984 kB / 486.3 MB, free: 10.78 MB / 366.1 MB Notification: Performance of matching and sorting (n=73): time 0.004669/0.133, allocations: 2.776 MB / 489.1 MB, free: 7.918 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.137e-05/0.1331, allocations: 166.7 kB / 489.3 MB, free: 7.719 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006752/0.1338, allocations: 0.5977 MB / 489.9 MB, free: 7.109 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.499e-05/0.1339, allocations: 41.77 kB / 489.9 MB, free: 7.062 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003295/0.1342, allocations: 478.9 kB / 490.4 MB, free: 6.586 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002116/0.1344, allocations: 256.5 kB / 490.6 MB, free: 6.332 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002454/0.1347, allocations: 162.6 kB / 490.8 MB, free: 6.168 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000164/0.1349, allocations: 398.7 kB / 491.2 MB, free: 5.77 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005678/0.1354, allocations: 373.7 kB / 491.6 MB, free: 5.402 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007343/0.1362, allocations: 0.6349 MB / 492.2 MB, free: 4.652 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.006976/0.1432, allocations: 3.472 MB / 495.7 MB, free: 1.008 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.084e-06/0.1432, allocations: 0 / 495.7 MB, free: 1.008 MB / 366.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.00229/0.1455, allocations: 1.344 MB / 497 MB, free: 15.64 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.782e-05/0.1456, allocations: 33.7 kB / 497 MB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.567e-05/0.1456, allocations: 8 kB / 497 MB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006326/0.1462, allocations: 250.7 kB / 497.3 MB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001175/0.1474, allocations: 263.6 kB / 497.6 MB, free: 15.08 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005457/0.1529, allocations: 6.073 MB / 0.4918 GB, free: 8.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006325/0.1535, allocations: 40.17 kB / 0.4919 GB, free: 8.551 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.949e-05/0.1537, allocations: 47.98 kB / 0.4919 GB, free: 8.504 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.0005578/0.1542, allocations: 375 kB / 0.4923 GB, free: 8.121 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001608/0.1544, allocations: 79 kB / 0.4923 GB, free: 8.043 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00203/0.1564, allocations: 1.137 MB / 0.4934 GB, free: 6.875 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.202e-05/0.1565, allocations: 8 kB / 0.4935 GB, free: 6.867 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.668e-06/0.1565, allocations: 11.98 kB / 0.4935 GB, free: 6.855 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.554e-06/0.1565, allocations: 3.938 kB / 0.4935 GB, free: 6.852 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003529/0.16, allocations: 2.25 MB / 0.4957 GB, free: 4.512 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.792e-06/0.1601, allocations: 4.141 kB / 0.4957 GB, free: 4.508 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009821/0.161, allocations: 191.7 kB / 0.4959 GB, free: 4.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007163/0.1618, allocations: 242.6 kB / 0.4961 GB, free: 4.074 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.736e-05/0.1619, allocations: 31.92 kB / 0.4961 GB, free: 4.043 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005336/0.1672, allocations: 6.011 MB / 0.502 GB, free: 13.62 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.1672, allocations: 3.938 kB / 0.502 GB, free: 13.61 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002622/0.1699, allocations: 1.649 MB / 0.5036 GB, free: 11.91 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000217/0.1701, allocations: 144.3 kB / 0.5037 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000174/0.1703, allocations: 31.98 kB / 0.5038 GB, free: 11.72 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004554/0.1707, allocations: 23.98 kB / 0.5038 GB, free: 11.7 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001505/0.1709, allocations: 60.42 kB / 0.5038 GB, free: 11.64 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.4e-05/0.171, allocations: 23.98 kB / 0.5039 GB, free: 11.62 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005035/0.1715, allocations: 411 kB / 0.5043 GB, free: 11.22 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1715, allocations: 0 / 0.5043 GB, free: 11.22 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001105/0.1726, allocations: 272 kB / 0.5045 GB, free: 10.96 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.0002325/0.1728, allocations: 135.1 kB / 0.5047 GB, free: 10.82 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002544/0.1754, allocations: 1.567 MB / 0.5062 GB, free: 9.199 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.1754, allocations: 0 / 0.5062 GB, free: 9.199 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001378/0.1768, allocations: 0.9095 MB / 0.5071 GB, free: 8.238 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009752/0.1778, allocations: 192.2 kB / 0.5073 GB, free: 8.055 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003743/0.1815, allocations: 2.26 MB / 0.5095 GB, free: 5.742 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007704/0.1823, allocations: 1.115 MB / 0.5105 GB, free: 4.602 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002126/0.1826, allocations: 63.42 kB / 0.5106 GB, free: 4.539 MB / 398.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1826, allocations: 0 / 0.5106 GB, free: 4.539 MB / 398.1 MB Notification: Performance of Templates: time 0.1846/0.3672, allocations: 21.01 MB / 0.5311 GB, free: 64.07 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/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