Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.RXline.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.AC3ph.Transmission.RXline,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Transmission_RXline",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transmission.RXline,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Transmission_RXline",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.001536/0.001536, allocations: 181.7 kB / 15.76 MB, free: 6.344 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.241/2.241, 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.001191/0.00119, allocations: 82.88 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2982/0.2982, allocations: 38.05 MB / 356.6 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00065/0.0006502, allocations: 12 kB / 422.8 MB, free: 26.33 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1282/0.1289, allocations: 56.33 MB / 479.1 MB, free: 1.941 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5423/0.6712, allocations: 102.7 MB / 0.5682 GB, free: 13.14 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003506/0.6716, allocations: 96.8 kB / 0.5683 GB, free: 13.09 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1123/0.7839, allocations: 22.01 MB / 0.5898 GB, free: 10.12 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.386e-06/0.784, allocations: 0 / 0.5898 GB, free: 10.12 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.908e-05/0.7841, allocations: 16 kB / 0.5898 GB, free: 10.11 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: 242 * Number of variables: 242 Notification: Performance of Generate backend data structure: time 0.004898/0.789, allocations: 1.265 MB / 0.591 GB, free: 8.828 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.838e-05/0.7891, allocations: 16.03 kB / 0.591 GB, free: 8.812 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006674/0.7898, allocations: 146.9 kB / 0.5912 GB, free: 8.715 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001625/0.7914, allocations: 162.6 kB / 0.5913 GB, free: 8.555 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00553/0.797, allocations: 1.209 MB / 0.5925 GB, free: 7.516 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001449/0.7972, allocations: 78.52 kB / 0.5926 GB, free: 7.465 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003894/0.7976, allocations: 84.23 kB / 0.5927 GB, free: 7.406 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003891/0.8015, allocations: 1.276 MB / 0.5939 GB, free: 6.43 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.47e-05/0.8016, allocations: 0 / 0.5939 GB, free: 6.43 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001461/0.8018, allocations: 40.92 kB / 0.594 GB, free: 6.414 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001379/0.8019, allocations: 65.28 kB / 0.594 GB, free: 6.352 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003731/0.8057, allocations: 1.125 MB / 0.5951 GB, free: 5.566 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01265/0.8184, allocations: 4.581 MB / 0.5996 GB, free: 1.633 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002441/0.8209, allocations: 0.8208 MB / 0.6004 GB, free: 1.055 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001398/0.8211, allocations: 16.7 kB / 0.6004 GB, free: 1.039 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002391/0.8235, allocations: 0.9126 MB / 0.6013 GB, free: 316 kB / 394.7 MB Notification: Performance of pre-optimization done (n=126): time 5.14e-06/0.8236, allocations: 0 / 0.6013 GB, free: 316 kB / 394.7 MB Notification: Performance of matching and sorting (n=127): time 0.01078/0.8344, allocations: 4.044 MB / 0.6053 GB, free: 13.03 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001857/0.8346, allocations: 238.2 kB / 0.6055 GB, free: 12.75 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008907/0.8355, allocations: 433.6 kB / 0.6059 GB, free: 12.4 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003024/0.8358, allocations: 52.5 kB / 0.6059 GB, free: 12.36 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004436/0.8363, allocations: 439.2 kB / 0.6064 GB, free: 12 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006578/0.837, allocations: 376.5 kB / 0.6067 GB, free: 11.68 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001272/0.8371, allocations: 27.62 kB / 0.6067 GB, free: 11.68 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001885/0.8373, allocations: 365.5 kB / 0.6071 GB, free: 11.33 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001555/0.8389, allocations: 0.5346 MB / 0.6076 GB, free: 10.97 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001896/0.8408, allocations: 0.7716 MB / 0.6084 GB, free: 10.32 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001835/0.8427, allocations: 0.6624 MB / 0.609 GB, free: 9.855 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.676e-05/0.8428, allocations: 4 kB / 0.609 GB, free: 9.852 MB / 410.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.007102/0.8499, allocations: 2.041 MB / 0.611 GB, free: 8.297 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.414e-05/0.85, allocations: 62.41 kB / 0.6111 GB, free: 8.227 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006043/0.8561, allocations: 1.681 MB / 0.6127 GB, free: 6.762 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003754/0.8599, allocations: 0.6604 MB / 0.6134 GB, free: 6.098 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001024/0.861, allocations: 131.7 kB / 0.6135 GB, free: 5.969 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01685/0.8779, allocations: 6.17 MB / 0.6195 GB, free: 15.66 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001361/0.8793, allocations: 71.94 kB / 0.6196 GB, free: 15.59 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002247/0.8796, allocations: 48 kB / 0.6196 GB, free: 15.55 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 67 (system.initime,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.switch1.switch_a.arc,switch1.switch_a.arc,$PRE.switch1.switch_a.open,switch1.switch_a.open,switch1.switch_a.closed,$PRE.switch1.switch_b.arc,switch1.switch_b.arc,$PRE.switch1.switch_b.open,switch1.switch_b.open,switch1.switch_b.closed,$PRE.switch1.switch_c.arc,switch1.switch_c.arc,$PRE.switch1.switch_c.open,switch1.switch_c.open,switch1.switch_c.closed,$PRE.switch2.switch_a.arc,switch2.switch_a.arc,$PRE.switch2.switch_a.open,switch2.switch_a.open,switch2.switch_a.closed,$PRE.switch2.switch_b.arc,switch2.switch_b.arc,$PRE.switch2.switch_b.open,switch2.switch_b.open,switch2.switch_b.closed,$PRE.switch2.switch_c.arc,switch2.switch_c.arc,$PRE.switch2.switch_c.open,switch2.switch_c.open,switch2.switch_c.closed,$PRE.relay1.y[1],relay1.y[1],$PRE.relay1.y[2],relay1.y[2],$PRE.relay1.y[3],relay1.y[3],$PRE.relay2.y[1],relay2.y[1],$PRE.relay2.y[2],relay2.y[2],$PRE.relay2.y[3],relay2.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 116 * Array equations: 3 * 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 {(7,100.0%) 29} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00114/0.8807, allocations: 430 kB / 0.62 GB, free: 15.11 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000359/0.8811, allocations: 87.05 kB / 0.6201 GB, free: 15.02 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004264/0.8854, allocations: 1.451 MB / 0.6215 GB, free: 13.55 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.269e-05/0.8855, allocations: 24 kB / 0.6216 GB, free: 13.53 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.08e-05/0.8855, allocations: 8 kB / 0.6216 GB, free: 13.52 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.102e-05/0.8856, allocations: 3.984 kB / 0.6216 GB, free: 13.52 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008702/0.8943, allocations: 2.826 MB / 0.6243 GB, free: 10.61 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-05/0.8943, allocations: 0 / 0.6243 GB, free: 10.61 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00232/0.8967, allocations: 235.8 kB / 0.6246 GB, free: 10.38 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.819e-05/0.8968, allocations: 11.95 kB / 0.6246 GB, free: 10.37 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002545/0.897, allocations: 23.98 kB / 0.6246 GB, free: 10.34 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.26e-05/0.897, allocations: 4 kB / 0.6246 GB, free: 10.34 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.69e-06/0.8971, allocations: 4 kB / 0.6246 GB, free: 10.34 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006339/0.9034, allocations: 2.376 MB / 0.6269 GB, free: 7.891 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004062/0.9039, allocations: 148.1 kB / 0.6271 GB, free: 7.727 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000383/0.9043, allocations: 31.98 kB / 0.6271 GB, free: 7.695 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009273/0.9052, allocations: 51.94 kB / 0.6271 GB, free: 7.645 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004293/0.9057, allocations: 116.8 kB / 0.6273 GB, free: 7.531 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000129/0.9058, allocations: 31.98 kB / 0.6273 GB, free: 7.5 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0007038/0.9065, allocations: 334.8 kB / 0.6276 GB, free: 7.172 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.9065, allocations: 3.938 kB / 0.6276 GB, free: 7.168 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001983/0.9085, allocations: 327.9 kB / 0.6279 GB, free: 6.848 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (line.i[1],line.i[2],line.i[3]) * Number of discrete variables: 47 (switch1.switch_b.closed,switch1.switch_c.closed,switch1.switch_a.closed,switch2.switch_a.closed,switch2.switch_b.closed,switch2.switch_c.closed,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,switch1.switch_a.arc,switch1.switch_a.open,switch1.switch_b.arc,switch1.switch_b.open,switch1.switch_c.arc,switch1.switch_c.open,switch2.switch_a.arc,switch2.switch_a.open,switch2.switch_b.arc,switch2.switch_b.open,switch2.switch_c.arc,switch2.switch_c.open,relay1.y[1],relay1.y[2],relay1.y[3],relay1.cnt,relay2.y[1],relay2.y[2],relay2.y[3],relay2.cnt,system.initime) * Number of discrete states: 16 (relay2.y[3],relay2.y[2],relay2.y[1],relay2.cnt,$whenCondition2,relay1.y[3],relay1.y[2],relay1.y[1],relay1.cnt,$whenCondition1,switch2.switch_c.open,switch2.switch_a.open,switch2.switch_b.open,switch1.switch_b.open,switch1.switch_c.open,switch1.switch_a.open) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (100): * Single equations (assignments): 88 * Array equations: 3 * Algorithm blocks: 2 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007292/0.9159, allocations: 3.274 MB / 0.6311 GB, free: 3.508 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00595/0.9219, allocations: 1.884 MB / 0.633 GB, free: 1.578 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.855e-06/0.922, allocations: 0 / 0.633 GB, free: 1.578 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002455/0.9244, allocations: 0.9025 MB / 0.6338 GB, free: 0.6562 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001306/0.9258, allocations: 111.2 kB / 0.6339 GB, free: 0.5508 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.023/0.9488, allocations: 11.07 MB / 0.6448 GB, free: 5.219 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001103/0.95, allocations: 1.125 MB / 0.6459 GB, free: 4.07 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001077/0.9511, allocations: 347.3 kB / 0.6462 GB, free: 3.734 MB / 442.7 MB Notification: Performance of SimCode: time 1.393e-06/0.9512, allocations: 0 / 0.6462 GB, free: 3.734 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.414/4.366, allocations: 17.96 MB / 0.6637 GB, free: 1.73 MB / 458.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.RXline.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Transmission_RXline_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Transmission_RXline.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe 2>&1)