Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.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.AC1ph_DC.Transformation.TapChanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=8000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger") translateModel(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=8000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger") [: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.002354/0.002354, allocations: 191.6 kB / 7.806 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.759/1.759, 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.001254/0.001254, allocations: 91.12 kB / 261.4 MB, free: 13.62 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.2968/0.2968, allocations: 37.98 MB / 347.3 MB, free: 7.539 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.404e-06/7.484e-06, allocations: 4 kB / 409.3 MB, free: 47.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09971/0.09974, allocations: 56.31 MB / 465.6 MB, free: 6.855 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3444/0.4442, allocations: 99.38 MB / 0.5518 GB, free: 11.48 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003677/0.4446, allocations: 83.95 kB / 0.5519 GB, free: 11.39 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.07704/0.5216, allocations: 16.49 MB / 0.568 GB, free: 10.69 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.135e-05/0.5218, allocations: 19.94 kB / 0.568 GB, free: 10.67 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: 166 * Number of variables: 166 Notification: Performance of Generate backend data structure: time 0.002699/0.5245, allocations: 1.004 MB / 0.569 GB, free: 9.605 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.192e-05/0.5246, allocations: 8.031 kB / 0.569 GB, free: 9.598 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004055/0.525, allocations: 98.88 kB / 0.5691 GB, free: 9.5 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007388/0.5324, allocations: 1.693 MB / 0.5707 GB, free: 7.758 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.742e-05/0.5325, allocations: 27.98 kB / 0.5707 GB, free: 7.73 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001526/0.5326, allocations: 40 kB / 0.5708 GB, free: 7.691 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001783/0.5344, allocations: 0.5726 MB / 0.5713 GB, free: 7.121 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001886/0.5364, allocations: 0.7176 MB / 0.572 GB, free: 6.367 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.855e-05/0.5364, allocations: 3.906 kB / 0.572 GB, free: 6.363 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.835e-05/0.5365, allocations: 4 kB / 0.572 GB, free: 6.359 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.867e-05/0.5366, allocations: 33.3 kB / 0.5721 GB, free: 6.328 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006293/0.5429, allocations: 2.565 MB / 0.5746 GB, free: 3.656 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001563/0.5445, allocations: 0.5501 MB / 0.5751 GB, free: 3.086 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000984/0.5455, allocations: 359.1 kB / 0.5755 GB, free: 2.73 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.896e-05/0.5456, allocations: 4.438 kB / 0.5755 GB, free: 2.727 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008144/0.5464, allocations: 443.3 kB / 0.5759 GB, free: 2.254 MB / 410.7 MB Notification: Performance of pre-optimization done (n=63): time 3.407e-06/0.5464, allocations: 0 / 0.5759 GB, free: 2.254 MB / 410.7 MB Notification: Performance of matching and sorting (n=64): time 0.003573/0.55, allocations: 1.4 MB / 0.5773 GB, free: 0.7969 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001478/0.5502, allocations: 247.8 kB / 0.5775 GB, free: 0.5 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008702/0.5511, allocations: 454.3 kB / 0.5779 GB, free: 52 kB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.928e-05/0.5512, allocations: 29.7 kB / 0.578 GB, free: 16 kB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002939/0.5515, allocations: 341.9 kB / 0.5783 GB, free: 15.68 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002513/0.5518, allocations: 201.1 kB / 0.5785 GB, free: 15.48 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.061e-05/0.5518, allocations: 0 / 0.5785 GB, free: 15.48 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.00016/0.552, allocations: 346.8 kB / 0.5788 GB, free: 15.13 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005777/0.5526, allocations: 205.9 kB / 0.579 GB, free: 14.93 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007491/0.5534, allocations: 431.8 kB / 0.5794 GB, free: 14.41 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006951/0.5541, allocations: 265.2 kB / 0.5797 GB, free: 14.15 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.075e-06/0.5541, allocations: 8 kB / 0.5797 GB, free: 14.14 MB / 426.7 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.00236/0.5565, allocations: 0.732 MB / 0.5804 GB, free: 13.4 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.085e-05/0.5565, allocations: 4 kB / 0.5804 GB, free: 13.39 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.154e-05/0.5566, allocations: 8 kB / 0.5804 GB, free: 13.39 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005747/0.5571, allocations: 110 kB / 0.5805 GB, free: 13.27 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001066/0.5582, allocations: 143.9 kB / 0.5806 GB, free: 13.13 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004187/0.5624, allocations: 3.046 MB / 0.5836 GB, free: 9.852 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00074/0.5632, allocations: 31.98 kB / 0.5836 GB, free: 9.82 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001423/0.5634, allocations: 52.03 kB / 0.5837 GB, free: 9.77 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 21 (system.initime,$whenCondition3,$whenCondition4,$PRE.tapRelay1.cnt_1,tapRelay1.cnt_1,$PRE.tapRelay1.cnt_2,tapRelay1.cnt_2,$whenCondition1,$whenCondition2,$PRE.tapRelay2.cnt_1,tapRelay2.cnt_1,$PRE.tapRelay2.cnt_2,tapRelay2.cnt_2,$PRE.tapRelay2.tap_1,tapRelay2.tap_1,$PRE.tapRelay2.tap_2,tapRelay2.tap_2,$PRE.tapRelay1.tap_1,tapRelay1.tap_1,$PRE.tapRelay1.tap_2,tapRelay1.tap_2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002716/0.5637, allocations: 127.9 kB / 0.5838 GB, free: 9.629 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002032/0.5639, allocations: 75.16 kB / 0.5839 GB, free: 9.555 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001643/0.5655, allocations: 0.5956 MB / 0.5845 GB, free: 8.949 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.487e-05/0.5656, allocations: 8 kB / 0.5845 GB, free: 8.941 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.279e-06/0.5656, allocations: 0 / 0.5845 GB, free: 8.941 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.211e-05/0.5656, allocations: 3.984 kB / 0.5845 GB, free: 8.938 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00346/0.5691, allocations: 1.314 MB / 0.5858 GB, free: 7.574 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.268e-06/0.5692, allocations: 0 / 0.5858 GB, free: 7.574 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001087/0.5703, allocations: 107.8 kB / 0.5859 GB, free: 7.469 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.532e-05/0.5703, allocations: 7.938 kB / 0.5859 GB, free: 7.461 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.519e-05/0.5704, allocations: 15.98 kB / 0.5859 GB, free: 7.445 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.145e-06/0.5704, allocations: 4 kB / 0.5859 GB, free: 7.441 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.5704, allocations: 96 / 0.5859 GB, free: 7.441 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002374/0.5728, allocations: 1.061 MB / 0.5869 GB, free: 6.324 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004635/0.5733, allocations: 196 kB / 0.5871 GB, free: 6.113 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001527/0.5735, allocations: 8 kB / 0.5871 GB, free: 6.105 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006375/0.5741, allocations: 19.98 kB / 0.5871 GB, free: 6.086 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001265/0.5743, allocations: 44.44 kB / 0.5872 GB, free: 6.043 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001323/0.5744, allocations: 51.94 kB / 0.5872 GB, free: 5.992 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0007225/0.5752, allocations: 342.9 kB / 0.5876 GB, free: 5.66 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001112/0.5763, allocations: 156 kB / 0.5877 GB, free: 5.508 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (trafo1.i1,trafo2.i1) * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,tapRelay2.tap_1,tapRelay2.tap_2,tapRelay2.cnt_1,tapRelay2.cnt_2,tapRelay1.tap_1,tapRelay1.tap_2,tapRelay1.cnt_1,tapRelay1.cnt_2,system.initime) * Number of discrete states: 12 (tapRelay1.tap_2,tapRelay1.cnt_2,$whenCondition4,tapRelay1.tap_1,tapRelay1.cnt_1,$whenCondition3,tapRelay2.tap_2,tapRelay2.cnt_2,$whenCondition2,tapRelay2.tap_1,tapRelay2.cnt_1,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 1 * 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.0003732/0.5767, allocations: 179 kB / 0.5879 GB, free: 5.324 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002103/0.5788, allocations: 0.8486 MB / 0.5887 GB, free: 4.441 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.087e-06/0.5788, allocations: 0 / 0.5887 GB, free: 4.441 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009244/0.5798, allocations: 445 kB / 0.5891 GB, free: 3.996 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001197/0.581, allocations: 135.2 kB / 0.5893 GB, free: 3.867 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003666/0.5847, allocations: 1.246 MB / 0.5905 GB, free: 2.57 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001154/0.5859, allocations: 1.082 MB / 0.5915 GB, free: 1.461 MB / 426.7 MB Notification: Performance of SimCode: time 1.142e-06/0.5859, allocations: 0 / 0.5915 GB, free: 1.461 MB / 426.7 MB Notification: Performance of Templates: time 0.02684/0.6127, allocations: 12.06 MB / 0.6033 GB, free: 5.391 MB / 442.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe 2>&1)