Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.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.AC1ph_DC.Elementary.Breaker,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.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.002411/0.002411, allocations: 185.8 kB / 7.802 MB, free: 2.445 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.92 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.001258/0.001258, allocations: 89.95 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.3026/0.3026, allocations: 37.97 MB / 347.3 MB, free: 7.543 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.166e-05/1.181e-05, allocations: 0 / 409.3 MB, free: 47.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1119, allocations: 56.31 MB / 465.6 MB, free: 6.844 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3411/0.453, allocations: 97.9 MB / 0.5503 GB, free: 12.98 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003296/0.4534, allocations: 87.95 kB / 0.5504 GB, free: 12.89 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.04723/0.5007, allocations: 9.704 MB / 0.5599 GB, free: 3.078 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.072e-05/0.5007, allocations: 8 kB / 0.5599 GB, free: 3.07 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001818/0.5026, allocations: 0.7144 MB / 0.5606 GB, free: 2.301 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.819e-05/0.5026, allocations: 8.031 kB / 0.5606 GB, free: 2.293 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002132/0.5029, allocations: 55.33 kB / 0.5607 GB, free: 2.238 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003864/0.5068, allocations: 0.8929 MB / 0.5615 GB, free: 1.305 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.751e-05/0.5068, allocations: 12 kB / 0.5615 GB, free: 1.293 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.924e-05/0.507, allocations: 35.92 kB / 0.5616 GB, free: 1.258 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001088/0.5081, allocations: 321.4 kB / 0.5619 GB, free: 0.9453 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001096/0.5092, allocations: 422.2 kB / 0.5623 GB, free: 0.5039 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.938e-05/0.5092, allocations: 0 / 0.5623 GB, free: 0.5039 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.63e-05/0.5093, allocations: 4 kB / 0.5623 GB, free: 0.5 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.61e-05/0.5093, allocations: 12 kB / 0.5623 GB, free: 500 kB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003904/0.5132, allocations: 1.639 MB / 0.5639 GB, free: 14.77 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006328/0.5139, allocations: 200.5 kB / 0.5641 GB, free: 14.56 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008648/0.5148, allocations: 218.1 kB / 0.5643 GB, free: 14.34 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.485e-05/0.5149, allocations: 4.234 kB / 0.5643 GB, free: 14.34 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005576/0.5154, allocations: 259.3 kB / 0.5645 GB, free: 14.05 MB / 410.7 MB Notification: Performance of pre-optimization done (n=35): time 2.946e-06/0.5154, allocations: 0 / 0.5645 GB, free: 14.05 MB / 410.7 MB Notification: Performance of matching and sorting (n=36): time 0.00273/0.5182, allocations: 0.8909 MB / 0.5654 GB, free: 13.11 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000118/0.5183, allocations: 144.5 kB / 0.5656 GB, free: 12.93 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006244/0.519, allocations: 306 kB / 0.5658 GB, free: 12.64 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.592e-05/0.5191, allocations: 33.73 kB / 0.5659 GB, free: 12.6 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002044/0.5193, allocations: 250.5 kB / 0.5661 GB, free: 12.35 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001592/0.5195, allocations: 110.5 kB / 0.5662 GB, free: 12.24 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.989e-05/0.5195, allocations: 0 / 0.5662 GB, free: 12.24 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001657/0.5197, allocations: 330.8 kB / 0.5665 GB, free: 11.91 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003923/0.5201, allocations: 125 kB / 0.5667 GB, free: 11.79 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004979/0.5206, allocations: 242.5 kB / 0.5669 GB, free: 11.5 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004494/0.5211, allocations: 144 kB / 0.567 GB, free: 11.36 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.763e-06/0.5211, allocations: 4 kB / 0.567 GB, free: 11.36 MB / 410.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001357/0.5225, allocations: 438.5 kB / 0.5674 GB, free: 10.91 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/0.5225, allocations: 6.812 kB / 0.5675 GB, free: 10.91 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.387e-05/0.5225, allocations: 4 kB / 0.5675 GB, free: 10.91 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003622/0.5229, allocations: 78.14 kB / 0.5675 GB, free: 10.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000561/0.5235, allocations: 71.84 kB / 0.5676 GB, free: 10.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001451/0.5249, allocations: 1.244 MB / 0.5688 GB, free: 9.391 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000456/0.5254, allocations: 23.98 kB / 0.5688 GB, free: 9.367 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.738e-05/0.5255, allocations: 15.98 kB / 0.5689 GB, free: 9.352 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 18 (system.initime,$whenCondition1,$PRE.relay.cnt,relay.cnt,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$PRE.relay.y[1],relay.y[1],$PRE.breaker.breaker_1.arc,breaker.breaker_1.arc,$PRE.breaker.breaker_1.open,breaker.breaker_1.open,breaker.breaker_1.closed,$PRE.breaker.breaker_1.t0,breaker.breaker_1.t0,breaker.breaker_1.opening) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002077/0.5257, allocations: 79.39 kB / 0.5689 GB, free: 9.262 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001365/0.5259, allocations: 43.44 kB / 0.569 GB, free: 9.219 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001314/0.5272, allocations: 411.2 kB / 0.5694 GB, free: 8.805 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.636e-06/0.5272, allocations: 4 kB / 0.5694 GB, free: 8.801 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.526e-06/0.5272, allocations: 3.906 kB / 0.5694 GB, free: 8.797 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.5272, allocations: 0 / 0.5694 GB, free: 8.797 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002266/0.5295, allocations: 0.9067 MB / 0.5703 GB, free: 7.836 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/0.5296, allocations: 0 / 0.5703 GB, free: 7.836 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003903/0.53, allocations: 35.92 kB / 0.5703 GB, free: 7.801 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004293/0.5304, allocations: 85.59 kB / 0.5704 GB, free: 7.711 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.665e-05/0.5305, allocations: 11.98 kB / 0.5704 GB, free: 7.699 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003241/0.5337, allocations: 2.637 MB / 0.573 GB, free: 4.836 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.312e-06/0.5338, allocations: 0 / 0.573 GB, free: 4.836 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001804/0.5356, allocations: 0.6928 MB / 0.5736 GB, free: 4.102 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001856/0.5358, allocations: 120.6 kB / 0.5738 GB, free: 3.965 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001108/0.5359, allocations: 7.906 kB / 0.5738 GB, free: 3.957 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004857/0.5364, allocations: 15.98 kB / 0.5738 GB, free: 3.941 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000129/0.5366, allocations: 31.89 kB / 0.5738 GB, free: 3.91 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.423e-05/0.5366, allocations: 20.05 kB / 0.5738 GB, free: 3.891 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0004463/0.5371, allocations: 236.6 kB / 0.574 GB, free: 3.656 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000731/0.5378, allocations: 103.9 kB / 0.5741 GB, free: 3.555 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (ind.i[1],ind.i[2]) * Number of discrete variables: 13 (breaker.breaker_1.closed,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,relay.y[1],relay.cnt,breaker.breaker_1.arc,breaker.breaker_1.open,breaker.breaker_1.t0,breaker.breaker_1.opening,system.initime) * Number of discrete states: 5 (breaker.breaker_1.arc,relay.y[1],relay.cnt,$whenCondition1,breaker.breaker_1.open) * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 3 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002738/0.5381, allocations: 113.6 kB / 0.5743 GB, free: 3.438 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001354/0.5395, allocations: 0.5558 MB / 0.5748 GB, free: 2.844 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.5395, allocations: 0 / 0.5748 GB, free: 2.844 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001002/0.5405, allocations: 434.1 kB / 0.5752 GB, free: 2.395 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007841/0.5413, allocations: 70.42 kB / 0.5753 GB, free: 2.328 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002352/0.5437, allocations: 0.7617 MB / 0.576 GB, free: 1.52 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008964/0.5446, allocations: 0.9089 MB / 0.5769 GB, free: 0.582 MB / 410.7 MB Notification: Performance of SimCode: time 1.503e-06/0.5447, allocations: 0 / 0.5769 GB, free: 0.582 MB / 410.7 MB Notification: Performance of Templates: time 0.01988/0.5645, allocations: 9.091 MB / 0.5858 GB, free: 7.488 MB / 426.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe 2>&1)