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.001091/0.001091, allocations: 114.6 kB / 16.63 MB, free: 6.812 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.001051/0.001051, allocations: 185.8 kB / 17.55 MB, free: 5.934 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.432/1.432, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1753/0.1753, allocations: 38.03 MB / 329.4 MB, free: 9.059 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001174/0.001174, allocations: 65.12 kB / 398.3 MB, free: 34.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09785/0.09904, allocations: 58.06 MB / 456.3 MB, free: 8.461 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.009953/0.109, allocations: 9.226 MB / 465.6 MB, free: 15.19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005213/0.1143, allocations: 2.808 MB / 468.4 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001089/0.1154, allocations: 63.56 kB / 468.4 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002301/0.1177, allocations: 0.8055 MB / 469.2 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001352/0.1191, allocations: 481.9 kB / 469.7 MB, free: 11.03 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00121/0.1203, allocations: 411.3 kB / 470.1 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001631/0.1219, allocations: 1.313 MB / 471.4 MB, free: 9.305 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001092/0.1231, allocations: 0.744 MB / 472.2 MB, free: 8.551 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009459/0.124, allocations: 0.5602 MB / 472.7 MB, free: 7.988 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001151/0.1252, allocations: 0.7398 MB / 473.5 MB, free: 7.246 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002268/0.1254, allocations: 84 kB / 473.6 MB, free: 7.164 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006322/0.1261, allocations: 271.6 kB / 473.8 MB, free: 6.898 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005804/0.1266, allocations: 0.5105 MB / 474.3 MB, free: 6.387 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008541/0.1275, allocations: 0.5403 MB / 474.9 MB, free: 5.844 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001497/0.129, allocations: 1.308 MB / 476.2 MB, free: 4.531 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.129, allocations: 0 / 476.2 MB, free: 4.531 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.129, allocations: 0 / 476.2 MB, free: 4.531 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.83e-05/0.1291, allocations: 0 / 476.2 MB, free: 4.531 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.002784/0.1319, allocations: 1.335 MB / 477.5 MB, free: 3.137 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.434e-05/0.1319, allocations: 15.89 kB / 477.5 MB, free: 3.121 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001091/0.133, allocations: 167.4 kB / 477.7 MB, free: 2.957 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001214/0.1343, allocations: 0.7116 MB / 478.4 MB, free: 2.203 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.168e-05/0.1343, allocations: 62.38 kB / 478.5 MB, free: 2.145 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002342/0.1346, allocations: 112 kB / 478.6 MB, free: 2.035 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001954/0.1365, allocations: 1.219 MB / 479.8 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.67e-05/0.1366, allocations: 7.938 kB / 479.8 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.05e-05/0.1367, allocations: 32 kB / 479.8 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002789/0.137, allocations: 61.97 kB / 479.9 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001722/0.1387, allocations: 1.007 MB / 480.9 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006654/0.1454, allocations: 4.771 MB / 485.7 MB, free: 10.66 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001087/0.1465, allocations: 0.6746 MB / 486.3 MB, free: 9.965 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006339/0.1471, allocations: 451.8 kB / 486.8 MB, free: 9.52 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.738e-05/0.1472, allocations: 8.562 kB / 486.8 MB, free: 9.512 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007742/0.148, allocations: 0.5119 MB / 487.3 MB, free: 8.969 MB / 366.1 MB Notification: Performance of pre-optimization done (n=69): time 2.545e-06/0.148, allocations: 0 / 487.3 MB, free: 8.969 MB / 366.1 MB Notification: Performance of matching and sorting (n=73): time 0.004973/0.153, allocations: 2.78 MB / 490.1 MB, free: 6.102 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001132/0.1531, allocations: 170.8 kB / 490.3 MB, free: 5.898 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000774/0.1539, allocations: 0.5899 MB / 490.8 MB, free: 5.297 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.174e-05/0.154, allocations: 45.77 kB / 490.9 MB, free: 5.246 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003776/0.1544, allocations: 479 kB / 491.4 MB, free: 4.77 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002511/0.1546, allocations: 256.4 kB / 491.6 MB, free: 4.516 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002977/0.1549, allocations: 174.5 kB / 491.8 MB, free: 4.34 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001941/0.1551, allocations: 398.7 kB / 492.2 MB, free: 3.941 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005872/0.1557, allocations: 373.8 kB / 492.5 MB, free: 3.574 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007758/0.1565, allocations: 0.631 MB / 493.2 MB, free: 2.832 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.007258/0.1638, allocations: 3.453 MB / 496.6 MB, free: 15.2 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.616e-06/0.1638, allocations: 0 / 496.6 MB, free: 15.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002413/0.1662, allocations: 1.347 MB / 498 MB, free: 13.83 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.132e-05/0.1663, allocations: 37.69 kB / 498 MB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.415e-05/0.1663, allocations: 8 kB / 498 MB, free: 13.78 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007138/0.1671, allocations: 250.5 kB / 498.3 MB, free: 13.53 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001115/0.1682, allocations: 259.6 kB / 498.5 MB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005912/0.1741, allocations: 6.085 MB / 0.4928 GB, free: 6.773 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006433/0.1748, allocations: 43.97 kB / 0.4928 GB, free: 6.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001116/0.1749, allocations: 40 kB / 0.4928 GB, free: 6.691 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.0006479/0.1756, allocations: 376.7 kB / 0.4932 GB, free: 6.309 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001996/0.1758, allocations: 79 kB / 0.4933 GB, free: 6.23 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002166/0.1779, allocations: 1.141 MB / 0.4944 GB, free: 5.062 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.207e-05/0.178, allocations: 8 kB / 0.4944 GB, free: 5.055 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.448e-06/0.178, allocations: 4 kB / 0.4944 GB, free: 5.051 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.102e-05/0.178, allocations: 11.98 kB / 0.4944 GB, free: 5.039 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003847/0.1819, allocations: 2.234 MB / 0.4966 GB, free: 2.719 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.652e-06/0.1819, allocations: 0 / 0.4966 GB, free: 2.719 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009141/0.1828, allocations: 195.9 kB / 0.4968 GB, free: 2.527 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007426/0.1836, allocations: 246.5 kB / 0.497 GB, free: 2.277 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.991e-05/0.1837, allocations: 35.91 kB / 0.4971 GB, free: 2.242 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005641/0.1893, allocations: 6.011 MB / 0.5029 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.42e-06/0.1893, allocations: 3.984 kB / 0.5029 GB, free: 11.81 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00274/0.1921, allocations: 1.649 MB / 0.5045 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002117/0.1923, allocations: 152.1 kB / 0.5047 GB, free: 9.945 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001401/0.1924, allocations: 20 kB / 0.5047 GB, free: 9.926 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004179/0.1929, allocations: 27.97 kB / 0.5047 GB, free: 9.898 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000145/0.193, allocations: 60.42 kB / 0.5048 GB, free: 9.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.225e-05/0.1931, allocations: 20 kB / 0.5048 GB, free: 9.82 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000496/0.1936, allocations: 415 kB / 0.5052 GB, free: 9.422 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1936, allocations: 0 / 0.5052 GB, free: 9.422 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001093/0.1947, allocations: 276 kB / 0.5055 GB, free: 9.152 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.0002119/0.1949, allocations: 139.2 kB / 0.5056 GB, free: 9.008 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002516/0.1974, allocations: 1.563 MB / 0.5071 GB, free: 7.391 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.1975, allocations: 0 / 0.5071 GB, free: 7.391 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001343/0.1988, allocations: 0.9055 MB / 0.508 GB, free: 6.434 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009091/0.1997, allocations: 186.6 kB / 0.5082 GB, free: 6.254 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004029/0.2038, allocations: 2.563 MB / 0.5107 GB, free: 3.645 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009446/0.2047, allocations: 1.115 MB / 0.5118 GB, free: 2.504 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006287/0.2054, allocations: 210.5 kB / 0.512 GB, free: 2.293 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001848/0.2056, allocations: 55.44 kB / 0.512 GB, free: 2.238 MB / 398.1 MB Notification: Performance of SimCode: time 1.904e-06/0.2056, allocations: 4 kB / 0.512 GB, free: 2.234 MB / 398.1 MB Notification: Performance of Templates: time 0.2229/0.4284, allocations: 10.95 MB / 0.5227 GB, free: 68.74 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