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.001647/0.001646, allocations: 183.3 kB / 15.77 MB, free: 5.988 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.014/2.014, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.001092/0.001092, allocations: 98.84 kB / 270.2 MB, free: 13.35 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.265/0.265, allocations: 38.05 MB / 356.6 MB, free: 0.793 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004663/0.0004664, allocations: 11.98 kB / 422.8 MB, free: 26.33 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.1075, allocations: 56.32 MB / 479.1 MB, free: 1.941 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine): time 0.01388/0.1214, allocations: 8.852 MB / 488 MB, free: 9.055 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.007175/0.1286, allocations: 2.804 MB / 490.8 MB, free: 6.242 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00119/0.1299, allocations: 63.5 kB / 490.8 MB, free: 6.18 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001213/0.1311, allocations: 298.3 kB / 491.1 MB, free: 5.887 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002725/0.1339, allocations: 0.662 MB / 491.8 MB, free: 5.223 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001597/0.1355, allocations: 391.3 kB / 492.2 MB, free: 4.84 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002094/0.1376, allocations: 0.9356 MB / 493.1 MB, free: 3.902 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006043/0.1382, allocations: 283.2 kB / 493.4 MB, free: 3.613 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001561/0.1398, allocations: 0.6229 MB / 494 MB, free: 2.988 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001773/0.1416, allocations: 0.8143 MB / 494.8 MB, free: 2.172 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002819/0.1419, allocations: 60 kB / 494.9 MB, free: 2.113 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003448/0.1423, allocations: 64 kB / 495 MB, free: 2.051 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008339/0.1431, allocations: 0.5144 MB / 495.5 MB, free: 1.535 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004323/0.1436, allocations: 241.1 kB / 495.7 MB, free: 1.293 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001775/0.1453, allocations: 1.192 MB / 496.9 MB, free: 100 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.227e-06/0.1454, allocations: 0 / 496.9 MB, free: 100 kB / 330.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.1454, allocations: 0 / 496.9 MB, free: 100 kB / 330.7 MB Notification: Performance of Transformations before backend: time 2.506e-05/0.1454, allocations: 0 / 496.9 MB, free: 100 kB / 330.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.006157/0.1516, allocations: 1.666 MB / 498.6 MB, free: 14.37 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.946e-05/0.1517, allocations: 11.97 kB / 498.6 MB, free: 14.36 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003765/0.1521, allocations: 135.2 kB / 498.7 MB, free: 14.21 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003843/0.1525, allocations: 134.4 kB / 498.8 MB, free: 14.08 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004011/0.1565, allocations: 1.094 MB / 499.9 MB, free: 12.95 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001062/0.1566, allocations: 81.92 kB / 0.4883 GB, free: 12.86 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003384/0.157, allocations: 99.81 kB / 0.4884 GB, free: 12.77 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003169/0.1602, allocations: 1.313 MB / 0.4897 GB, free: 11.41 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.204e-05/0.1602, allocations: 3.938 kB / 0.4897 GB, free: 11.41 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001558/0.1604, allocations: 39.97 kB / 0.4897 GB, free: 11.37 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001365/0.1618, allocations: 201.7 kB / 0.4899 GB, free: 11.17 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002904/0.1647, allocations: 0.9524 MB / 0.4908 GB, free: 10.22 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01222/0.177, allocations: 4.527 MB / 0.4953 GB, free: 5.547 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00281/0.1799, allocations: 1.181 MB / 0.4964 GB, free: 4.293 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001276/0.18, allocations: 9.062 kB / 0.4964 GB, free: 4.285 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002313/0.1824, allocations: 0.9449 MB / 0.4973 GB, free: 3.309 MB / 346.7 MB Notification: Performance of pre-optimization done (n=101): time 4.639e-06/0.1824, allocations: 0 / 0.4973 GB, free: 3.309 MB / 346.7 MB Notification: Performance of matching and sorting (n=105): time 0.02074/0.2031, allocations: 6.77 MB / 0.504 GB, free: 12.07 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00018/0.2034, allocations: 200.9 kB / 0.5041 GB, free: 11.83 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001451/0.2048, allocations: 0.751 MB / 0.5049 GB, free: 11.07 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002888/0.2052, allocations: 53.7 kB / 0.5049 GB, free: 11.01 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005066/0.2057, allocations: 498.6 kB / 0.5054 GB, free: 10.52 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000579/0.2063, allocations: 378.9 kB / 0.5058 GB, free: 10.14 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000129/0.2064, allocations: 32 kB / 0.5058 GB, free: 10.11 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002045/0.2066, allocations: 362.8 kB / 0.5061 GB, free: 9.75 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00181/0.2084, allocations: 0.6714 MB / 0.5068 GB, free: 9.078 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002131/0.2106, allocations: 0.9433 MB / 0.5077 GB, free: 8.043 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009324/0.22, allocations: 1.973 MB / 0.5096 GB, free: 6.023 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.3e-05/0.22, allocations: 0 / 0.5096 GB, free: 6.023 MB / 362.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.008912/0.2289, allocations: 2.71 MB / 0.5123 GB, free: 3.293 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.524e-05/0.2291, allocations: 59.41 kB / 0.5123 GB, free: 3.223 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.632e-05/0.2291, allocations: 11.98 kB / 0.5124 GB, free: 3.211 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005768/0.2349, allocations: 1.132 MB / 0.5135 GB, free: 2.074 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001207/0.2362, allocations: 175.7 kB / 0.5136 GB, free: 1.902 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3227/0.5589, allocations: 8.383 MB / 0.5218 GB, free: 49.7 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001662/0.5607, allocations: 117.9 kB / 0.5219 GB, free: 49.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001749/0.5609, allocations: 50 kB / 0.522 GB, free: 49.66 MB / 362.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.line.i[1,1] = 0.0 $DER.line.i[2,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 {(5,88.0%) 44} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009967/0.5619, allocations: 447.1 kB / 0.5224 GB, free: 49.39 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002914/0.5622, allocations: 108.1 kB / 0.5225 GB, free: 49.39 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007249/0.5694, allocations: 2.336 MB / 0.5248 GB, free: 48.54 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.015e-05/0.5695, allocations: 10.34 kB / 0.5248 GB, free: 48.54 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.8e-05/0.5696, allocations: 7.594 kB / 0.5248 GB, free: 48.54 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.084e-05/0.5696, allocations: 8.578 kB / 0.5248 GB, free: 48.54 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0105/0.5801, allocations: 3.646 MB / 0.5284 GB, free: 47.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.66e-05/0.5802, allocations: 1.906 kB / 0.5284 GB, free: 47.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001123/0.5813, allocations: 122.1 kB / 0.5285 GB, free: 47.17 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005016/0.5864, allocations: 1.03 MB / 0.5295 GB, free: 46.93 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003527/0.5868, allocations: 80.27 kB / 0.5296 GB, free: 46.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01657/0.6033, allocations: 15.11 MB / 0.5443 GB, free: 33.98 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.848e-06/0.6034, allocations: 2.969 kB / 0.5443 GB, free: 33.98 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007709/0.6111, allocations: 3.111 MB / 0.5474 GB, free: 31.76 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000938/0.6121, allocations: 319.4 kB / 0.5477 GB, free: 31.43 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003514/0.6125, allocations: 71.14 kB / 0.5477 GB, free: 31.36 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001348/0.6138, allocations: 103.9 kB / 0.5478 GB, free: 31.26 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004976/0.6144, allocations: 121.2 kB / 0.548 GB, free: 31.15 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001314/0.6145, allocations: 39.95 kB / 0.548 GB, free: 31.11 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008307/0.6154, allocations: 0.5066 MB / 0.5485 GB, free: 30.61 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6154, allocations: 0 / 0.5485 GB, free: 30.61 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001948/0.6173, allocations: 436 kB / 0.5489 GB, free: 30.18 MB / 362.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 (ab.t_zero,ab.fault_pp.on,ab.v_pos,ab.first,relay2.y[1],relay2.cnt,$whenCondition2,switch2.switch_1.open,relay1.y[1],relay1.cnt,$whenCondition1,switch1.switch_1.open) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (80): * 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): 6 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 6 {(2,100.0%),(2,100.0%),(2,100.0%),(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(3,100.0%) 7,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008058/0.6254, allocations: 3.877 MB / 0.5527 GB, free: 26.21 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.006839/0.6323, allocations: 2.261 MB / 0.5549 GB, free: 23.92 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.332e-06/0.6324, allocations: 0 / 0.5549 GB, free: 23.92 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005928/0.6383, allocations: 2.78 MB / 0.5576 GB, free: 20.87 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001705/0.6401, allocations: 241.1 kB / 0.5578 GB, free: 20.63 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02577/0.6659, allocations: 16.13 MB / 0.5736 GB, free: 4.102 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008869/0.6668, allocations: 1.245 MB / 0.5748 GB, free: 2.828 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007715/0.6676, allocations: 419.3 kB / 0.5752 GB, free: 2.418 MB / 362.7 MB Notification: Performance of SimCode: time 1.603e-06/0.6676, allocations: 0 / 0.5752 GB, free: 2.418 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.709/4.377, allocations: 47.09 MB / 0.6212 GB, free: 3.258 MB / 410.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)