Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_DoubleLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_DoubleLine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002254/0.002254, allocations: 184.3 kB / 15.76 MB, free: 6.363 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.974/1.974, allocations: 205.4 MB / 221.9 MB, free: 13.83 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001132/0.001132, allocations: 86.88 kB / 270.2 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2621/0.2621, allocations: 38.06 MB / 356.6 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004661/0.000466, allocations: 12 kB / 422.8 MB, free: 26.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.12, allocations: 56.33 MB / 479.1 MB, free: 1.953 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5015/0.6216, allocations: 110.6 MB / 0.5759 GB, free: 4.957 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003226/0.622, allocations: 95.27 kB / 0.576 GB, free: 4.906 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1486/0.7706, allocations: 24.5 MB / 0.5999 GB, free: 15.55 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.226e-06/0.7707, allocations: 0 / 0.5999 GB, free: 15.55 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001147/0.7708, allocations: 27.98 kB / 0.5999 GB, free: 15.53 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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.008127/0.7789, allocations: 1.718 MB / 0.6016 GB, free: 13.83 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.302e-05/0.779, allocations: 8.031 kB / 0.6016 GB, free: 13.82 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008208/0.7798, allocations: 140.6 kB / 0.6018 GB, free: 13.72 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006715/0.7805, allocations: 134.5 kB / 0.6019 GB, free: 13.59 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01212/0.7927, allocations: 2.507 MB / 0.6043 GB, free: 11.45 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001276/0.7928, allocations: 77.33 kB / 0.6044 GB, free: 11.4 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006885/0.7935, allocations: 127.6 kB / 0.6045 GB, free: 11.31 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005071/0.7986, allocations: 1.771 MB / 0.6063 GB, free: 9.926 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.881e-05/0.7987, allocations: 4 kB / 0.6063 GB, free: 9.922 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002097/0.7989, allocations: 39.88 kB / 0.6063 GB, free: 9.91 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.422e-05/0.799, allocations: 37.98 kB / 0.6063 GB, free: 9.875 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003423/0.8025, allocations: 1.12 MB / 0.6074 GB, free: 9.066 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01588/0.8184, allocations: 5.791 MB / 0.6131 GB, free: 4.23 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003146/0.8216, allocations: 1.26 MB / 0.6143 GB, free: 3.324 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001634/0.8218, allocations: 16.44 kB / 0.6143 GB, free: 3.312 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003371/0.8252, allocations: 1.351 MB / 0.6157 GB, free: 2.219 MB / 410.7 MB Notification: Performance of pre-optimization done (n=101): time 6.743e-06/0.8253, allocations: 0 / 0.6157 GB, free: 2.219 MB / 410.7 MB Notification: Performance of matching and sorting (n=105): time 0.04035/0.8656, allocations: 9.23 MB / 0.6247 GB, free: 10.21 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001791/0.8658, allocations: 208.3 kB / 0.6249 GB, free: 9.965 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001421/0.8673, allocations: 0.6463 MB / 0.6255 GB, free: 9.453 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004325/0.8677, allocations: 59.81 kB / 0.6256 GB, free: 9.406 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005222/0.8683, allocations: 488.8 kB / 0.626 GB, free: 9.066 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008533/0.8691, allocations: 419 kB / 0.6264 GB, free: 8.688 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002342/0.8694, allocations: 28 kB / 0.6265 GB, free: 8.66 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002199/0.8696, allocations: 378.7 kB / 0.6268 GB, free: 8.281 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002767/0.8724, allocations: 1.015 MB / 0.6278 GB, free: 7.266 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003159/0.8756, allocations: 1.291 MB / 0.6291 GB, free: 5.875 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.04242/0.9181, allocations: 7.165 MB / 0.6361 GB, free: 14.65 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.16e-05/0.9181, allocations: 4 kB / 0.6361 GB, free: 14.65 MB / 442.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.01798/0.9361, allocations: 5.084 MB / 0.641 GB, free: 9.535 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.756e-05/0.9363, allocations: 71.34 kB / 0.6411 GB, free: 9.453 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.299e-05/0.9363, allocations: 4 kB / 0.6411 GB, free: 9.449 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02779/0.9641, allocations: 6.485 MB / 0.6474 GB, free: 2.953 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001274/0.9654, allocations: 175.7 kB / 0.6476 GB, free: 2.781 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04575/1.011, allocations: 16.48 MB / 0.6637 GB, free: 2.156 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001644/1.013, allocations: 95.89 kB / 0.6638 GB, free: 2.062 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003501/1.013, allocations: 155.9 kB / 0.6639 GB, free: 1.91 MB / 458.7 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem: $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 () * Number of clocked 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.001204/1.014, allocations: 448.8 kB / 0.6644 GB, free: 1.449 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003781/1.015, allocations: 102.8 kB / 0.6645 GB, free: 1.348 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02386/1.039, allocations: 5.082 MB / 0.6694 GB, free: 12.21 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.497e-05/1.039, allocations: 8 kB / 0.6694 GB, free: 12.21 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.065e-05/1.039, allocations: 4 kB / 0.6694 GB, free: 12.2 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.01e-05/1.039, allocations: 3.984 kB / 0.6694 GB, free: 12.2 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02945/1.068, allocations: 6.943 MB / 0.6762 GB, free: 5.164 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.975e-05/1.068, allocations: 0 / 0.6762 GB, free: 5.164 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001154/1.07, allocations: 131.8 kB / 0.6763 GB, free: 5.035 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03737/1.107, allocations: 6.655 MB / 0.6828 GB, free: 14.35 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007892/1.108, allocations: 215.8 kB / 0.6831 GB, free: 14.14 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04884/1.157, allocations: 21.98 MB / 0.7045 GB, free: 7.484 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/1.157, allocations: 0 / 0.7045 GB, free: 7.484 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02653/1.183, allocations: 6.094 MB / 0.7105 GB, free: 1.324 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001481/1.185, allocations: 411.7 kB / 0.7109 GB, free: 0.9023 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00072/1.186, allocations: 183.9 kB / 0.711 GB, free: 0.7227 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001475/1.187, allocations: 84.34 kB / 0.7111 GB, free: 0.6406 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001121/1.188, allocations: 184.7 kB / 0.7113 GB, free: 468 kB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004598/1.189, allocations: 147.9 kB / 0.7114 GB, free: 320 kB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.3536/1.542, allocations: 0.4888 MB / 0.7119 GB, free: 163.6 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.262e-06/1.542, allocations: 0.5312 kB / 0.7119 GB, free: 163.6 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.003015/1.545, allocations: 0.533 MB / 0.7124 GB, free: 163.6 MB / 0.4948 GB 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) * Number of clocked states: 0 () * 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.02578/1.571, allocations: 6.641 MB / 0.7189 GB, free: 162.6 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01022/1.581, allocations: 3.074 MB / 0.7219 GB, free: 162.3 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 6.863e-06/1.581, allocations: 0 / 0.7219 GB, free: 162.3 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00745/1.589, allocations: 2.421 MB / 0.7243 GB, free: 161.5 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00177/1.591, allocations: 237.2 kB / 0.7245 GB, free: 161.5 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03493/1.626, allocations: 20.06 MB / 0.7441 GB, free: 153.2 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000948/1.627, allocations: 1.258 MB / 0.7453 GB, free: 152.4 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007877/1.628, allocations: 415.6 kB / 0.7457 GB, free: 152.4 MB / 0.4948 GB Notification: Performance of SimCode: time 1.042e-06/1.628, allocations: 3.688 kB / 0.7457 GB, free: 152.4 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.003/5.63, allocations: 38.35 MB / 0.7832 GB, free: 129.6 MB / 0.4948 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_DoubleLine_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_DoubleLine.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe 2>&1)