Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_DoublelLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_DoublelLine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001394/0.001394, allocations: 179.5 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.496/1.496, allocations: 194.5 MB / 211.6 MB, free: 3.047 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.00164/0.00164, allocations: 110.3 kB / 256.9 MB, free: 4.348 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1668/0.1668, allocations: 38 MB / 340.1 MB, free: 1.355 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003598/0.0003599, allocations: 8 kB / 403.9 MB, free: 68.71 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08998/0.09036, allocations: 53.24 MB / 457.1 MB, free: 15.46 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3242/0.4146, allocations: 104.8 MB / 0.5488 GB, free: 6.648 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002833/0.415, allocations: 88.39 kB / 0.5488 GB, free: 6.602 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06675/0.4817, allocations: 24.46 MB / 0.5727 GB, free: 1.277 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.595e-06/0.4818, allocations: 7.938 kB / 0.5727 GB, free: 1.27 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.577e-05/0.4819, allocations: 23.98 kB / 0.5727 GB, free: 1.246 MB / 378.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.004635/0.4865, allocations: 1.718 MB / 0.5744 GB, free: 15.54 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/0.4866, allocations: 15.95 kB / 0.5744 GB, free: 15.53 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003666/0.4869, allocations: 140.7 kB / 0.5746 GB, free: 15.43 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004393/0.4874, allocations: 127.2 kB / 0.5747 GB, free: 15.31 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007282/0.4947, allocations: 2.507 MB / 0.5771 GB, free: 13.16 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.271e-05/0.4948, allocations: 76.36 kB / 0.5772 GB, free: 13.12 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004557/0.4953, allocations: 118.8 kB / 0.5773 GB, free: 13.03 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003349/0.4986, allocations: 1.773 MB / 0.5791 GB, free: 11.65 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.323e-05/0.4987, allocations: 3.938 kB / 0.5791 GB, free: 11.64 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001354/0.4988, allocations: 39.5 kB / 0.5791 GB, free: 11.63 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.787e-05/0.4989, allocations: 34 kB / 0.5791 GB, free: 11.6 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001951/0.5008, allocations: 1.123 MB / 0.5802 GB, free: 10.79 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009443/0.5103, allocations: 5.796 MB / 0.5859 GB, free: 5.949 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001613/0.5119, allocations: 1.262 MB / 0.5871 GB, free: 5.039 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.516e-05/0.512, allocations: 16.56 kB / 0.5871 GB, free: 5.027 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001701/0.5137, allocations: 1.345 MB / 0.5885 GB, free: 3.945 MB / 394.7 MB Notification: Performance of pre-optimization done (n=101): time 2.715e-06/0.5138, allocations: 0 / 0.5885 GB, free: 3.945 MB / 394.7 MB Notification: Performance of matching and sorting (n=105): time 0.02112/0.5349, allocations: 9.238 MB / 0.5975 GB, free: 11.69 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001397/0.5351, allocations: 204.9 kB / 0.5977 GB, free: 11.44 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00102/0.5361, allocations: 0.6486 MB / 0.5983 GB, free: 10.79 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002383/0.5364, allocations: 57.7 kB / 0.5984 GB, free: 10.72 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004006/0.5368, allocations: 484.1 kB / 0.5988 GB, free: 10.24 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004897/0.5373, allocations: 418.9 kB / 0.5992 GB, free: 9.828 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000126/0.5374, allocations: 31.94 kB / 0.5993 GB, free: 9.797 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001669/0.5376, allocations: 361.9 kB / 0.5996 GB, free: 9.438 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001483/0.5391, allocations: 1.019 MB / 0.6006 GB, free: 8.418 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001672/0.5407, allocations: 1.295 MB / 0.6019 GB, free: 7.027 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02526/0.566, allocations: 8.609 MB / 0.6103 GB, free: 14.36 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.176e-05/0.5661, allocations: 4 kB / 0.6103 GB, free: 14.36 MB / 426.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.01014/0.5762, allocations: 5.141 MB / 0.6153 GB, free: 9.195 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.933e-05/0.5763, allocations: 59.41 kB / 0.6153 GB, free: 9.125 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.743e-05/0.5764, allocations: 8 kB / 0.6154 GB, free: 9.117 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01407/0.5904, allocations: 6.489 MB / 0.6217 GB, free: 2.617 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006793/0.5911, allocations: 175.7 kB / 0.6219 GB, free: 2.445 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02489/0.616, allocations: 16.48 MB / 0.638 GB, free: 1.816 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001107/0.6172, allocations: 91.91 kB / 0.638 GB, free: 1.727 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003586/0.6176, allocations: 155.9 kB / 0.6382 GB, free: 1.574 MB / 442.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.001182/0.6188, allocations: 436.8 kB / 0.6386 GB, free: 1.125 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003524/0.6191, allocations: 106.8 kB / 0.6387 GB, free: 1.02 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01225/0.6314, allocations: 5.082 MB / 0.6437 GB, free: 11.88 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.267e-05/0.6314, allocations: 8 kB / 0.6437 GB, free: 11.88 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.807e-06/0.6315, allocations: 4 kB / 0.6437 GB, free: 11.87 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.627e-05/0.6315, allocations: 3.984 kB / 0.6437 GB, free: 11.87 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01553/0.647, allocations: 6.951 MB / 0.6505 GB, free: 4.828 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.995e-06/0.6471, allocations: 0 / 0.6505 GB, free: 4.828 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005386/0.6476, allocations: 123.9 kB / 0.6506 GB, free: 4.707 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01823/0.6658, allocations: 6.657 MB / 0.6571 GB, free: 14.02 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004037/0.6663, allocations: 223.8 kB / 0.6573 GB, free: 13.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2554/0.9217, allocations: 21.95 MB / 0.6788 GB, free: 145.6 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.201e-06/0.9218, allocations: 4.562 kB / 0.6788 GB, free: 145.6 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01539/0.9372, allocations: 6.087 MB / 0.6847 GB, free: 145.2 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001255/0.9385, allocations: 412.9 kB / 0.6851 GB, free: 145.1 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000368/0.9389, allocations: 183.3 kB / 0.6853 GB, free: 145.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007219/0.9396, allocations: 76.3 kB / 0.6853 GB, free: 145.1 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006875/0.9403, allocations: 192.4 kB / 0.6855 GB, free: 145.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001803/0.9405, allocations: 149.9 kB / 0.6857 GB, free: 145.1 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0006091/0.9411, allocations: 0.4997 MB / 0.6862 GB, free: 145 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.9411, allocations: 0 / 0.6862 GB, free: 145 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001794/0.9429, allocations: 0.5264 MB / 0.6867 GB, free: 145 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.01194/0.9549, allocations: 6.663 MB / 0.6932 GB, free: 144 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.005195/0.9601, allocations: 3.071 MB / 0.6962 GB, free: 142.9 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/0.9601, allocations: 0 / 0.6962 GB, free: 142.9 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003786/0.9639, allocations: 2.408 MB / 0.6985 GB, free: 141.8 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001103/0.965, allocations: 243.5 kB / 0.6988 GB, free: 141.7 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02115/0.9862, allocations: 19.95 MB / 0.7182 GB, free: 130.1 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007779/0.987, allocations: 1.255 MB / 0.7195 GB, free: 129 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.000779/0.9878, allocations: 212.3 kB / 0.7197 GB, free: 128.8 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000434/0.9883, allocations: 411.9 kB / 0.7201 GB, free: 128.5 MB / 474.7 MB Notification: Performance of SimCode: time 1.062e-06/0.9883, allocations: 2.844 kB / 0.7201 GB, free: 128.5 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06495/1.053, allocations: 48.16 MB / 0.7671 GB, free: 84.73 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001642/1.053, allocations: 221.8 kB / 0.7673 GB, free: 84.48 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.057/4.11, allocations: 0 / 0.7673 GB, free: 84.48 MB / 474.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_DoublelLine_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_DoublelLine.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine.pipe 2>&1)