Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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_latest_PowerSystems_Examples_AC1ph_DC_Elementary_DoubleLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine,fileNamePrefix="PowerSystems_latest_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.0009373/0.0009373, allocations: 180.2 kB / 16.38 MB, free: 5.766 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.173/1.173, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.0008264/0.0008264, allocations: 96.08 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1626/0.1626, allocations: 38.07 MB / 357.2 MB, free: 1.898 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000263/0.0002629, allocations: 12 kB / 424.1 MB, free: 37.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2333/0.2336, allocations: 56.31 MB / 480.4 MB, free: 9.555 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.131/0.3646, allocations: 110.6 MB / 0.5772 GB, free: 7.793 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002476/0.3649, allocations: 103.9 kB / 0.5773 GB, free: 7.691 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06822/0.4332, allocations: 24.49 MB / 0.6012 GB, free: 14.89 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.4332, allocations: 0 / 0.6012 GB, free: 14.89 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.85e-05/0.4333, allocations: 31.98 kB / 0.6012 GB, free: 14.86 MB / 442.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.004411/0.4377, allocations: 1.71 MB / 0.6029 GB, free: 13.07 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/0.4378, allocations: 16.03 kB / 0.6029 GB, free: 13.06 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000379/0.4381, allocations: 139.2 kB / 0.603 GB, free: 12.91 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004281/0.4386, allocations: 134.5 kB / 0.6031 GB, free: 12.78 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00705/0.4456, allocations: 2.502 MB / 0.6056 GB, free: 10.23 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.334e-05/0.4457, allocations: 77.94 kB / 0.6057 GB, free: 10.16 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003338/0.4461, allocations: 135.8 kB / 0.6058 GB, free: 10.03 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002744/0.4488, allocations: 1.774 MB / 0.6075 GB, free: 8.207 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.81e-05/0.4489, allocations: 0 / 0.6075 GB, free: 8.207 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000134/0.449, allocations: 36 kB / 0.6076 GB, free: 8.172 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.542e-05/0.449, allocations: 33.98 kB / 0.6076 GB, free: 8.141 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001665/0.4507, allocations: 1.124 MB / 0.6087 GB, free: 7.012 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007887/0.4586, allocations: 5.79 MB / 0.6143 GB, free: 1.082 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00161/0.4603, allocations: 1.265 MB / 0.6156 GB, free: 15.77 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.276e-05/0.4603, allocations: 9.062 kB / 0.6156 GB, free: 15.77 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001757/0.4621, allocations: 1.362 MB / 0.6169 GB, free: 14.38 MB / 458.7 MB Notification: Performance of pre-optimization done (n=101): time 3.266e-06/0.4621, allocations: 3.938 kB / 0.6169 GB, free: 14.37 MB / 458.7 MB Notification: Performance of matching and sorting (n=105): time 0.02013/0.4822, allocations: 9.224 MB / 0.6259 GB, free: 4.898 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001371/0.4824, allocations: 204.9 kB / 0.6261 GB, free: 4.652 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009258/0.4833, allocations: 0.6525 MB / 0.6268 GB, free: 3.996 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003204/0.4837, allocations: 53.7 kB / 0.6268 GB, free: 3.938 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003935/0.4841, allocations: 488.1 kB / 0.6273 GB, free: 3.453 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004235/0.4845, allocations: 422.8 kB / 0.6277 GB, free: 3.035 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.391e-05/0.4846, allocations: 32 kB / 0.6277 GB, free: 3.004 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.4848, allocations: 369.9 kB / 0.6281 GB, free: 2.637 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001417/0.4862, allocations: 1.015 MB / 0.6291 GB, free: 1.621 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001586/0.4878, allocations: 1.295 MB / 0.6303 GB, free: 232 kB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02442/0.5122, allocations: 8.597 MB / 0.6387 GB, free: 7.566 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.826e-06/0.5123, allocations: 4 kB / 0.6387 GB, free: 7.562 MB / 474.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.009073/0.5214, allocations: 5.134 MB / 0.6437 GB, free: 2.402 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.364e-05/0.5214, allocations: 63.67 kB / 0.6438 GB, free: 2.328 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.538e-05/0.5215, allocations: 12 kB / 0.6438 GB, free: 2.316 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1931/0.7146, allocations: 6.479 MB / 0.6501 GB, free: 135.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008234/0.7155, allocations: 178.9 kB / 0.6503 GB, free: 135.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02426/0.7397, allocations: 16.47 MB / 0.6664 GB, free: 132.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009295/0.7407, allocations: 97.14 kB / 0.6665 GB, free: 132.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001684/0.7409, allocations: 147.3 kB / 0.6666 GB, free: 132.9 MB / 474.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.0007095/0.7416, allocations: 453 kB / 0.6671 GB, free: 132.6 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001756/0.7418, allocations: 101.7 kB / 0.6672 GB, free: 132.6 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01085/0.7526, allocations: 5.082 MB / 0.6721 GB, free: 131.6 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.328e-05/0.7527, allocations: 11.48 kB / 0.6721 GB, free: 131.6 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.774e-06/0.7527, allocations: 7.312 kB / 0.6721 GB, free: 131.6 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.813e-05/0.7527, allocations: 6.688 kB / 0.6721 GB, free: 131.6 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01378/0.7665, allocations: 6.944 MB / 0.6789 GB, free: 129.9 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.515e-05/0.7666, allocations: 7.484 kB / 0.6789 GB, free: 129.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005791/0.7672, allocations: 125 kB / 0.679 GB, free: 129.9 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01675/0.7839, allocations: 6.655 MB / 0.6855 GB, free: 129.3 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004789/0.7844, allocations: 219.7 kB / 0.6858 GB, free: 129.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02042/0.8049, allocations: 21.97 MB / 0.7072 GB, free: 110.4 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.52e-06/0.8049, allocations: 14.38 kB / 0.7072 GB, free: 110.4 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01153/0.8165, allocations: 6.087 MB / 0.7132 GB, free: 104.3 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009951/0.8175, allocations: 411.7 kB / 0.7136 GB, free: 103.8 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003217/0.8178, allocations: 183.9 kB / 0.7137 GB, free: 103.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006642/0.8185, allocations: 75.89 kB / 0.7138 GB, free: 103.6 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006017/0.8191, allocations: 188 kB / 0.714 GB, free: 103.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001627/0.8193, allocations: 141.4 kB / 0.7141 GB, free: 103.3 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0005609/0.8198, allocations: 0.5018 MB / 0.7146 GB, free: 102.8 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.8199, allocations: 0 / 0.7146 GB, free: 102.8 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001768/0.8216, allocations: 0.5312 MB / 0.7151 GB, free: 102.2 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) * 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.01122/0.8329, allocations: 6.669 MB / 0.7216 GB, free: 95.54 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.004855/0.8378, allocations: 3.069 MB / 0.7246 GB, free: 92.45 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.8378, allocations: 384 / 0.7246 GB, free: 92.45 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003774/0.8416, allocations: 2.407 MB / 0.727 GB, free: 89.95 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001077/0.8427, allocations: 241.7 kB / 0.7272 GB, free: 89.71 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01972/0.8624, allocations: 19.95 MB / 0.7467 GB, free: 69.52 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006736/0.8631, allocations: 1.249 MB / 0.7479 GB, free: 68.24 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0006802/0.8638, allocations: 206.5 kB / 0.7481 GB, free: 68.04 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003942/0.8642, allocations: 423.3 kB / 0.7485 GB, free: 67.63 MB / 474.7 MB Notification: Performance of SimCode: time 9.72e-07/0.8642, allocations: 0 / 0.7485 GB, free: 67.63 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05771/0.9219, allocations: 48.17 MB / 0.7956 GB, free: 19.5 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001425/0.9221, allocations: 221.1 kB / 0.7958 GB, free: 19.26 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.847/3.77, allocations: 4 kB / 0.7958 GB, free: 19.26 MB / 474.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_DoubleLine_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_DoubleLine.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe 2>&1)