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.001668/0.001668, allocations: 177.1 kB / 8.349 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.519/1.519, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008874/0.0008875, allocations: 88.16 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1736/0.1736, allocations: 37.98 MB / 348 MB, free: 7.777 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.877e-05/1.878e-05, allocations: 0 / 410.7 MB, free: 46.85 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1227/0.1227, allocations: 56.33 MB / 467 MB, free: 6.465 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.44/0.5628, allocations: 109.8 MB / 0.5633 GB, free: 0.9414 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003011/0.5631, allocations: 95.94 kB / 0.5634 GB, free: 0.8477 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.07313/0.6363, allocations: 24.21 MB / 0.587 GB, free: 8.352 MB / 427.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.6363, allocations: 0 / 0.587 GB, free: 8.352 MB / 427.1 MB Notification: Performance of Transformations before backend: time 7.372e-05/0.6364, allocations: 24 kB / 0.587 GB, free: 8.328 MB / 427.1 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.003549/0.64, allocations: 1.492 MB / 0.5885 GB, free: 6.77 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.909e-05/0.64, allocations: 8.031 kB / 0.5885 GB, free: 6.762 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003802/0.6404, allocations: 134.5 kB / 0.5886 GB, free: 6.629 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007582/0.648, allocations: 2.482 MB / 0.5911 GB, free: 4.102 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.946e-05/0.6481, allocations: 31.95 kB / 0.5911 GB, free: 4.07 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003363/0.6485, allocations: 87.91 kB / 0.5912 GB, free: 3.984 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001889/0.6504, allocations: 1.039 MB / 0.5922 GB, free: 2.945 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00249/0.6529, allocations: 1.638 MB / 0.5938 GB, free: 1.266 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.623e-05/0.6529, allocations: 4 kB / 0.5938 GB, free: 1.262 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001159/0.653, allocations: 7.984 kB / 0.5938 GB, free: 1.254 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.576e-05/0.6531, allocations: 37.98 kB / 0.5938 GB, free: 1.215 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009426/0.6625, allocations: 5.636 MB / 0.5993 GB, free: 11.45 MB / 443.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001629/0.6642, allocations: 1.211 MB / 0.6005 GB, free: 10.2 MB / 443.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001906/0.6661, allocations: 1.119 MB / 0.6016 GB, free: 9.074 MB / 443.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.726e-05/0.6662, allocations: 16.77 kB / 0.6016 GB, free: 9.059 MB / 443.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001869/0.6681, allocations: 1.307 MB / 0.6029 GB, free: 7.723 MB / 443.1 MB Notification: Performance of pre-optimization done (n=101): time 2.936e-06/0.6681, allocations: 0 / 0.6029 GB, free: 7.723 MB / 443.1 MB Notification: Performance of matching and sorting (n=105): time 0.01622/0.6843, allocations: 6.922 MB / 0.6097 GB, free: 0.7227 MB / 443.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001494/0.6845, allocations: 205.2 kB / 0.6099 GB, free: 488 kB / 443.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001027/0.6856, allocations: 0.59 MB / 0.6104 GB, free: 15.88 MB / 459.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003004/0.6859, allocations: 33.7 kB / 0.6105 GB, free: 15.84 MB / 459.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004686/0.6864, allocations: 488 kB / 0.6109 GB, free: 15.36 MB / 459.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005453/0.6869, allocations: 406.8 kB / 0.6113 GB, free: 14.95 MB / 459.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.594e-05/0.687, allocations: 4 kB / 0.6113 GB, free: 14.95 MB / 459.1 MB Notification: Performance of setup shared object (initialization): time 0.0001901/0.6872, allocations: 361.9 kB / 0.6117 GB, free: 14.59 MB / 459.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001428/0.6886, allocations: 0.9878 MB / 0.6126 GB, free: 13.6 MB / 459.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001594/0.6903, allocations: 1.248 MB / 0.6139 GB, free: 12.26 MB / 459.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02527/0.7155, allocations: 8.562 MB / 0.6222 GB, free: 3.652 MB / 459.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.25e-05/0.7156, allocations: 0 / 0.6222 GB, free: 3.652 MB / 459.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.01005/0.7257, allocations: 4.928 MB / 0.627 GB, free: 14.71 MB / 475.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001055/0.7258, allocations: 67.39 kB / 0.6271 GB, free: 14.64 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.997e-05/0.7258, allocations: 7.938 kB / 0.6271 GB, free: 14.63 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0141/0.7399, allocations: 6.25 MB / 0.6332 GB, free: 8.371 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009447/0.741, allocations: 187.7 kB / 0.6334 GB, free: 8.188 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3254/1.066, allocations: 14.71 MB / 0.6478 GB, free: 135.5 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00115/1.068, allocations: 66.8 kB / 0.6478 GB, free: 135.5 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002778/1.068, allocations: 147.9 kB / 0.648 GB, free: 135.5 MB / 475.1 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 () * 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.0004653/1.068, allocations: 222.1 kB / 0.6482 GB, free: 135.4 MB / 475.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01333/1.082, allocations: 4.757 MB / 0.6528 GB, free: 135.2 MB / 475.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006706/1.082, allocations: 101.8 kB / 0.6529 GB, free: 135.2 MB / 475.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01333/1.096, allocations: 4.916 MB / 0.6577 GB, free: 135.1 MB / 475.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.183e-05/1.096, allocations: 13.73 kB / 0.6577 GB, free: 135.1 MB / 475.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.212e-05/1.096, allocations: 1.188 kB / 0.6577 GB, free: 135.1 MB / 475.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-05/1.096, allocations: 11.03 kB / 0.6577 GB, free: 135.1 MB / 475.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01586/1.112, allocations: 6.706 MB / 0.6643 GB, free: 134.7 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.994e-05/1.112, allocations: 3.812 kB / 0.6643 GB, free: 134.7 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000791/1.113, allocations: 125.5 kB / 0.6644 GB, free: 134.7 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01752/1.13, allocations: 6.592 MB / 0.6708 GB, free: 134.2 MB / 475.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005127/1.131, allocations: 208.2 kB / 0.671 GB, free: 134.2 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02063/1.151, allocations: 20.36 MB / 0.6909 GB, free: 124.2 MB / 475.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.611e-06/1.151, allocations: 1.5 kB / 0.6909 GB, free: 124.2 MB / 475.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0124/1.164, allocations: 5.927 MB / 0.6967 GB, free: 119.7 MB / 475.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009849/1.165, allocations: 409.5 kB / 0.6971 GB, free: 119.3 MB / 475.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003811/1.165, allocations: 169 kB / 0.6973 GB, free: 119.2 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007508/1.166, allocations: 62.91 kB / 0.6973 GB, free: 119.1 MB / 475.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000706/1.167, allocations: 185.7 kB / 0.6975 GB, free: 119 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001822/1.167, allocations: 153.5 kB / 0.6977 GB, free: 118.8 MB / 475.1 MB Notification: Performance of sorting global known variables: time 0.0006355/1.168, allocations: 447.1 kB / 0.6981 GB, free: 118.4 MB / 475.1 MB Notification: Performance of sort global known variables: time 1.402e-06/1.168, allocations: 0 / 0.6981 GB, free: 118.4 MB / 475.1 MB Notification: Performance of remove unused functions: time 0.002307/1.17, allocations: 0.5124 MB / 0.6986 GB, free: 117.9 MB / 475.1 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.01124/1.181, allocations: 6.488 MB / 0.7049 GB, free: 111.4 MB / 475.1 MB Notification: Performance of simCode: created initialization part: time 0.004754/1.186, allocations: 2.931 MB / 0.7078 GB, free: 108.4 MB / 475.1 MB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/1.186, allocations: 3.906 kB / 0.7078 GB, free: 108.4 MB / 475.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003655/1.19, allocations: 2.312 MB / 0.71 GB, free: 106.1 MB / 475.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001199/1.191, allocations: 221.2 kB / 0.7103 GB, free: 105.9 MB / 475.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007137/1.198, allocations: 4.966 MB / 0.7151 GB, free: 101 MB / 475.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006555/1.199, allocations: 1.257 MB / 0.7163 GB, free: 99.73 MB / 475.1 MB Notification: Performance of simCode: alias equations: time 0.0006518/1.199, allocations: 204.6 kB / 0.7165 GB, free: 99.54 MB / 475.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004017/1.2, allocations: 415.3 kB / 0.7169 GB, free: 99.13 MB / 475.1 MB Notification: Performance of SimCode: time 1.492e-06/1.2, allocations: 0 / 0.7169 GB, free: 99.13 MB / 475.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07237/1.272, allocations: 45.22 MB / 0.7611 GB, free: 53.94 MB / 475.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000154/1.272, allocations: 158.5 kB / 0.7612 GB, free: 53.73 MB / 475.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.212/4.485, allocations: 0 / 0.7612 GB, free: 53.73 MB / 475.1 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)