Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Transmission.RXline,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline") translateModel(PowerSystems.Examples.AC3ph.Transmission.RXline,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline") [: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.2+maint.om/package.mo): time 0.001156/0.001157, allocations: 190 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.2+maint.om/package.mo): time 1.21/1.21, allocations: 194.2 MB / 202.8 MB, free: 8.668 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001778/0.001778, allocations: 118 kB / 247.7 MB, free: 6.375 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.2618/0.2618, allocations: 37.91 MB / 330.5 MB, free: 6.914 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 8.446e-06/8.787e-06, allocations: 4 kB / 389.8 MB, free: 78.12 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1108, allocations: 53.23 MB / 443 MB, free: 24.98 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3529/0.4637, allocations: 96.84 MB / 0.5272 GB, free: 9.051 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002587/0.4641, allocations: 85.64 kB / 0.5273 GB, free: 9.039 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.06134/0.5255, allocations: 21.48 MB / 0.5483 GB, free: 8.77 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.339e-05/0.5256, allocations: 31.92 kB / 0.5483 GB, free: 8.738 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 242 * Number of variables: 242 Notification: Performance of Generate backend data structure: time 0.003511/0.5291, allocations: 1.151 MB / 0.5494 GB, free: 7.574 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.99e-05/0.5292, allocations: 8.031 kB / 0.5494 GB, free: 7.566 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001278/0.5305, allocations: 166.5 kB / 0.5496 GB, free: 7.402 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00395/0.5344, allocations: 1.206 MB / 0.5508 GB, free: 6.367 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.289e-05/0.5346, allocations: 39.55 kB / 0.5508 GB, free: 6.332 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002812/0.5348, allocations: 52 kB / 0.5509 GB, free: 6.281 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002086/0.5369, allocations: 1.028 MB / 0.5519 GB, free: 5.582 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002054/0.539, allocations: 1.169 MB / 0.553 GB, free: 4.641 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.289e-05/0.5391, allocations: 4 kB / 0.553 GB, free: 4.637 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.737e-05/0.5392, allocations: 11.91 kB / 0.553 GB, free: 4.625 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.023e-05/0.5393, allocations: 57.59 kB / 0.5531 GB, free: 4.574 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007114/0.5464, allocations: 4.42 MB / 0.5574 GB, free: 0.7422 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001241/0.5476, allocations: 0.7857 MB / 0.5582 GB, free: 196 kB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008912/0.5486, allocations: 0.6262 MB / 0.5588 GB, free: 15.79 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.179e-05/0.5486, allocations: 13.58 kB / 0.5588 GB, free: 15.78 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001116/0.5498, allocations: 0.8037 MB / 0.5596 GB, free: 15.15 MB / 378.7 MB Notification: Performance of pre-optimization done (n=126): time 3.807e-06/0.5498, allocations: 0 / 0.5596 GB, free: 15.15 MB / 378.7 MB Notification: Performance of matching and sorting (n=127): time 0.004853/0.5546, allocations: 2.749 MB / 0.5622 GB, free: 12.94 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001308/0.5548, allocations: 242.6 kB / 0.5625 GB, free: 12.66 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005217/0.5553, allocations: 391.5 kB / 0.5629 GB, free: 12.34 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.79e-05/0.5554, allocations: 33.08 kB / 0.5629 GB, free: 12.31 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004037/0.5558, allocations: 334.3 kB / 0.5632 GB, free: 12.01 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003757/0.5562, allocations: 367.3 kB / 0.5636 GB, free: 11.7 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.693e-05/0.5563, allocations: 0 / 0.5636 GB, free: 11.7 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001927/0.5565, allocations: 395.2 kB / 0.5639 GB, free: 11.33 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007548/0.5572, allocations: 0.5115 MB / 0.5644 GB, free: 11 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008926/0.5581, allocations: 0.7416 MB / 0.5652 GB, free: 10.37 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001001/0.5592, allocations: 0.599 MB / 0.5657 GB, free: 9.941 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.734e-06/0.5592, allocations: 4 kB / 0.5657 GB, free: 9.938 MB / 378.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.003874/0.5631, allocations: 1.908 MB / 0.5676 GB, free: 8.434 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.06e-05/0.5631, allocations: 4 kB / 0.5676 GB, free: 8.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003231/0.5663, allocations: 1.606 MB / 0.5692 GB, free: 7.223 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002161/0.5685, allocations: 0.6386 MB / 0.5698 GB, free: 6.645 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000527/0.5691, allocations: 135.7 kB / 0.5699 GB, free: 6.512 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008801/0.5779, allocations: 5.364 MB / 0.5752 GB, free: 1.023 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007816/0.5787, allocations: 31.97 kB / 0.5752 GB, free: 0.9922 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001335/0.5788, allocations: 47.98 kB / 0.5752 GB, free: 0.9453 MB / 378.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: 67 (system.initime,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.switch1.switch_a.arc,switch1.switch_a.arc,$PRE.switch1.switch_a.open,switch1.switch_a.open,switch1.switch_a.closed,$PRE.switch1.switch_b.arc,switch1.switch_b.arc,$PRE.switch1.switch_b.open,switch1.switch_b.open,switch1.switch_b.closed,$PRE.switch1.switch_c.arc,switch1.switch_c.arc,$PRE.switch1.switch_c.open,switch1.switch_c.open,switch1.switch_c.closed,$PRE.switch2.switch_a.arc,switch2.switch_a.arc,$PRE.switch2.switch_a.open,switch2.switch_a.open,switch2.switch_a.closed,$PRE.switch2.switch_b.arc,switch2.switch_b.arc,$PRE.switch2.switch_b.open,switch2.switch_b.open,switch2.switch_b.closed,$PRE.switch2.switch_c.arc,switch2.switch_c.arc,$PRE.switch2.switch_c.open,switch2.switch_c.open,switch2.switch_c.closed,$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 (122): * Single equations (assignments): 116 * 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: 1 {(7,100.0%) 29} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004226/0.5793, allocations: 221.4 kB / 0.5755 GB, free: 0.707 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003512/0.5796, allocations: 86.95 kB / 0.5755 GB, free: 0.6211 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002474/0.5821, allocations: 1.292 MB / 0.5768 GB, free: 15.32 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.1e-05/0.5822, allocations: 20 kB / 0.5768 GB, free: 15.3 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.5822, allocations: 0 / 0.5768 GB, free: 15.3 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.05e-05/0.5822, allocations: 11.88 kB / 0.5768 GB, free: 15.29 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005275/0.5875, allocations: 2.765 MB / 0.5795 GB, free: 12.42 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.09e-05/0.5875, allocations: 4 kB / 0.5795 GB, free: 12.42 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001161/0.5887, allocations: 212 kB / 0.5797 GB, free: 12.21 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-05/0.5887, allocations: 12 kB / 0.5797 GB, free: 12.2 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.489e-05/0.5888, allocations: 15.98 kB / 0.5798 GB, free: 12.18 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.598e-06/0.5888, allocations: 8 kB / 0.5798 GB, free: 12.18 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.568e-06/0.5889, allocations: 7.938 kB / 0.5798 GB, free: 12.17 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003554/0.5924, allocations: 2.392 MB / 0.5821 GB, free: 9.641 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003394/0.5928, allocations: 160.1 kB / 0.5823 GB, free: 9.465 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002288/0.593, allocations: 19.98 kB / 0.5823 GB, free: 9.445 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006055/0.5936, allocations: 31.95 kB / 0.5823 GB, free: 9.414 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002716/0.5939, allocations: 108.6 kB / 0.5824 GB, free: 9.305 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.325e-05/0.594, allocations: 35.98 kB / 0.5825 GB, free: 9.27 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0004233/0.5944, allocations: 290.9 kB / 0.5827 GB, free: 8.984 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001392/0.5958, allocations: 268 kB / 0.583 GB, free: 8.723 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 3 (line.i[1],line.i[2],line.i[3]) * Number of discrete variables: 47 (switch1.switch_b.closed,switch1.switch_c.closed,switch1.switch_a.closed,switch2.switch_a.closed,switch2.switch_b.closed,switch2.switch_c.closed,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,switch1.switch_a.arc,switch1.switch_a.open,switch1.switch_b.arc,switch1.switch_b.open,switch1.switch_c.arc,switch1.switch_c.open,switch2.switch_a.arc,switch2.switch_a.open,switch2.switch_b.arc,switch2.switch_b.open,switch2.switch_c.arc,switch2.switch_c.open,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: 16 (relay2.y[3],relay2.y[2],relay2.y[1],relay2.cnt,$whenCondition2,relay1.y[3],relay1.y[2],relay1.y[1],relay1.cnt,$whenCondition1,switch2.switch_c.open,switch2.switch_a.open,switch2.switch_b.open,switch1.switch_b.open,switch1.switch_c.open,switch1.switch_a.open) * Top-level inputs: 0 Notification: Strong component statistics for simulation (100): * Single equations (assignments): 88 * Array equations: 3 * Algorithm blocks: 2 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004343/0.5963, allocations: 190.8 kB / 0.5832 GB, free: 8.523 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003117/0.5994, allocations: 1.69 MB / 0.5848 GB, free: 6.816 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.751e-06/0.5994, allocations: 0 / 0.5848 GB, free: 6.816 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001423/0.6009, allocations: 0.9875 MB / 0.5858 GB, free: 5.812 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007211/0.6016, allocations: 89.91 kB / 0.5859 GB, free: 5.727 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004455/0.6061, allocations: 1.948 MB / 0.5878 GB, free: 3.707 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001217/0.6073, allocations: 1.182 MB / 0.5889 GB, free: 2.496 MB / 394.7 MB Notification: Performance of SimCode: time 1.282e-06/0.6073, allocations: 0 / 0.5889 GB, free: 2.496 MB / 394.7 MB Notification: Performance of Templates: time 0.0262/0.6335, allocations: 13.22 MB / 0.6018 GB, free: 5.301 MB / 410.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe 2>&1)