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.001911/0.001911, allocations: 96.03 kB / 16.5 MB, free: 6.641 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.00202/0.00202, allocations: 193.2 kB / 17.42 MB, free: 6.066 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.4/1.4, allocations: 222.9 MB / 241.1 MB, free: 13.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1758/0.1758, allocations: 38.05 MB / 329.3 MB, free: 8.863 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 60.28 kB / 398.1 MB, free: 34.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1174, allocations: 58.06 MB / 456.2 MB, free: 8.527 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.01067/0.1281, allocations: 9.222 MB / 465.4 MB, free: 15.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006104/0.1343, allocations: 2.851 MB / 468.2 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000984/0.1353, allocations: 63.56 kB / 468.3 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002334/0.1376, allocations: 0.7997 MB / 469.1 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001616/0.1393, allocations: 481.9 kB / 469.6 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001436/0.1407, allocations: 403.3 kB / 470 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002086/0.1428, allocations: 1.98 MB / 471.9 MB, free: 8.684 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001115/0.1439, allocations: 0.6617 MB / 472.6 MB, free: 8.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001095/0.1451, allocations: 0.49 MB / 473.1 MB, free: 7.527 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001213/0.1463, allocations: 0.7243 MB / 473.8 MB, free: 6.801 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001954/0.1465, allocations: 63.94 kB / 473.9 MB, free: 6.738 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006517/0.1472, allocations: 259.6 kB / 474.1 MB, free: 6.484 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005487/0.1477, allocations: 498.6 kB / 474.6 MB, free: 5.996 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007551/0.1485, allocations: 0.5092 MB / 475.1 MB, free: 5.484 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001329/0.1498, allocations: 1.289 MB / 476.4 MB, free: 4.191 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.1498, allocations: 0 / 476.4 MB, free: 4.191 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1498, allocations: 0 / 476.4 MB, free: 4.191 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.365e-05/0.1499, allocations: 0 / 476.4 MB, free: 4.191 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.002479/0.1524, allocations: 1.339 MB / 477.7 MB, free: 2.789 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.706e-05/0.1524, allocations: 8.031 kB / 477.8 MB, free: 2.781 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00109/0.1535, allocations: 171.4 kB / 477.9 MB, free: 2.613 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001196/0.1547, allocations: 0.7 MB / 478.6 MB, free: 1.875 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.327e-05/0.1548, allocations: 70.36 kB / 478.7 MB, free: 1.805 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002189/0.155, allocations: 108 kB / 478.8 MB, free: 1.699 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001791/0.1568, allocations: 1.215 MB / 480 MB, free: 424 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.749e-05/0.1569, allocations: 8 kB / 480 MB, free: 416 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.745e-05/0.157, allocations: 39.97 kB / 480.1 MB, free: 376 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002756/0.1573, allocations: 61.97 kB / 480.1 MB, free: 312 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001606/0.1589, allocations: 1.011 MB / 481.1 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006351/0.1652, allocations: 4.767 MB / 485.9 MB, free: 10.32 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001162/0.1664, allocations: 0.6681 MB / 486.6 MB, free: 9.629 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006494/0.1671, allocations: 459.8 kB / 487 MB, free: 9.176 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.423e-05/0.1672, allocations: 8.547 kB / 487 MB, free: 9.168 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008205/0.168, allocations: 0.5041 MB / 487.5 MB, free: 8.633 MB / 366.1 MB Notification: Performance of pre-optimization done (n=69): time 3.136e-06/0.168, allocations: 0 / 487.5 MB, free: 8.633 MB / 366.1 MB Notification: Performance of matching and sorting (n=73): time 0.005148/0.1732, allocations: 2.78 MB / 490.3 MB, free: 5.766 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001462/0.1734, allocations: 174.7 kB / 490.5 MB, free: 5.559 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009248/0.1743, allocations: 0.586 MB / 491.1 MB, free: 4.965 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.027e-05/0.1744, allocations: 41.7 kB / 491.1 MB, free: 4.918 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000531/0.1749, allocations: 471 kB / 491.6 MB, free: 4.449 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003807/0.1753, allocations: 260.4 kB / 491.8 MB, free: 4.191 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003564/0.1757, allocations: 170.6 kB / 492 MB, free: 4.02 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000282/0.176, allocations: 398.7 kB / 492.4 MB, free: 3.621 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007344/0.1767, allocations: 373.8 kB / 492.7 MB, free: 3.254 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001011/0.1778, allocations: 0.6309 MB / 493.4 MB, free: 2.508 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.008139/0.1859, allocations: 3.454 MB / 496.8 MB, free: 14.88 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.113e-05/0.1859, allocations: 4 kB / 496.8 MB, free: 14.88 MB / 382.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002701/0.1887, allocations: 1.343 MB / 498.2 MB, free: 13.51 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.782e-05/0.1887, allocations: 39.83 kB / 498.2 MB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.758e-05/0.1888, allocations: 12.78 kB / 498.2 MB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007755/0.1896, allocations: 246.4 kB / 498.5 MB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001209/0.1908, allocations: 267.6 kB / 498.7 MB, free: 12.94 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006346/0.1971, allocations: 5.566 MB / 0.4925 GB, free: 6.969 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008358/0.198, allocations: 35.98 kB / 0.4925 GB, free: 6.934 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001536/0.1982, allocations: 44.06 kB / 0.4925 GB, free: 6.891 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.000831/0.199, allocations: 377 kB / 0.4929 GB, free: 6.508 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001943/0.1992, allocations: 79.06 kB / 0.493 GB, free: 6.43 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00233/0.2016, allocations: 1.137 MB / 0.4941 GB, free: 5.27 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.447e-05/0.2016, allocations: 11.98 kB / 0.4941 GB, free: 5.258 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-05/0.2016, allocations: 4 kB / 0.4941 GB, free: 5.254 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.087e-06/0.2017, allocations: 7.984 kB / 0.4941 GB, free: 5.246 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004111/0.2058, allocations: 2.246 MB / 0.4963 GB, free: 2.914 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.856e-06/0.2058, allocations: 4 kB / 0.4963 GB, free: 2.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000918/0.2067, allocations: 187.9 kB / 0.4965 GB, free: 2.727 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007665/0.2075, allocations: 254.2 kB / 0.4967 GB, free: 2.469 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.561e-05/0.2076, allocations: 23.97 kB / 0.4968 GB, free: 2.445 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005355/0.213, allocations: 5.503 MB / 0.5021 GB, free: 12.54 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.213, allocations: 4.031 kB / 0.5021 GB, free: 12.54 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002793/0.2158, allocations: 1.642 MB / 0.5037 GB, free: 10.84 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002564/0.216, allocations: 152.2 kB / 0.5039 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001491/0.2162, allocations: 27.92 kB / 0.5039 GB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004494/0.2167, allocations: 23.98 kB / 0.5039 GB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001447/0.2168, allocations: 56.42 kB / 0.504 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.41e-05/0.2169, allocations: 23.98 kB / 0.504 GB, free: 10.55 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005067/0.2174, allocations: 411 kB / 0.5044 GB, free: 10.15 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2174, allocations: 0 / 0.5044 GB, free: 10.15 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00109/0.2185, allocations: 280 kB / 0.5047 GB, free: 9.875 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.0002977/0.2188, allocations: 131.1 kB / 0.5048 GB, free: 9.738 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002365/0.2212, allocations: 1.392 MB / 0.5062 GB, free: 8.293 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.2212, allocations: 4 kB / 0.5062 GB, free: 8.289 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001419/0.2226, allocations: 0.9006 MB / 0.507 GB, free: 7.336 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009271/0.2236, allocations: 174 kB / 0.5072 GB, free: 7.172 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003826/0.2274, allocations: 2.58 MB / 0.5097 GB, free: 4.547 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001022/0.2284, allocations: 1.111 MB / 0.5108 GB, free: 3.41 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006072/0.2291, allocations: 214.5 kB / 0.511 GB, free: 3.195 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001774/0.2293, allocations: 63.42 kB / 0.5111 GB, free: 3.133 MB / 398.1 MB Notification: Performance of SimCode: time 6.51e-07/0.2293, allocations: 3.938 kB / 0.5111 GB, free: 3.129 MB / 398.1 MB Notification: Performance of Templates: time 0.2118/0.441, allocations: 10.44 MB / 0.5213 GB, free: 68.18 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