Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.RXline.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Transmission.RXline,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.RXline") translateModel(PowerSystems.Examples.AC3ph.Transmission.RXline,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002476/0.002475, allocations: 190.3 kB / 7.803 MB, free: 2.492 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.949/1.949, allocations: 205.2 MB / 213.4 MB, free: 13.91 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001317/0.001317, allocations: 94.38 kB / 261.4 MB, free: 13.59 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2899/0.2899, allocations: 37.97 MB / 347.3 MB, free: 7.512 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.316e-06/8.415e-06, allocations: 0 / 409.3 MB, free: 47.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1022, allocations: 56.31 MB / 465.6 MB, free: 6.816 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3523/0.4545, allocations: 101.9 MB / 0.5542 GB, free: 8.918 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002991/0.4549, allocations: 91.94 kB / 0.5543 GB, free: 8.828 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.09986/0.5548, allocations: 21.5 MB / 0.5753 GB, free: 3.078 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.573e-05/0.5549, allocations: 20 kB / 0.5753 GB, free: 3.059 MB / 410.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.004102/0.559, allocations: 1.16 MB / 0.5765 GB, free: 1.824 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.168e-05/0.5591, allocations: 8.031 kB / 0.5765 GB, free: 1.816 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001845/0.5609, allocations: 162.6 kB / 0.5766 GB, free: 1.656 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005357/0.5664, allocations: 1.218 MB / 0.5778 GB, free: 408 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.066e-05/0.5665, allocations: 32 kB / 0.5779 GB, free: 376 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002526/0.5668, allocations: 52 kB / 0.5779 GB, free: 324 kB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003324/0.5701, allocations: 1.031 MB / 0.5789 GB, free: 15.29 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003387/0.5735, allocations: 1.177 MB / 0.5801 GB, free: 14.05 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.385e-05/0.5736, allocations: 3.906 kB / 0.5801 GB, free: 14.04 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001314/0.5738, allocations: 7.984 kB / 0.5801 GB, free: 14.04 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001335/0.5739, allocations: 53.98 kB / 0.5801 GB, free: 13.98 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01167/0.5856, allocations: 4.425 MB / 0.5844 GB, free: 9.414 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002158/0.5878, allocations: 0.7772 MB / 0.5852 GB, free: 8.617 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001631/0.5895, allocations: 0.6252 MB / 0.5858 GB, free: 7.984 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.143e-05/0.5896, allocations: 12.66 kB / 0.5858 GB, free: 7.973 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001925/0.5915, allocations: 0.8065 MB / 0.5866 GB, free: 7.133 MB / 426.7 MB Notification: Performance of pre-optimization done (n=126): time 4.528e-06/0.5916, allocations: 0 / 0.5866 GB, free: 7.133 MB / 426.7 MB Notification: Performance of matching and sorting (n=127): time 0.007838/0.5994, allocations: 2.747 MB / 0.5893 GB, free: 4.32 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001873/0.5997, allocations: 242.7 kB / 0.5895 GB, free: 4.035 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000773/0.6004, allocations: 380.9 kB / 0.5899 GB, free: 3.66 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002095/0.6007, allocations: 41.69 kB / 0.5899 GB, free: 3.613 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003831/0.6011, allocations: 374.6 kB / 0.5903 GB, free: 3.242 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006199/0.6017, allocations: 366.9 kB / 0.5906 GB, free: 2.879 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.743e-05/0.6018, allocations: 0 / 0.5906 GB, free: 2.879 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002046/0.602, allocations: 362.8 kB / 0.591 GB, free: 2.516 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001417/0.6035, allocations: 0.507 MB / 0.5915 GB, free: 2.008 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001721/0.6052, allocations: 0.7462 MB / 0.5922 GB, free: 1.176 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001833/0.6071, allocations: 0.6032 MB / 0.5928 GB, free: 0.5742 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.554e-05/0.6071, allocations: 0 / 0.5928 GB, free: 0.5742 MB / 426.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.006882/0.614, allocations: 1.879 MB / 0.5946 GB, free: 14.68 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.178e-05/0.6141, allocations: 4 kB / 0.5946 GB, free: 14.68 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00587/0.62, allocations: 1.605 MB / 0.5962 GB, free: 13.07 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003264/0.6233, allocations: 0.6134 MB / 0.5968 GB, free: 12.46 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001024/0.6244, allocations: 135.7 kB / 0.5969 GB, free: 12.32 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01478/0.6392, allocations: 5.177 MB / 0.602 GB, free: 7.023 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001019/0.6402, allocations: 31.95 kB / 0.602 GB, free: 6.992 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001374/0.6404, allocations: 40 kB / 0.6021 GB, free: 6.953 MB / 442.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 {(9,58.0%) 27} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004342/0.6408, allocations: 155.4 kB / 0.6022 GB, free: 6.785 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003596/0.6412, allocations: 83.05 kB / 0.6023 GB, free: 6.703 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003771/0.645, allocations: 1.292 MB / 0.6035 GB, free: 5.406 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.652e-05/0.6451, allocations: 27.98 kB / 0.6036 GB, free: 5.379 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.6451, allocations: 3.938 kB / 0.6036 GB, free: 5.375 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.644e-05/0.6452, allocations: 4.172 kB / 0.6036 GB, free: 5.371 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008381/0.6536, allocations: 2.768 MB / 0.6063 GB, free: 2.496 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-05/0.6536, allocations: 8.312 kB / 0.6063 GB, free: 2.488 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0023/0.656, allocations: 211.8 kB / 0.6065 GB, free: 2.281 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.484e-05/0.656, allocations: 8 kB / 0.6065 GB, free: 2.273 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002048/0.6562, allocations: 15.98 kB / 0.6065 GB, free: 2.258 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.497e-05/0.6563, allocations: 8 kB / 0.6065 GB, free: 2.25 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.315e-06/0.6563, allocations: 11.94 kB / 0.6065 GB, free: 2.238 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005831/0.6621, allocations: 2.392 MB / 0.6089 GB, free: 15.7 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003328/0.6625, allocations: 152.1 kB / 0.609 GB, free: 15.54 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002758/0.6628, allocations: 19.98 kB / 0.609 GB, free: 15.52 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009252/0.6637, allocations: 35.86 kB / 0.6091 GB, free: 15.48 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003959/0.6642, allocations: 100.6 kB / 0.6092 GB, free: 15.38 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000134/0.6643, allocations: 43.98 kB / 0.6092 GB, free: 15.34 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.0005819/0.6649, allocations: 290.9 kB / 0.6095 GB, free: 15.05 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001818/0.6667, allocations: 264 kB / 0.6097 GB, free: 14.8 MB / 458.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.0005563/0.6673, allocations: 195.1 kB / 0.6099 GB, free: 14.6 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004565/0.6719, allocations: 1.627 MB / 0.6115 GB, free: 12.95 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.514e-06/0.672, allocations: 4.188 kB / 0.6115 GB, free: 12.95 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002388/0.6744, allocations: 0.9434 MB / 0.6124 GB, free: 11.99 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001099/0.6755, allocations: 102.6 kB / 0.6125 GB, free: 11.89 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006462/0.682, allocations: 2.01 MB / 0.6145 GB, free: 9.809 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001794/0.6838, allocations: 1.193 MB / 0.6157 GB, free: 8.59 MB / 458.7 MB Notification: Performance of SimCode: time 1.202e-06/0.6839, allocations: 0 / 0.6157 GB, free: 8.59 MB / 458.7 MB Notification: Performance of Templates: time 0.0337/0.7176, allocations: 14.41 MB / 0.6297 GB, free: 10.14 MB / 474.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.RXline.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.RXline.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.RXline --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe 2>&1)