Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_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_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_DoubleLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine,fileNamePrefix="PowerSystems_cpp_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.002474/0.002479, allocations: 185.7 kB / 8.013 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.072/2.072, allocations: 205.3 MB / 213.7 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001067/0.001067, allocations: 90.64 kB / 261.8 MB, free: 1.68 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2619/0.2619, allocations: 37.99 MB / 347.7 MB, free: 5.77 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.028e-05/2.042e-05, allocations: 4 kB / 409.9 MB, free: 35.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1258/0.1258, allocations: 56.33 MB / 466.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5102/0.6361, allocations: 109.8 MB / 0.5626 GB, free: 1.551 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002966/0.6365, allocations: 85.52 kB / 0.5627 GB, free: 1.508 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1174/0.7539, allocations: 24.21 MB / 0.5863 GB, free: 12.94 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.754, allocations: 0 / 0.5863 GB, free: 12.94 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001199/0.7541, allocations: 27.94 kB / 0.5863 GB, free: 12.91 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.006486/0.7606, allocations: 1.486 MB / 0.5878 GB, free: 11.43 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.522e-05/0.7607, allocations: 12.03 kB / 0.5878 GB, free: 11.41 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008781/0.7616, allocations: 126.5 kB / 0.5879 GB, free: 11.29 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0119/0.7735, allocations: 2.496 MB / 0.5904 GB, free: 9.176 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.889e-05/0.7737, allocations: 31.95 kB / 0.5904 GB, free: 9.145 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006234/0.7743, allocations: 83.77 kB / 0.5905 GB, free: 9.066 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003133/0.7774, allocations: 1.038 MB / 0.5915 GB, free: 8.34 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004727/0.7822, allocations: 1.638 MB / 0.5931 GB, free: 7.027 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.987e-05/0.7823, allocations: 3.938 kB / 0.5931 GB, free: 7.023 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001932/0.7825, allocations: 4 kB / 0.5931 GB, free: 7.02 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.716e-05/0.7826, allocations: 37.5 kB / 0.5931 GB, free: 6.984 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01647/0.7991, allocations: 5.633 MB / 0.5986 GB, free: 2.254 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002674/0.8019, allocations: 1.212 MB / 0.5998 GB, free: 1.391 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003209/0.8051, allocations: 1.124 MB / 0.6009 GB, free: 0.6016 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001423/0.8053, allocations: 8.781 kB / 0.6009 GB, free: 0.5938 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00297/0.8083, allocations: 1.315 MB / 0.6022 GB, free: 15.54 MB / 410.7 MB Notification: Performance of pre-optimization done (n=101): time 4.579e-06/0.8084, allocations: 4 kB / 0.6022 GB, free: 15.54 MB / 410.7 MB Notification: Performance of matching and sorting (n=105): time 0.0286/0.837, allocations: 6.921 MB / 0.609 GB, free: 9.625 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001707/0.8372, allocations: 208.5 kB / 0.6092 GB, free: 9.379 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001227/0.8384, allocations: 0.585 MB / 0.6097 GB, free: 8.918 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003791/0.8388, allocations: 36.88 kB / 0.6098 GB, free: 8.879 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005283/0.8394, allocations: 489.8 kB / 0.6102 GB, free: 8.473 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008837/0.8403, allocations: 410.8 kB / 0.6106 GB, free: 8.066 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001835/0.8405, allocations: 4 kB / 0.6106 GB, free: 8.062 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002354/0.8407, allocations: 362.8 kB / 0.611 GB, free: 7.699 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002509/0.8433, allocations: 0.9878 MB / 0.6119 GB, free: 6.711 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002923/0.8462, allocations: 1.248 MB / 0.6132 GB, free: 5.367 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.04145/0.8877, allocations: 7.126 MB / 0.6201 GB, free: 14.2 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.41e-05/0.8878, allocations: 4 kB / 0.6201 GB, free: 14.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.01692/0.9047, allocations: 4.874 MB / 0.6249 GB, free: 9.312 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.375e-05/0.9049, allocations: 59.41 kB / 0.6249 GB, free: 9.242 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.285e-05/0.9049, allocations: 8 kB / 0.625 GB, free: 9.234 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02627/0.9312, allocations: 6.254 MB / 0.6311 GB, free: 2.973 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001351/0.9326, allocations: 183.6 kB / 0.6312 GB, free: 2.793 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03976/0.9724, allocations: 14.72 MB / 0.6456 GB, free: 3.941 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00169/0.9741, allocations: 71.8 kB / 0.6457 GB, free: 3.871 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003519/0.9745, allocations: 144 kB / 0.6458 GB, free: 3.73 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 () * 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.0006673/0.9752, allocations: 223.1 kB / 0.646 GB, free: 3.492 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02248/0.9977, allocations: 4.754 MB / 0.6507 GB, free: 14.7 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006748/0.9984, allocations: 102.8 kB / 0.6508 GB, free: 14.6 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0231/1.022, allocations: 4.926 MB / 0.6556 GB, free: 9.641 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.375e-05/1.022, allocations: 15.94 kB / 0.6556 GB, free: 9.625 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.093e-05/1.022, allocations: 0 / 0.6556 GB, free: 9.625 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.628e-05/1.022, allocations: 7.969 kB / 0.6556 GB, free: 9.617 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02884/1.051, allocations: 6.697 MB / 0.6621 GB, free: 2.855 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.039e-05/1.051, allocations: 0 / 0.6621 GB, free: 2.855 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001207/1.052, allocations: 123.9 kB / 0.6623 GB, free: 2.734 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03657/1.088, allocations: 6.599 MB / 0.6687 GB, free: 12.11 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007462/1.089, allocations: 207.8 kB / 0.6689 GB, free: 11.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0445/1.134, allocations: 20.36 MB / 0.6888 GB, free: 6.965 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.633e-06/1.134, allocations: 4 kB / 0.6888 GB, free: 6.961 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02565/1.159, allocations: 5.933 MB / 0.6946 GB, free: 0.9688 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001691/1.161, allocations: 411.7 kB / 0.695 GB, free: 0.5469 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007867/1.162, allocations: 167.9 kB / 0.6951 GB, free: 392 kB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00151/1.164, allocations: 59.89 kB / 0.6952 GB, free: 332 kB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009614/1.165, allocations: 197 kB / 0.6954 GB, free: 132 kB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.3208/1.485, allocations: 142.3 kB / 0.6955 GB, free: 153.8 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001104/1.487, allocations: 448.2 kB / 0.6959 GB, free: 153.7 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.22e-07/1.487, allocations: 0 / 0.6959 GB, free: 153.7 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0032/1.49, allocations: 0.507 MB / 0.6964 GB, free: 153.7 MB / 490.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.02343/1.513, allocations: 6.482 MB / 0.7028 GB, free: 152.7 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.009299/1.523, allocations: 2.935 MB / 0.7056 GB, free: 152.4 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/1.523, allocations: 0 / 0.7056 GB, free: 152.4 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007249/1.53, allocations: 2.312 MB / 0.7079 GB, free: 151.7 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001917/1.532, allocations: 228.1 kB / 0.7081 GB, free: 151.7 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01269/1.545, allocations: 5.04 MB / 0.713 GB, free: 150.2 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001102/1.546, allocations: 1.254 MB / 0.7143 GB, free: 149.5 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008327/1.547, allocations: 417.2 kB / 0.7147 GB, free: 149.5 MB / 490.7 MB Notification: Performance of SimCode: time 1.332e-06/1.547, allocations: 0.6562 kB / 0.7147 GB, free: 149.5 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.187/5.733, allocations: 38.1 MB / 0.7519 GB, free: 131.9 MB / 490.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_DoubleLine_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_DoubleLine.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe 2>&1)