Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker.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.Elementary.Breaker,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker") translateModel(PowerSystems.Examples.AC3ph.Elementary.Breaker,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker") [: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.002356/0.002356, allocations: 188.6 kB / 7.807 MB, free: 2.496 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.732/1.732, allocations: 205.2 MB / 213.4 MB, free: 13.93 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.001257/0.001257, allocations: 85.02 kB / 261.4 MB, free: 13.63 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.2669/0.2669, allocations: 37.99 MB / 347.4 MB, free: 7.539 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.884e-06/7.995e-06, allocations: 0 / 409.3 MB, free: 47.24 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1033, allocations: 56.32 MB / 465.6 MB, free: 6.859 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.437/0.5404, allocations: 104.6 MB / 0.5568 GB, free: 6.277 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001071/0.5415, allocations: 87.95 kB / 0.5569 GB, free: 6.191 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.1057/0.6473, allocations: 19.09 MB / 0.5756 GB, free: 2.918 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.737e-05/0.6474, allocations: 16 kB / 0.5756 GB, free: 2.902 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: 199 * Number of variables: 199 Notification: Performance of Generate backend data structure: time 0.004139/0.6516, allocations: 1.063 MB / 0.5766 GB, free: 1.777 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.084e-05/0.6517, allocations: 8.031 kB / 0.5766 GB, free: 1.77 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001755/0.6534, allocations: 134.8 kB / 0.5768 GB, free: 1.637 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005454/0.6589, allocations: 1.024 MB / 0.5778 GB, free: 0.5703 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.118e-05/0.6591, allocations: 28 kB / 0.5778 GB, free: 0.543 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002714/0.6594, allocations: 51.89 kB / 0.5778 GB, free: 0.4922 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00359/0.663, allocations: 0.8083 MB / 0.5786 GB, free: 15.68 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003956/0.667, allocations: 0.9557 MB / 0.5796 GB, free: 14.66 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.298e-05/0.6671, allocations: 0 / 0.5796 GB, free: 14.66 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001793/0.6673, allocations: 11.94 kB / 0.5796 GB, free: 14.64 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001404/0.6674, allocations: 41.98 kB / 0.5796 GB, free: 14.61 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01263/0.6801, allocations: 4.026 MB / 0.5835 GB, free: 10.43 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002562/0.6827, allocations: 0.6548 MB / 0.5842 GB, free: 9.758 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001503/0.6842, allocations: 447.6 kB / 0.5846 GB, free: 9.316 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.939e-05/0.6843, allocations: 8.641 kB / 0.5846 GB, free: 9.309 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002122/0.6865, allocations: 0.5863 MB / 0.5852 GB, free: 8.699 MB / 426.7 MB Notification: Performance of pre-optimization done (n=96): time 5.1e-06/0.6865, allocations: 0 / 0.5852 GB, free: 8.699 MB / 426.7 MB Notification: Performance of matching and sorting (n=97): time 0.008494/0.695, allocations: 2.097 MB / 0.5872 GB, free: 6.535 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001567/0.6952, allocations: 149.3 kB / 0.5874 GB, free: 6.359 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001088/0.6963, allocations: 389 kB / 0.5877 GB, free: 5.973 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001483/0.6965, allocations: 29.7 kB / 0.5878 GB, free: 5.938 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004111/0.6969, allocations: 358.2 kB / 0.5881 GB, free: 5.582 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00052/0.6975, allocations: 280 kB / 0.5884 GB, free: 5.305 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001073/0.6976, allocations: 4 kB / 0.5884 GB, free: 5.301 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002419/0.6979, allocations: 354.8 kB / 0.5887 GB, free: 4.945 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001515/0.6994, allocations: 386.2 kB / 0.5891 GB, free: 4.57 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001835/0.7013, allocations: 0.5843 MB / 0.5897 GB, free: 3.898 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001816/0.7031, allocations: 470.4 kB / 0.5901 GB, free: 3.445 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.685e-06/0.7031, allocations: 3.938 kB / 0.5901 GB, free: 3.441 MB / 426.7 MB Notification: Performance of matching and sorting (n=138) (initialization): time 0.007082/0.7102, allocations: 1.381 MB / 0.5915 GB, free: 2.043 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.627e-05/0.7103, allocations: 4 kB / 0.5915 GB, free: 2.039 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00623/0.7165, allocations: 1.142 MB / 0.5926 GB, free: 0.8945 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003131/0.7197, allocations: 420.6 kB / 0.593 GB, free: 492 kB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001439/0.7212, allocations: 135.7 kB / 0.5931 GB, free: 356 kB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01374/0.735, allocations: 3.915 MB / 0.5969 GB, free: 12.32 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001059/0.7361, allocations: 55.86 kB / 0.597 GB, free: 12.26 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001277/0.7362, allocations: 43.97 kB / 0.597 GB, free: 12.22 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 46 (system.initime,$whenCondition1,$PRE.relay.cnt,relay.cnt,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$PRE.breaker.breaker_a.arc,breaker.breaker_a.arc,$PRE.breaker.breaker_a.open,breaker.breaker_a.open,breaker.breaker_a.closed,$PRE.breaker.breaker_a.t0,breaker.breaker_a.t0,breaker.breaker_a.opening,$PRE.breaker.breaker_b.arc,breaker.breaker_b.arc,$PRE.breaker.breaker_b.open,breaker.breaker_b.open,breaker.breaker_b.closed,$PRE.breaker.breaker_b.t0,breaker.breaker_b.t0,breaker.breaker_b.opening,$PRE.breaker.breaker_c.arc,breaker.breaker_c.arc,$PRE.breaker.breaker_c.open,breaker.breaker_c.open,breaker.breaker_c.closed,$PRE.breaker.breaker_c.t0,breaker.breaker_c.t0,breaker.breaker_c.opening,$PRE.relay.y[1],relay.y[1],$PRE.relay.y[2],relay.y[2],$PRE.relay.y[3],relay.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (103): * Single equations (assignments): 99 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 19} Notification: Performance of prepare postOptimizeDAE: time 0.0003521/0.7366, allocations: 103.1 kB / 0.5971 GB, free: 12.11 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000316/0.7369, allocations: 71.16 kB / 0.5972 GB, free: 12.04 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003224/0.7402, allocations: 1.055 MB / 0.5982 GB, free: 10.96 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.98e-05/0.7403, allocations: 12 kB / 0.5982 GB, free: 10.95 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.422e-05/0.7403, allocations: 4 kB / 0.5982 GB, free: 10.95 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.665e-05/0.7403, allocations: 3.984 kB / 0.5982 GB, free: 10.95 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006003/0.7463, allocations: 2.003 MB / 0.6002 GB, free: 8.883 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.306e-05/0.7464, allocations: 4 kB / 0.6002 GB, free: 8.879 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001385/0.7478, allocations: 131.9 kB / 0.6003 GB, free: 8.75 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003246/0.7482, allocations: 74.56 kB / 0.6004 GB, free: 8.668 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001447/0.7483, allocations: 19.92 kB / 0.6004 GB, free: 8.648 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005335/0.7537, allocations: 3.741 MB / 0.6041 GB, free: 4.562 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.955e-06/0.7537, allocations: 0 / 0.6041 GB, free: 4.562 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006776/0.7605, allocations: 1.745 MB / 0.6058 GB, free: 2.762 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004084/0.761, allocations: 140.2 kB / 0.6059 GB, free: 2.605 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002996/0.7613, allocations: 11.98 kB / 0.6059 GB, free: 2.594 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001306/0.7626, allocations: 47.95 kB / 0.606 GB, free: 2.547 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003567/0.763, allocations: 68.67 kB / 0.606 GB, free: 2.48 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001529/0.7632, allocations: 39.89 kB / 0.6061 GB, free: 2.441 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0007366/0.764, allocations: 287.2 kB / 0.6063 GB, free: 2.16 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001876/0.7658, allocations: 235.9 kB / 0.6066 GB, free: 1.93 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.i[3]) * Number of discrete variables: 33 (breaker.breaker_c.closed,breaker.breaker_b.closed,breaker.breaker_a.closed,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,breaker.breaker_a.arc,breaker.breaker_a.open,breaker.breaker_a.t0,breaker.breaker_a.opening,breaker.breaker_b.arc,breaker.breaker_b.open,breaker.breaker_b.t0,breaker.breaker_b.opening,breaker.breaker_c.arc,breaker.breaker_c.open,breaker.breaker_c.t0,breaker.breaker_c.opening,relay.y[1],relay.y[2],relay.y[3],relay.cnt,system.initime) * Number of discrete states: 11 (breaker.breaker_a.arc,breaker.breaker_b.arc,breaker.breaker_c.arc,relay.y[3],relay.y[2],relay.y[1],relay.cnt,$whenCondition1,breaker.breaker_c.open,breaker.breaker_a.open,breaker.breaker_b.open) * Top-level inputs: 0 Notification: Strong component statistics for simulation (85): * Single equations (assignments): 72 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 7 * 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%) 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.0005625/0.7664, allocations: 162.5 kB / 0.6067 GB, free: 1.762 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005225/0.7717, allocations: 1.236 MB / 0.6079 GB, free: 0.5156 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.015e-06/0.7717, allocations: 0 / 0.6079 GB, free: 0.5156 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002867/0.7746, allocations: 0.8933 MB / 0.6088 GB, free: 15.59 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001317/0.776, allocations: 86.05 kB / 0.6089 GB, free: 15.5 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006705/0.7827, allocations: 1.525 MB / 0.6104 GB, free: 13.93 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001996/0.7848, allocations: 1.111 MB / 0.6115 GB, free: 12.79 MB / 458.7 MB Notification: Performance of SimCode: time 1.674e-06/0.7848, allocations: 0 / 0.6115 GB, free: 12.79 MB / 458.7 MB Notification: Performance of Templates: time 0.04584/0.8307, allocations: 16.27 MB / 0.6273 GB, free: 12.5 MB / 474.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe 2>&1)