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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001129/0.001129, allocations: 181.5 kB / 8.131 MB, free: 2.074 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.408/1.408, allocations: 205.2 MB / 213.7 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009182/0.0009182, allocations: 92.3 kB / 261.7 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1677/0.1677, allocations: 37.97 MB / 347.7 MB, free: 7.465 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.396e-06/8.656e-06, allocations: 4 kB / 410 MB, free: 46.85 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1417/0.1417, allocations: 56.32 MB / 466.3 MB, free: 6.465 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3817/0.5235, allocations: 102.9 MB / 0.5559 GB, free: 7.586 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002542/0.5238, allocations: 79.97 kB / 0.556 GB, free: 7.508 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.0756/0.5994, allocations: 25.38 MB / 0.5808 GB, free: 13.82 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.011e-05/0.5995, allocations: 24 kB / 0.5808 GB, free: 13.8 MB / 426.7 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.002164/0.6017, allocations: 1.08 MB / 0.5819 GB, free: 12.66 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.397e-05/0.6017, allocations: 12.78 kB / 0.5819 GB, free: 12.65 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001227/0.603, allocations: 182.6 kB / 0.582 GB, free: 12.47 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003919/0.6069, allocations: 1.374 MB / 0.5834 GB, free: 11.05 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.385e-05/0.607, allocations: 28 kB / 0.5834 GB, free: 11.02 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001486/0.6071, allocations: 55.94 kB / 0.5835 GB, free: 10.97 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001579/0.6087, allocations: 0.8433 MB / 0.5843 GB, free: 10.12 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001786/0.6105, allocations: 1.085 MB / 0.5854 GB, free: 8.969 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.871e-05/0.6106, allocations: 4 kB / 0.5854 GB, free: 8.965 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.386e-05/0.6106, allocations: 7.938 kB / 0.5854 GB, free: 8.957 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000102/0.6108, allocations: 53.97 kB / 0.5854 GB, free: 8.902 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006575/0.6173, allocations: 4.532 MB / 0.5898 GB, free: 4.191 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001184/0.6186, allocations: 0.624 MB / 0.5904 GB, free: 3.547 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006854/0.6193, allocations: 464.2 kB / 0.5909 GB, free: 3.086 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.316e-05/0.6193, allocations: 12.64 kB / 0.5909 GB, free: 3.074 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007461/0.6201, allocations: 0.5005 MB / 0.5914 GB, free: 2.547 MB / 426.7 MB Notification: Performance of pre-optimization done (n=73): time 2.515e-06/0.6201, allocations: 0 / 0.5914 GB, free: 2.547 MB / 426.7 MB Notification: Performance of matching and sorting (n=77): time 0.004579/0.6247, allocations: 2.382 MB / 0.5937 GB, free: 104 kB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001137/0.6248, allocations: 166.9 kB / 0.5939 GB, free: 15.9 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006024/0.6254, allocations: 454.4 kB / 0.5943 GB, free: 15.45 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.475e-05/0.6255, allocations: 25.7 kB / 0.5943 GB, free: 15.42 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003092/0.6258, allocations: 387 kB / 0.5947 GB, free: 15.04 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002734/0.6261, allocations: 260.3 kB / 0.595 GB, free: 14.78 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.92e-05/0.6261, allocations: 4 kB / 0.595 GB, free: 14.77 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002241/0.6264, allocations: 386.8 kB / 0.5953 GB, free: 14.39 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005674/0.627, allocations: 373.9 kB / 0.5957 GB, free: 14.02 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007247/0.6277, allocations: 0.6119 MB / 0.5963 GB, free: 13.3 MB / 442.7 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.01048/0.6382, allocations: 3.322 MB / 0.5995 GB, free: 9.93 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.453e-06/0.6382, allocations: 4 kB / 0.5995 GB, free: 9.926 MB / 442.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002366/0.6406, allocations: 1.257 MB / 0.6008 GB, free: 8.652 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.758e-05/0.6406, allocations: 11.98 kB / 0.6008 GB, free: 8.641 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.523e-05/0.6406, allocations: 8 kB / 0.6008 GB, free: 8.633 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006653/0.6413, allocations: 242.4 kB / 0.601 GB, free: 8.387 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001174/0.6425, allocations: 251.7 kB / 0.6012 GB, free: 8.141 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005251/0.6477, allocations: 5.303 MB / 0.6064 GB, free: 2.496 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006658/0.6484, allocations: 23.92 kB / 0.6064 GB, free: 2.473 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.33e-05/0.6485, allocations: 35.98 kB / 0.6065 GB, free: 2.438 MB / 442.7 MB Warning: Assuming redundant initial conditions for the following 3 initial equations: 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: 34 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$whenCondition1,$PRE.relayNet.cnt,relayNet.cnt,$whenCondition2,switch.control[1],$PRE.switch.t0,switch.t0,$PRE.switch.open,switch.open,$PRE.switch.closed,switch.closed,$PRE.relayNet.y[1],relayNet.y[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (97): * Single equations (assignments): 91 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 7,(1,100.0%) 7,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002988/0.6488, allocations: 183.9 kB / 0.6067 GB, free: 2.246 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001234/0.649, allocations: 79.06 kB / 0.6067 GB, free: 2.168 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002152/0.6511, allocations: 1.111 MB / 0.6078 GB, free: 1.035 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.523e-05/0.6511, allocations: 8 kB / 0.6078 GB, free: 1.027 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.6512, allocations: 4 kB / 0.6078 GB, free: 1.023 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.079e-05/0.6512, allocations: 7.984 kB / 0.6078 GB, free: 1.016 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003646/0.6548, allocations: 2.171 MB / 0.61 GB, free: 14.76 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.6548, allocations: 4.281 kB / 0.61 GB, free: 14.76 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009784/0.6558, allocations: 175.8 kB / 0.6101 GB, free: 14.59 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007317/0.6566, allocations: 250.3 kB / 0.6104 GB, free: 14.33 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.553e-05/0.6567, allocations: 15.98 kB / 0.6104 GB, free: 14.32 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004645/0.6613, allocations: 5.239 MB / 0.6155 GB, free: 8.73 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.6613, allocations: 4 kB / 0.6155 GB, free: 8.727 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002607/0.6639, allocations: 1.788 MB / 0.6172 GB, free: 6.816 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002166/0.6642, allocations: 148.2 kB / 0.6174 GB, free: 6.652 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000134/0.6643, allocations: 11.91 kB / 0.6174 GB, free: 6.641 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00045/0.6648, allocations: 19.97 kB / 0.6174 GB, free: 6.621 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001328/0.6649, allocations: 48.59 kB / 0.6175 GB, free: 6.574 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.096e-05/0.665, allocations: 23.98 kB / 0.6175 GB, free: 6.551 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.0004445/0.6654, allocations: 355.2 kB / 0.6178 GB, free: 6.207 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001213/0.6667, allocations: 279.9 kB / 0.6181 GB, free: 5.934 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 48 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 7,(1,100.0%) 7,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003445/0.667, allocations: 183.1 kB / 0.6183 GB, free: 5.746 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002053/0.6691, allocations: 1.292 MB / 0.6195 GB, free: 4.422 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.6691, allocations: 4 kB / 0.6195 GB, free: 4.418 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001415/0.6705, allocations: 0.8454 MB / 0.6204 GB, free: 3.539 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007743/0.6713, allocations: 150.9 kB / 0.6205 GB, free: 3.391 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00345/0.6748, allocations: 1.859 MB / 0.6223 GB, free: 1.453 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009687/0.6757, allocations: 1.181 MB / 0.6235 GB, free: 248 kB / 458.7 MB Notification: Performance of SimCode: time 1.693e-06/0.6758, allocations: 0 / 0.6235 GB, free: 248 kB / 458.7 MB Notification: Performance of Templates: time 0.02048/0.6962, allocations: 11.39 MB / 0.6346 GB, free: 4.855 MB / 474.7 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","../files/PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches