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.001057/0.001057, allocations: 180.3 kB / 8.353 MB, free: 0.7227 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.59/1.59, allocations: 194.4 MB / 203.1 MB, free: 13.02 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.00208/0.00208, allocations: 116.6 kB / 248.1 MB, free: 20 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1624/0.1624, allocations: 37.93 MB / 330.9 MB, free: 2.648 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.845e-05/1.849e-05, allocations: 0 / 390.5 MB, free: 6.996 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2849/0.285, allocations: 53.23 MB / 443.7 MB, free: 17.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4489/0.7339, allocations: 104 MB / 0.5349 GB, free: 37.02 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002941/0.7342, allocations: 88.16 kB / 0.535 GB, free: 37.02 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06676/0.801, allocations: 24.16 MB / 0.5586 GB, free: 34.19 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.8011, allocations: 0 / 0.5586 GB, free: 34.19 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.373e-05/0.8011, allocations: 27.38 kB / 0.5586 GB, free: 34.18 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.002917/0.8041, allocations: 1.482 MB / 0.56 GB, free: 33.43 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.499e-05/0.8041, allocations: 11.72 kB / 0.5601 GB, free: 33.43 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002839/0.8044, allocations: 129.7 kB / 0.5602 GB, free: 33.37 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006368/0.8108, allocations: 2.493 MB / 0.5626 GB, free: 32.89 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.33e-05/0.8109, allocations: 27.34 kB / 0.5626 GB, free: 32.89 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002657/0.8111, allocations: 85.16 kB / 0.5627 GB, free: 32.88 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001559/0.8127, allocations: 1.04 MB / 0.5637 GB, free: 32.88 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002012/0.8147, allocations: 1.641 MB / 0.5653 GB, free: 32.52 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.184e-05/0.8148, allocations: 0 / 0.5653 GB, free: 32.52 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001187/0.8149, allocations: 3.906 kB / 0.5653 GB, free: 32.52 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.125e-05/0.8149, allocations: 37.27 kB / 0.5654 GB, free: 32.52 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007263/0.8222, allocations: 5.637 MB / 0.5709 GB, free: 29.98 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001174/0.8234, allocations: 1.214 MB / 0.5721 GB, free: 29.71 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001506/0.8249, allocations: 1.12 MB / 0.5732 GB, free: 29.55 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.469e-05/0.825, allocations: 15.22 kB / 0.5732 GB, free: 29.55 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001362/0.8264, allocations: 1.317 MB / 0.5745 GB, free: 29.11 MB / 378.7 MB Notification: Performance of pre-optimization done (n=101): time 2.485e-06/0.8264, allocations: 0 / 0.5745 GB, free: 29.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=105): time 0.0143/0.8407, allocations: 6.93 MB / 0.5812 GB, free: 26.8 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001077/0.8409, allocations: 208.1 kB / 0.5814 GB, free: 26.57 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009623/0.8418, allocations: 0.5855 MB / 0.582 GB, free: 26.38 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003353/0.8422, allocations: 37.02 kB / 0.582 GB, free: 26.35 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000356/0.8425, allocations: 484.2 kB / 0.5825 GB, free: 26.09 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004247/0.843, allocations: 407.9 kB / 0.5829 GB, free: 25.82 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001156/0.8431, allocations: 0 / 0.5829 GB, free: 25.82 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001002/0.8432, allocations: 367.4 kB / 0.5832 GB, free: 25.49 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00134/0.8446, allocations: 0.9833 MB / 0.5842 GB, free: 25.39 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001444/0.846, allocations: 1.244 MB / 0.5854 GB, free: 24.99 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02371/0.8697, allocations: 8.565 MB / 0.5938 GB, free: 21.26 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.298e-05/0.8698, allocations: 0 / 0.5938 GB, free: 21.26 MB / 378.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.008719/0.8785, allocations: 4.935 MB / 0.5986 GB, free: 17.28 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.192e-05/0.8786, allocations: 63.47 kB / 0.5987 GB, free: 17.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.565e-05/0.8787, allocations: 8 kB / 0.5987 GB, free: 17.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01292/0.8916, allocations: 6.258 MB / 0.6048 GB, free: 11.85 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008092/0.8924, allocations: 175.7 kB / 0.6049 GB, free: 11.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01919/0.9116, allocations: 14.72 MB / 0.6193 GB, free: 12.83 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001237/0.9129, allocations: 67.91 kB / 0.6194 GB, free: 12.76 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002479/0.9132, allocations: 148 kB / 0.6195 GB, free: 12.62 MB / 394.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 () * 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.0005114/0.9137, allocations: 219.1 kB / 0.6197 GB, free: 12.38 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01244/0.9262, allocations: 4.747 MB / 0.6244 GB, free: 7.605 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005431/0.9268, allocations: 106.8 kB / 0.6245 GB, free: 7.5 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01272/0.9395, allocations: 4.922 MB / 0.6293 GB, free: 2.547 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.21e-05/0.9396, allocations: 8 kB / 0.6293 GB, free: 2.539 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.177e-05/0.9396, allocations: 0 / 0.6293 GB, free: 2.539 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.288e-05/0.9396, allocations: 7.984 kB / 0.6293 GB, free: 2.531 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01598/0.9556, allocations: 6.712 MB / 0.6359 GB, free: 11.75 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.738e-05/0.9557, allocations: 3.938 kB / 0.6359 GB, free: 11.75 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007683/0.9565, allocations: 127.8 kB / 0.636 GB, free: 11.62 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02021/0.9767, allocations: 6.595 MB / 0.6424 GB, free: 5 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006401/0.9774, allocations: 207.8 kB / 0.6426 GB, free: 4.797 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02658/1.004, allocations: 20.36 MB / 0.6625 GB, free: 15.85 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.521e-06/1.004, allocations: 0 / 0.6625 GB, free: 15.85 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01384/1.018, allocations: 5.91 MB / 0.6683 GB, free: 9.875 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001076/1.019, allocations: 415.6 kB / 0.6687 GB, free: 9.449 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004109/1.019, allocations: 167.9 kB / 0.6688 GB, free: 9.285 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007935/1.02, allocations: 59.89 kB / 0.6689 GB, free: 9.227 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007141/1.021, allocations: 189 kB / 0.6691 GB, free: 9.039 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002/1.021, allocations: 143.9 kB / 0.6692 GB, free: 8.898 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0006722/1.022, allocations: 455.1 kB / 0.6696 GB, free: 8.457 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.7e-07/1.022, allocations: 0 / 0.6696 GB, free: 8.457 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001942/1.024, allocations: 0.5078 MB / 0.6701 GB, free: 7.949 MB / 442.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) * 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.01337/1.037, allocations: 6.484 MB / 0.6765 GB, free: 1.406 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005652/1.043, allocations: 2.922 MB / 0.6793 GB, free: 14.45 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/1.043, allocations: 0.5 kB / 0.6793 GB, free: 14.45 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004458/1.047, allocations: 2.34 MB / 0.6816 GB, free: 12.02 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001381/1.049, allocations: 228.8 kB / 0.6818 GB, free: 11.8 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008054/1.057, allocations: 4.959 MB / 0.6867 GB, free: 6.785 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009504/1.058, allocations: 1.245 MB / 0.6879 GB, free: 5.508 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0006524/1.058, allocations: 213.2 kB / 0.6881 GB, free: 5.297 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005092/1.059, allocations: 415.3 kB / 0.6885 GB, free: 4.891 MB / 458.7 MB Notification: Performance of SimCode: time 1.142e-06/1.059, allocations: 0 / 0.6885 GB, free: 4.891 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3448/1.404, allocations: 45.19 MB / 0.7326 GB, free: 153.3 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001617/1.404, allocations: 139.3 kB / 0.7328 GB, free: 153.1 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.193/4.597, allocations: 6.438 kB / 0.7328 GB, free: 153.1 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)