Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.Tline.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.AC3ph.Transmission.Tline,tolerance=1e-06,outputFormat="mat",numberOfIntervals=80000,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.AC3ph.Transmission.Tline") translateModel(PowerSystems.Examples.AC3ph.Transmission.Tline,tolerance=1e-06,outputFormat="mat",numberOfIntervals=80000,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.AC3ph.Transmission.Tline") [: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.001455/0.001456, allocations: 179.1 kB / 8.132 MB, free: 2.199 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.213/1.213, allocations: 205.2 MB / 213.7 MB, free: 13.86 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.0009813/0.0009815, allocations: 89.05 kB / 261.7 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2234/0.2234, allocations: 37.97 MB / 347.7 MB, free: 7.469 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 9.367e-06/9.408e-06, allocations: 4 kB / 410 MB, free: 46.84 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1089, allocations: 56.31 MB / 466.3 MB, free: 6.465 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3172/0.4261, allocations: 106.8 MB / 0.5597 GB, free: 3.711 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003206/0.4265, allocations: 91.94 kB / 0.5598 GB, free: 3.621 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.0801/0.5066, allocations: 29.06 MB / 0.5882 GB, free: 6.281 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.04e-05/0.5067, allocations: 24 kB / 0.5882 GB, free: 6.258 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: 305 * Number of variables: 305 Notification: Performance of Generate backend data structure: time 0.003907/0.5107, allocations: 1.513 MB / 0.5897 GB, free: 4.66 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.894e-05/0.5107, allocations: 8.031 kB / 0.5897 GB, free: 4.652 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001645/0.5124, allocations: 226.2 kB / 0.5899 GB, free: 4.43 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004988/0.5174, allocations: 1.612 MB / 0.5915 GB, free: 2.766 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.13e-05/0.5175, allocations: 47.98 kB / 0.5915 GB, free: 2.719 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002461/0.5178, allocations: 75.91 kB / 0.5916 GB, free: 2.645 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002417/0.5202, allocations: 1.352 MB / 0.5929 GB, free: 1.289 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00237/0.5226, allocations: 1.526 MB / 0.5944 GB, free: 15.68 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.552e-05/0.5226, allocations: 11.88 kB / 0.5944 GB, free: 15.67 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001182/0.5227, allocations: 8 kB / 0.5944 GB, free: 15.66 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002997/0.523, allocations: 73.89 kB / 0.5945 GB, free: 15.59 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0171/0.5402, allocations: 7.669 MB / 0.602 GB, free: 7.777 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001907/0.5421, allocations: 1.299 MB / 0.6033 GB, free: 6.461 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001545/0.5437, allocations: 1.181 MB / 0.6044 GB, free: 5.277 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000133/0.5438, allocations: 20.98 kB / 0.6044 GB, free: 5.258 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002276/0.5461, allocations: 1.648 MB / 0.6061 GB, free: 3.582 MB / 442.7 MB Notification: Performance of pre-optimization done (n=177): time 3.847e-06/0.5461, allocations: 0 / 0.6061 GB, free: 3.582 MB / 442.7 MB Notification: Performance of matching and sorting (n=178): time 0.0211/0.5673, allocations: 7.208 MB / 0.6131 GB, free: 12.28 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000214/0.5675, allocations: 254.8 kB / 0.6133 GB, free: 11.98 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00116/0.5687, allocations: 0.5306 MB / 0.6139 GB, free: 11.44 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006719/0.5694, allocations: 41.7 kB / 0.6139 GB, free: 11.39 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003406/0.5697, allocations: 392.7 kB / 0.6143 GB, free: 11 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000732/0.5705, allocations: 0.563 MB / 0.6148 GB, free: 10.43 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001254/0.5706, allocations: 0 / 0.6148 GB, free: 10.43 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002245/0.5708, allocations: 434.6 kB / 0.6152 GB, free: 9.996 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001748/0.5726, allocations: 1.234 MB / 0.6164 GB, free: 8.762 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001962/0.5746, allocations: 1.487 MB / 0.6179 GB, free: 7.195 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002/0.5766, allocations: 1.353 MB / 0.6192 GB, free: 5.844 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.965e-06/0.5766, allocations: 4 kB / 0.6192 GB, free: 5.84 MB / 458.7 MB Notification: Performance of matching and sorting (n=251) (initialization): time 0.02389/0.6005, allocations: 6.76 MB / 0.6258 GB, free: 15.06 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.094e-05/0.6006, allocations: 4 kB / 0.6258 GB, free: 15.05 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01861/0.6192, allocations: 5.584 MB / 0.6313 GB, free: 9.465 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02587/0.6451, allocations: 6.614 MB / 0.6377 GB, free: 2.844 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000773/0.6459, allocations: 151.7 kB / 0.6379 GB, free: 2.695 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2255/0.8714, allocations: 20.56 MB / 0.658 GB, free: 187.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001522/0.873, allocations: 109.9 kB / 0.6581 GB, free: 187.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000298/0.8733, allocations: 204.9 kB / 0.6583 GB, free: 187.1 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 91 (system.initime,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$whenCondition26,$whenCondition25,$whenCondition24,$whenCondition23,$whenCondition22,$whenCondition21,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.breaker1.breaker_a.arc,breaker1.breaker_a.arc,$PRE.breaker1.breaker_a.open,breaker1.breaker_a.open,breaker1.breaker_a.closed,$PRE.breaker1.breaker_a.t0,breaker1.breaker_a.t0,breaker1.breaker_a.opening,$PRE.breaker1.breaker_b.arc,breaker1.breaker_b.arc,$PRE.breaker1.breaker_b.open,breaker1.breaker_b.open,breaker1.breaker_b.closed,$PRE.breaker1.breaker_b.t0,breaker1.breaker_b.t0,breaker1.breaker_b.opening,$PRE.breaker1.breaker_c.arc,breaker1.breaker_c.arc,$PRE.breaker1.breaker_c.open,breaker1.breaker_c.open,breaker1.breaker_c.closed,$PRE.breaker1.breaker_c.t0,breaker1.breaker_c.t0,breaker1.breaker_c.opening,$PRE.breaker2.breaker_a.arc,breaker2.breaker_a.arc,$PRE.breaker2.breaker_a.open,breaker2.breaker_a.open,breaker2.breaker_a.closed,$PRE.breaker2.breaker_a.t0,breaker2.breaker_a.t0,breaker2.breaker_a.opening,$PRE.breaker2.breaker_b.arc,breaker2.breaker_b.arc,$PRE.breaker2.breaker_b.open,breaker2.breaker_b.open,breaker2.breaker_b.closed,$PRE.breaker2.breaker_b.t0,breaker2.breaker_b.t0,breaker2.breaker_b.opening,$PRE.breaker2.breaker_c.arc,breaker2.breaker_c.arc,$PRE.breaker2.breaker_c.open,breaker2.breaker_c.open,breaker2.breaker_c.closed,$PRE.breaker2.breaker_c.t0,breaker2.breaker_c.t0,breaker2.breaker_c.opening,$PRE.relay1.y[1],relay1.y[1],$PRE.relay1.y[2],relay1.y[2],$PRE.relay1.y[3],relay1.y[3],$PRE.relay2.y[1],relay2.y[1],$PRE.relay2.y[2],relay2.y[2],$PRE.relay2.y[3],relay2.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (158): * Single equations (assignments): 152 * Array equations: 3 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {27 48} Notification: Performance of prepare postOptimizeDAE: time 0.0005401/0.8739, allocations: 240.2 kB / 0.6585 GB, free: 186.9 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003449/0.8742, allocations: 121.6 kB / 0.6586 GB, free: 186.9 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01536/0.8896, allocations: 4.835 MB / 0.6633 GB, free: 185.7 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.524e-05/0.8897, allocations: 34.06 kB / 0.6634 GB, free: 185.7 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.341e-05/0.8897, allocations: 4.344 kB / 0.6634 GB, free: 185.7 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.838e-05/0.8898, allocations: 12.77 kB / 0.6634 GB, free: 185.7 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01999/0.9098, allocations: 7.392 MB / 0.6706 GB, free: 183.5 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.154e-05/0.9099, allocations: 2.312 kB / 0.6706 GB, free: 183.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001007/0.9109, allocations: 140.1 kB / 0.6707 GB, free: 183.4 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02759/0.9385, allocations: 6.776 MB / 0.6773 GB, free: 182.5 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001057/0.9396, allocations: 246.5 kB / 0.6776 GB, free: 182.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.019/0.9586, allocations: 19.02 MB / 0.6962 GB, free: 164.9 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.694e-06/0.9587, allocations: 7.75 kB / 0.6962 GB, free: 164.9 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01753/0.9762, allocations: 6.24 MB / 0.7023 GB, free: 159.4 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005085/0.9768, allocations: 190.2 kB / 0.7024 GB, free: 159.2 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000537/0.9773, allocations: 203.9 kB / 0.7026 GB, free: 159 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001162/0.9785, allocations: 103.5 kB / 0.7027 GB, free: 158.9 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000506/0.979, allocations: 191.9 kB / 0.7029 GB, free: 158.8 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002905/0.9793, allocations: 217.4 kB / 0.7031 GB, free: 158.7 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0005276/0.9798, allocations: 407.7 kB / 0.7035 GB, free: 158.3 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00265/0.9825, allocations: 0.5917 MB / 0.7041 GB, free: 157.7 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 21 (line.v[1,1],line.v[1,2],line.v[1,3],line.v[2,1],line.v[2,2],line.v[2,3],line.v[3,1],line.v[3,2],line.v[3,3],line.i[1,1],line.i[1,2],line.i[1,3],line.i[1,4],line.i[2,1],line.i[2,2],line.i[2,3],line.i[2,4],line.i[3,1],line.i[3,2],line.i[3,3],line.i[3,4]) * Number of discrete variables: 65 (breaker1.breaker_c.closed,breaker1.breaker_b.closed,breaker1.breaker_a.closed,breaker2.breaker_b.closed,breaker2.breaker_a.closed,breaker2.breaker_c.closed,$whenCondition26,$whenCondition25,$whenCondition24,$whenCondition23,$whenCondition22,$whenCondition21,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,breaker1.breaker_a.arc,breaker1.breaker_a.open,breaker1.breaker_a.t0,breaker1.breaker_a.opening,breaker1.breaker_b.arc,breaker1.breaker_b.open,breaker1.breaker_b.t0,breaker1.breaker_b.opening,breaker1.breaker_c.arc,breaker1.breaker_c.open,breaker1.breaker_c.t0,breaker1.breaker_c.opening,breaker2.breaker_a.arc,breaker2.breaker_a.open,breaker2.breaker_a.t0,breaker2.breaker_a.opening,breaker2.breaker_b.arc,breaker2.breaker_b.open,breaker2.breaker_b.t0,breaker2.breaker_b.opening,breaker2.breaker_c.arc,breaker2.breaker_c.open,breaker2.breaker_c.t0,breaker2.breaker_c.opening,relay1.y[1],relay1.y[2],relay1.y[3],relay1.cnt,relay2.y[1],relay2.y[2],relay2.y[3],relay2.cnt,system.initime) * Number of discrete states: 22 (breaker1.breaker_a.arc,breaker1.breaker_b.arc,breaker1.breaker_c.arc,breaker2.breaker_a.arc,breaker2.breaker_b.arc,breaker2.breaker_c.arc,relay2.y[3],relay2.y[2],relay2.y[1],relay2.cnt,$whenCondition2,relay1.y[3],relay1.y[2],relay1.y[1],relay1.cnt,$whenCondition1,breaker2.breaker_a.open,breaker2.breaker_c.open,breaker2.breaker_b.open,breaker1.breaker_b.open,breaker1.breaker_c.open,breaker1.breaker_a.open) * Top-level inputs: 0 Notification: Strong component statistics for simulation (132): * Single equations (assignments): 106 * Array equations: 3 * Algorithm blocks: 2 * Record equations: 0 * When equations: 13 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {12,9} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005511/0.9831, allocations: 240.7 kB / 0.7043 GB, free: 157.5 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.007551/0.9906, allocations: 3.733 MB / 0.708 GB, free: 154.2 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.874e-06/0.9907, allocations: 3.922 kB / 0.708 GB, free: 154.2 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005247/0.9959, allocations: 3.099 MB / 0.711 GB, free: 151.3 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001192/0.9971, allocations: 158.2 kB / 0.7111 GB, free: 151.2 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009087/1.006, allocations: 4.69 MB / 0.7157 GB, free: 146.8 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001039/1.007, allocations: 1.362 MB / 0.7171 GB, free: 145.5 MB / 474.7 MB Notification: Performance of SimCode: time 8.92e-07/1.007, allocations: 0 / 0.7171 GB, free: 145.5 MB / 474.7 MB Notification: Performance of Templates: time 0.05848/1.066, allocations: 42.79 MB / 0.7588 GB, free: 103.1 MB / 474.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.Tline.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.Tline.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.Tline.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.Tline.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.Tline.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.Tline -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.Tline.pipe 2>&1)