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.001714/0.001724, allocations: 111.5 kB / 17.69 MB, free: 5.438 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.002085/0.002085, allocations: 188 kB / 18.63 MB, free: 4.508 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.799/1.799, 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.206/0.206, allocations: 38.03 MB / 330.5 MB, free: 8.801 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001387/0.001387, allocations: 65.42 kB / 400.3 MB, free: 33.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1717/0.1731, allocations: 58.06 MB / 458.3 MB, free: 7.359 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.01085/0.184, allocations: 7.566 MB / 465.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005179/0.1892, allocations: 2.317 MB / 468.2 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005981/0.1899, allocations: 39.75 kB / 468.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002461/0.1924, allocations: 0.8507 MB / 469.1 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001606/0.194, allocations: 0.5092 MB / 469.6 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001741/0.1957, allocations: 451 kB / 470 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002246/0.198, allocations: 1.313 MB / 471.4 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001226/0.1992, allocations: 0.6815 MB / 472 MB, free: 9.582 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001126/0.2004, allocations: 0.5758 MB / 472.6 MB, free: 9.004 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001144/0.2015, allocations: 0.6891 MB / 473.3 MB, free: 8.312 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001363/0.2017, allocations: 84 kB / 473.4 MB, free: 8.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006811/0.2024, allocations: 263.7 kB / 473.6 MB, free: 7.973 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005414/0.2029, allocations: 0.5026 MB / 474.1 MB, free: 7.469 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006284/0.2036, allocations: 0.552 MB / 474.7 MB, free: 6.914 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001665/0.2052, allocations: 1.316 MB / 476 MB, free: 5.594 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.787e-06/0.2053, allocations: 4 kB / 476 MB, free: 5.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.915e-06/0.2053, allocations: 0 / 476 MB, free: 5.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.338e-05/0.2053, allocations: 0 / 476 MB, free: 5.59 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.00317/0.2085, allocations: 1.339 MB / 477.4 MB, free: 4.191 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.208e-05/0.2085, allocations: 11.89 kB / 477.4 MB, free: 4.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00115/0.2097, allocations: 167.5 kB / 477.5 MB, free: 4.016 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001565/0.2113, allocations: 0.7466 MB / 478.3 MB, free: 3.227 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.098e-05/0.2114, allocations: 62.38 kB / 478.3 MB, free: 3.168 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000244/0.2116, allocations: 104.1 kB / 478.4 MB, free: 3.066 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001962/0.2136, allocations: 1.219 MB / 479.7 MB, free: 1.773 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.645e-05/0.2136, allocations: 11.84 kB / 479.7 MB, free: 1.762 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.97e-05/0.2137, allocations: 36 kB / 479.7 MB, free: 1.727 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002592/0.214, allocations: 61.97 kB / 479.8 MB, free: 1.668 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001631/0.2156, allocations: 1.015 MB / 480.8 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006828/0.2225, allocations: 4.748 MB / 485.5 MB, free: 11.7 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001184/0.2237, allocations: 0.6725 MB / 486.2 MB, free: 11.01 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006789/0.2244, allocations: 451.8 kB / 486.6 MB, free: 10.56 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.653e-05/0.2245, allocations: 8.547 kB / 486.6 MB, free: 10.55 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008558/0.2253, allocations: 0.5042 MB / 487.2 MB, free: 10.02 MB / 366.1 MB Notification: Performance of pre-optimization done (n=69): time 3.276e-06/0.2253, allocations: 4 kB / 487.2 MB, free: 10.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=73): time 0.004826/0.2302, allocations: 2.772 MB / 489.9 MB, free: 7.16 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001503/0.2303, allocations: 178.8 kB / 490.1 MB, free: 6.949 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007903/0.2311, allocations: 0.586 MB / 490.7 MB, free: 6.352 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.898e-05/0.2312, allocations: 45.64 kB / 490.7 MB, free: 6.301 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004295/0.2317, allocations: 482.8 kB / 491.2 MB, free: 5.82 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002588/0.2319, allocations: 256.5 kB / 491.5 MB, free: 5.566 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002898/0.2322, allocations: 170.6 kB / 491.6 MB, free: 5.395 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002595/0.2325, allocations: 394.7 kB / 492 MB, free: 5 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006007/0.2331, allocations: 377.8 kB / 492.4 MB, free: 4.629 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008303/0.2339, allocations: 0.6307 MB / 493 MB, free: 3.883 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.007109/0.2411, allocations: 3.446 MB / 496.5 MB, free: 268 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.046e-05/0.2411, allocations: 4 kB / 496.5 MB, free: 264 kB / 366.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.00259/0.2437, allocations: 1.344 MB / 497.8 MB, free: 14.89 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.971e-05/0.2438, allocations: 37.83 kB / 497.8 MB, free: 14.85 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.05e-05/0.2438, allocations: 15.98 kB / 497.9 MB, free: 14.83 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007297/0.2445, allocations: 246.3 kB / 498.1 MB, free: 14.58 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001107/0.2457, allocations: 263.6 kB / 498.4 MB, free: 14.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006857/0.2525, allocations: 6.077 MB / 0.4926 GB, free: 7.828 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008025/0.2534, allocations: 35.98 kB / 0.4926 GB, free: 7.793 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.578e-05/0.2535, allocations: 40 kB / 0.4927 GB, free: 7.754 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.0008624/0.2543, allocations: 379.1 kB / 0.493 GB, free: 7.367 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001732/0.2545, allocations: 83 kB / 0.4931 GB, free: 7.285 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002312/0.2568, allocations: 1.141 MB / 0.4942 GB, free: 6.113 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.296e-05/0.2569, allocations: 8 kB / 0.4942 GB, free: 6.105 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.755e-06/0.2569, allocations: 4 kB / 0.4942 GB, free: 6.102 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.342e-05/0.2569, allocations: 3.984 kB / 0.4942 GB, free: 6.098 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004369/0.2613, allocations: 2.25 MB / 0.4964 GB, free: 3.758 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.438e-06/0.2613, allocations: 4 kB / 0.4964 GB, free: 3.754 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009505/0.2623, allocations: 183.8 kB / 0.4966 GB, free: 3.574 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008223/0.2631, allocations: 254.3 kB / 0.4969 GB, free: 3.316 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.535e-05/0.2632, allocations: 27.86 kB / 0.4969 GB, free: 3.289 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008083/0.2713, allocations: 6.019 MB / 0.5028 GB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.011e-06/0.2713, allocations: 4.031 kB / 0.5028 GB, free: 12.85 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003135/0.2745, allocations: 1.643 MB / 0.5044 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002995/0.2748, allocations: 144.2 kB / 0.5045 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001117/0.2749, allocations: 20.14 kB / 0.5045 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004188/0.2754, allocations: 31.95 kB / 0.5046 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002065/0.2756, allocations: 60.36 kB / 0.5046 GB, free: 10.89 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.067e-05/0.2756, allocations: 24 kB / 0.5046 GB, free: 10.86 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006264/0.2763, allocations: 419 kB / 0.505 GB, free: 10.46 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2763, allocations: 4 kB / 0.5051 GB, free: 10.46 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001419/0.2777, allocations: 272 kB / 0.5053 GB, free: 10.19 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.0003261/0.278, allocations: 123.2 kB / 0.5054 GB, free: 10.06 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002746/0.2808, allocations: 1.396 MB / 0.5068 GB, free: 8.617 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.2808, allocations: 4 kB / 0.5068 GB, free: 8.613 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00158/0.2824, allocations: 0.9084 MB / 0.5077 GB, free: 7.656 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001/0.2834, allocations: 188.6 kB / 0.5079 GB, free: 7.477 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004176/0.2876, allocations: 2.161 MB / 0.51 GB, free: 5.266 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008973/0.2885, allocations: 1.122 MB / 0.5111 GB, free: 4.117 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005745/0.2891, allocations: 206.5 kB / 0.5113 GB, free: 3.91 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001737/0.2893, allocations: 59.42 kB / 0.5113 GB, free: 3.852 MB / 398.1 MB Notification: Performance of SimCode: time 1.603e-06/0.2893, allocations: 0 / 0.5113 GB, free: 3.852 MB / 398.1 MB Notification: Performance of Templates: time 0.3563/0.6456, allocations: 10.97 MB / 0.522 GB, free: 69.32 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 cvode -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