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.001644/0.001644, allocations: 174.8 kB / 13.63 MB, free: 1.684 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.601/1.601, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.0008677/0.0008675, allocations: 86.66 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.169/0.169, allocations: 37.98 MB / 353.5 MB, free: 1.742 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.937e-05/2.939e-05, allocations: 0 / 417.8 MB, free: 29.02 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1133, allocations: 56.33 MB / 474.2 MB, free: 4.691 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4091/0.5224, allocations: 110.5 MB / 0.5709 GB, free: 8.367 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002381/0.5227, allocations: 91.38 kB / 0.571 GB, free: 8.324 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07353/0.5962, allocations: 24.5 MB / 0.595 GB, free: 2.965 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.5963, allocations: 0 / 0.595 GB, free: 2.965 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000138/0.5964, allocations: 28 kB / 0.595 GB, free: 2.938 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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.004692/0.6011, allocations: 1.494 MB / 0.5964 GB, free: 1.441 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.801e-05/0.6012, allocations: 8.031 kB / 0.5965 GB, free: 1.434 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005299/0.6017, allocations: 138.5 kB / 0.5966 GB, free: 1.34 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006621/0.6024, allocations: 130.2 kB / 0.5967 GB, free: 1.215 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008583/0.611, allocations: 2.493 MB / 0.5991 GB, free: 15.08 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001384/0.6112, allocations: 81.25 kB / 0.5992 GB, free: 15.04 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007141/0.6119, allocations: 117.2 kB / 0.5993 GB, free: 14.95 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003872/0.6158, allocations: 1.747 MB / 0.601 GB, free: 13.59 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.657e-05/0.6159, allocations: 0 / 0.601 GB, free: 13.59 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002331/0.6161, allocations: 43.05 kB / 0.6011 GB, free: 13.58 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.118e-05/0.6162, allocations: 37.98 kB / 0.6011 GB, free: 13.54 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002181/0.6184, allocations: 1.097 MB / 0.6022 GB, free: 12.75 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009803/0.6282, allocations: 5.793 MB / 0.6078 GB, free: 7.91 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001707/0.6299, allocations: 1.25 MB / 0.6091 GB, free: 7.012 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001272/0.6312, allocations: 0.9817 MB / 0.61 GB, free: 6.371 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.263e-05/0.6313, allocations: 20.72 kB / 0.61 GB, free: 6.352 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001902/0.6332, allocations: 1.336 MB / 0.6113 GB, free: 5.281 MB / 410.7 MB Notification: Performance of pre-optimization done (n=101): time 5.42e-06/0.6332, allocations: 0 / 0.6113 GB, free: 5.281 MB / 410.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: voltage2.theta Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=104): time 0.01858/0.6518, allocations: 8.001 MB / 0.6192 GB, free: 14.27 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000164/0.652, allocations: 204.9 kB / 0.6194 GB, free: 14.03 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001257/0.6533, allocations: 0.6449 MB / 0.62 GB, free: 13.38 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003317/0.6537, allocations: 61.69 kB / 0.62 GB, free: 13.32 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004906/0.6542, allocations: 488 kB / 0.6205 GB, free: 12.83 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006345/0.6548, allocations: 411 kB / 0.6209 GB, free: 12.43 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001975/0.655, allocations: 28 kB / 0.6209 GB, free: 12.4 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001956/0.6552, allocations: 365.9 kB / 0.6213 GB, free: 12.04 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001665/0.6569, allocations: 1.004 MB / 0.6223 GB, free: 11.03 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001795/0.6587, allocations: 1.278 MB / 0.6235 GB, free: 9.66 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02584/0.6846, allocations: 8.62 MB / 0.6319 GB, free: 0.9805 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.029e-05/0.6847, allocations: 3.984 kB / 0.6319 GB, free: 0.9766 MB / 426.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.0112/0.6959, allocations: 5.102 MB / 0.6369 GB, free: 11.85 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.995e-05/0.696, allocations: 63.36 kB / 0.637 GB, free: 11.78 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.465e-05/0.6961, allocations: 8 kB / 0.637 GB, free: 11.77 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01503/0.7111, allocations: 6.481 MB / 0.6433 GB, free: 5.277 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008045/0.712, allocations: 171.7 kB / 0.6435 GB, free: 5.109 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02608/0.7381, allocations: 15.62 MB / 0.6587 GB, free: 5.348 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001216/0.7393, allocations: 95.91 kB / 0.6588 GB, free: 5.254 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003759/0.7397, allocations: 144 kB / 0.659 GB, free: 5.113 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: 32 * 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 (127): * Single equations (assignments): 124 * 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.0006913/0.7404, allocations: 255.1 kB / 0.6592 GB, free: 4.844 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000425/0.7409, allocations: 114.7 kB / 0.6593 GB, free: 4.73 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01328/0.7542, allocations: 5.043 MB / 0.6642 GB, free: 15.64 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.244e-05/0.7543, allocations: 12 kB / 0.6642 GB, free: 15.62 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.524e-05/0.7543, allocations: 4 kB / 0.6642 GB, free: 15.62 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.251e-05/0.7543, allocations: 15.91 kB / 0.6643 GB, free: 15.61 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01753/0.7719, allocations: 6.892 MB / 0.671 GB, free: 8.625 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.158e-05/0.7719, allocations: 0 / 0.671 GB, free: 8.625 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00079/0.7727, allocations: 123.8 kB / 0.6711 GB, free: 8.504 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02021/0.793, allocations: 6.647 MB / 0.6776 GB, free: 1.828 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006768/0.7937, allocations: 219.8 kB / 0.6778 GB, free: 1.613 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02815/0.8219, allocations: 20.85 MB / 0.6982 GB, free: 12.09 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/0.8219, allocations: 3.984 kB / 0.6982 GB, free: 12.08 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01537/0.8373, allocations: 6.028 MB / 0.7041 GB, free: 5.992 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001251/0.8386, allocations: 415.6 kB / 0.7045 GB, free: 5.566 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007596/0.8394, allocations: 179.9 kB / 0.7046 GB, free: 5.391 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001106/0.8405, allocations: 75.89 kB / 0.7047 GB, free: 5.316 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008696/0.8414, allocations: 192.6 kB / 0.7049 GB, free: 5.129 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003144/0.8418, allocations: 143.9 kB / 0.705 GB, free: 4.988 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0009262/0.8427, allocations: 0.4913 MB / 0.7055 GB, free: 4.5 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8427, allocations: 3.938 kB / 0.7055 GB, free: 4.496 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.00273/0.8455, allocations: 0.5352 MB / 0.706 GB, free: 3.961 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (69): * Single equations (assignments): 56 * 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.338/1.184, allocations: 6.531 MB / 0.7124 GB, free: 164.8 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.006778/1.19, allocations: 3.004 MB / 0.7153 GB, free: 164.5 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 6.983e-06/1.19, allocations: 0 / 0.7153 GB, free: 164.5 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005152/1.196, allocations: 2.357 MB / 0.7176 GB, free: 163.7 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001498/1.197, allocations: 242.4 kB / 0.7179 GB, free: 163.7 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00964/1.207, allocations: 5.027 MB / 0.7228 GB, free: 162.3 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001084/1.208, allocations: 1.254 MB / 0.724 GB, free: 161.6 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0008802/1.209, allocations: 207.5 kB / 0.7242 GB, free: 161.6 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005/1.209, allocations: 416.2 kB / 0.7246 GB, free: 161.6 MB / 0.4948 GB Notification: Performance of SimCode: time 1.363e-06/1.209, allocations: 0 / 0.7246 GB, free: 161.6 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08097/1.29, allocations: 48.2 MB / 0.7717 GB, free: 138 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002136/1.291, allocations: 194.3 kB / 0.7719 GB, free: 137.7 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.42/4.711, allocations: 3.391 kB / 0.7719 GB, free: 137.7 MB / 0.4948 GB (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)