Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.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.DoubleLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine") [: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.002385/0.002384, allocations: 192.1 kB / 7.803 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.86/1.86, 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.001277/0.001276, allocations: 84.41 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.2996/0.2996, allocations: 37.98 MB / 347.3 MB, free: 7.547 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.014e-05/1.062e-05, allocations: 4 kB / 409.3 MB, free: 47.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1008, allocations: 56.32 MB / 465.6 MB, free: 6.836 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3675/0.4683, allocations: 109.8 MB / 0.562 GB, free: 1.035 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000331/0.4687, allocations: 91.94 kB / 0.562 GB, free: 0.9453 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.1146/0.5833, allocations: 23.74 MB / 0.5852 GB, free: 8.898 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001069/0.5835, allocations: 31.88 kB / 0.5853 GB, free: 8.867 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.006218/0.5897, allocations: 1.445 MB / 0.5867 GB, free: 7.355 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.078e-05/0.5898, allocations: 8.031 kB / 0.5867 GB, free: 7.348 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007971/0.5906, allocations: 134.3 kB / 0.5868 GB, free: 7.215 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01216/0.6028, allocations: 2.505 MB / 0.5893 GB, free: 4.664 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.464e-05/0.6029, allocations: 35.98 kB / 0.5893 GB, free: 4.629 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005919/0.6035, allocations: 79.91 kB / 0.5894 GB, free: 4.551 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003169/0.6067, allocations: 1.062 MB / 0.5904 GB, free: 3.488 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004496/0.6113, allocations: 1.654 MB / 0.592 GB, free: 1.789 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.443e-05/0.6114, allocations: 0 / 0.592 GB, free: 1.789 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002074/0.6116, allocations: 4 kB / 0.592 GB, free: 1.785 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.006e-05/0.6117, allocations: 37.98 kB / 0.5921 GB, free: 1.746 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01594/0.6276, allocations: 5.659 MB / 0.5976 GB, free: 11.95 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002401/0.6301, allocations: 0.9707 MB / 0.5985 GB, free: 10.96 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003467/0.6336, allocations: 1.14 MB / 0.5996 GB, free: 9.824 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001285/0.6338, allocations: 20.77 kB / 0.5997 GB, free: 9.805 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00303/0.6368, allocations: 1.281 MB / 0.6009 GB, free: 8.496 MB / 442.7 MB Notification: Performance of pre-optimization done (n=101): time 4.588e-06/0.6368, allocations: 0 / 0.6009 GB, free: 8.496 MB / 442.7 MB Notification: Performance of matching and sorting (n=105): time 0.02961/0.6665, allocations: 6.8 MB / 0.6076 GB, free: 1.613 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001753/0.6667, allocations: 204.9 kB / 0.6077 GB, free: 1.371 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001333/0.668, allocations: 0.5978 MB / 0.6083 GB, free: 0.7695 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003646/0.6684, allocations: 29.7 kB / 0.6084 GB, free: 0.7344 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003256/0.6688, allocations: 370.5 kB / 0.6087 GB, free: 376 kB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006834/0.6695, allocations: 398.9 kB / 0.6091 GB, free: 15.97 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000161/0.6696, allocations: 0 / 0.6091 GB, free: 15.97 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.00019/0.6698, allocations: 366.8 kB / 0.6094 GB, free: 15.61 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002536/0.6724, allocations: 0.9918 MB / 0.6104 GB, free: 14.61 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002813/0.6752, allocations: 1.256 MB / 0.6116 GB, free: 13.26 MB / 458.7 MB Notification: The following equation is consistent and got removed from the initialization problem: $DER.trafo.i1 = 0.0 Notification: The following equation is consistent and got removed from the initialization problem: $DER.line.i[1,1] = 0.0 Notification: Performance of analyzeInitialSystem (initialization): time 0.04284/0.7181, allocations: 6.955 MB / 0.6184 GB, free: 6.262 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.16e-05/0.7181, allocations: 4 kB / 0.6184 GB, free: 6.258 MB / 458.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.01789/0.736, allocations: 4.848 MB / 0.6232 GB, free: 1.398 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.758e-05/0.7361, allocations: 6.812 kB / 0.6232 GB, free: 1.395 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.775e-05/0.7362, allocations: 11.94 kB / 0.6232 GB, free: 1.383 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0168/0.753, allocations: 3.928 MB / 0.627 GB, free: 13.45 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001351/0.7544, allocations: 175.7 kB / 0.6272 GB, free: 13.27 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.243/0.9974, allocations: 14.79 MB / 0.6416 GB, free: 119.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001237/0.9987, allocations: 58.77 kB / 0.6417 GB, free: 119.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002856/0.999, allocations: 151.1 kB / 0.6418 GB, free: 119.4 MB / 474.7 MB Warning: Assuming redundant initial conditions for the following 2 initial equations: $DER.trafo.i1 = 0.0 $DER.line.i[1,1] = 0.0 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 41 (system.initime,$PRE.ab.fault_pp.t0,ab.fault_pp.t0,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,trafo.tap_2_internal,trafo.tap_1_internal,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.switch1.switch_1.arc,switch1.switch_1.arc,$PRE.switch1.switch_1.open,switch1.switch_1.open,switch1.switch_1.closed,$PRE.switch2.switch_1.arc,switch2.switch_1.arc,$PRE.switch2.switch_1.open,switch2.switch_1.open,switch2.switch_1.closed,$PRE.ab.t_zero,ab.t_zero,$PRE.ab.v_pos,ab.v_pos,$PRE.ab.first,ab.first,$PRE.ab.fault_pp.on,ab.fault_pp.on,$PRE.relay1.y[1],relay1.y[1],$PRE.relay2.y[1],relay2.y[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (128): * Single equations (assignments): 125 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(29,10.6%) 20} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005037/0.9995, allocations: 142.3 kB / 0.642 GB, free: 119.3 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003608/0.9999, allocations: 99.34 kB / 0.6421 GB, free: 119.3 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02133/1.021, allocations: 4.804 MB / 0.6468 GB, free: 119.2 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.6e-05/1.021, allocations: 11.22 kB / 0.6468 GB, free: 119.2 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.008e-05/1.021, allocations: 0 / 0.6468 GB, free: 119.2 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.571e-05/1.021, allocations: 3.844 kB / 0.6468 GB, free: 119.2 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02546/1.047, allocations: 6.564 MB / 0.6532 GB, free: 118.9 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.033e-05/1.047, allocations: 0 / 0.6532 GB, free: 118.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001136/1.048, allocations: 127.7 kB / 0.6533 GB, free: 118.9 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03343/1.081, allocations: 6.125 MB / 0.6593 GB, free: 118.7 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000622/1.082, allocations: 208.7 kB / 0.6595 GB, free: 118.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03825/1.12, allocations: 18.62 MB / 0.6777 GB, free: 112.4 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.264e-06/1.12, allocations: 1.062 kB / 0.6777 GB, free: 112.4 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02446/1.145, allocations: 5.799 MB / 0.6833 GB, free: 112 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001326/1.146, allocations: 414.6 kB / 0.6837 GB, free: 111.9 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007224/1.147, allocations: 167.5 kB / 0.6839 GB, free: 111.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001464/1.148, allocations: 56.98 kB / 0.6839 GB, free: 111.9 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000457/1.149, allocations: 118.1 kB / 0.6841 GB, free: 111.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003103/1.149, allocations: 145.7 kB / 0.6842 GB, free: 111.8 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0007907/1.15, allocations: 457.8 kB / 0.6846 GB, free: 111.5 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002284/1.152, allocations: 490.4 kB / 0.6851 GB, free: 111 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 29 (line.v[1,1],line.v[1,2],line.v[1,3],line.v[2,1],line.v[2,2],line.v[2,3],line.i[1,2],line.i[1,3],line.i[1,4],line.i[2,1],line.i[2,2],line.i[2,3],line.i[2,4],lineF.v[1,1],lineF.v[1,2],lineF.v[1,3],lineF.v[2,1],lineF.v[2,2],lineF.v[2,3],lineF.i[1,1],lineF.i[1,2],lineF.i[1,3],lineF.i[1,4],lineF.i[2,1],lineF.i[2,2],lineF.i[2,3],lineF.i[2,4],lineF.iF[1],lineF.iF[2]) * Number of discrete variables: 26 (switch1.switch_1.closed,switch2.switch_1.closed,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,switch1.switch_1.arc,switch1.switch_1.open,switch2.switch_1.arc,switch2.switch_1.open,ab.t_zero,ab.v_pos,ab.first,ab.fault_pp.on,ab.fault_pp.t0,relay1.y[1],relay1.cnt,relay2.y[1],relay2.cnt,system.initime) * Number of discrete states: 12 (relay2.y[1],relay2.cnt,$whenCondition2,switch2.switch_1.open,relay1.y[1],relay1.cnt,$whenCondition1,switch1.switch_1.open,ab.t_zero,ab.fault_pp.on,ab.v_pos,ab.first) * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {6,6} * Without analytic Jacobian: 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: 1 {16 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004818/1.153, allocations: 213 kB / 0.6853 GB, free: 110.9 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.008752/1.162, allocations: 2.794 MB / 0.688 GB, free: 108.9 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.439e-06/1.162, allocations: 3.156 kB / 0.688 GB, free: 108.9 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006855/1.169, allocations: 2.218 MB / 0.6902 GB, free: 107.1 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001738/1.17, allocations: 224.2 kB / 0.6904 GB, free: 106.9 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01215/1.182, allocations: 4.789 MB / 0.6951 GB, free: 102.6 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001246/1.184, allocations: 1.317 MB / 0.6964 GB, free: 101.3 MB / 474.7 MB Notification: Performance of SimCode: time 1.172e-06/1.184, allocations: 3.062 kB / 0.6964 GB, free: 101.3 MB / 474.7 MB Notification: Performance of Templates: time 0.05172/1.236, allocations: 34.42 MB / 0.73 GB, free: 67.05 MB / 474.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe 2>&1)