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: translateModel(PowerSystems.Examples.AC3ph.Transmission.RXline,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.RXline") translateModel(PowerSystems.Examples.AC3ph.Transmission.RXline,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.RXline") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009815/0.0009815, allocations: 174.1 kB / 16.07 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.214/1.214, allocations: 205.4 MB / 222.2 MB, free: 9.035 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.0007191/0.0007191, allocations: 88.73 kB / 270.6 MB, free: 8.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1635/0.1635, allocations: 38.09 MB / 356.9 MB, free: 1.738 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003433/0.0003433, allocations: 16 kB / 423.3 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.227/0.2273, allocations: 56.33 MB / 479.6 MB, free: 9.246 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transmission.RXline): time 0.006317/0.2337, allocations: 6.622 MB / 486.3 MB, free: 4.785 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003547/0.2373, allocations: 2.261 MB / 488.5 MB, free: 3.184 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007068/0.238, allocations: 35.94 kB / 488.5 MB, free: 3.168 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005984/0.2386, allocations: 157 kB / 488.7 MB, free: 3.09 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001606/0.2403, allocations: 0.5421 MB / 489.2 MB, free: 2.82 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001063/0.2413, allocations: 353.8 kB / 489.6 MB, free: 2.664 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001917/0.2433, allocations: 1.379 MB / 491 MB, free: 2.152 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001497/0.2448, allocations: 0.8916 MB / 491.9 MB, free: 1.645 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009267/0.2457, allocations: 422.7 kB / 492.3 MB, free: 1.484 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001151/0.2469, allocations: 0.6252 MB / 492.9 MB, free: 1.293 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001277/0.247, allocations: 46.81 kB / 492.9 MB, free: 1.289 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001002/0.248, allocations: 0.4996 MB / 493.4 MB, free: 1.172 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004944/0.2486, allocations: 431.9 kB / 493.9 MB, free: 1.059 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005488/0.2491, allocations: 475.5 kB / 494.3 MB, free: 0.7891 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001371/0.2505, allocations: 1.011 MB / 495.3 MB, free: 0.5664 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.715e-06/0.2505, allocations: 5.828 kB / 495.3 MB, free: 0.5625 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.893e-06/0.2505, allocations: 0 / 495.3 MB, free: 0.5625 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.909e-05/0.2506, allocations: 0 / 495.3 MB, free: 0.5625 MB / 314.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.002359/0.2529, allocations: 1.205 MB / 496.6 MB, free: 15.75 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.739e-05/0.253, allocations: 8.844 kB / 496.6 MB, free: 15.75 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008369/0.2538, allocations: 155 kB / 496.7 MB, free: 15.69 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001142/0.255, allocations: 0.6049 MB / 497.3 MB, free: 15.29 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.031e-05/0.2551, allocations: 73.41 kB / 497.4 MB, free: 15.25 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002246/0.2553, allocations: 101.9 kB / 497.5 MB, free: 15.22 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002259/0.2576, allocations: 1.306 MB / 498.8 MB, free: 14.43 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.865e-05/0.2576, allocations: 2.281 kB / 498.8 MB, free: 14.43 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001082/0.2577, allocations: 41.38 kB / 498.8 MB, free: 14.4 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000155/0.2579, allocations: 60.36 kB / 498.9 MB, free: 14.39 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002008/0.2599, allocations: 1.171 MB / 0.4883 GB, free: 13.84 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006892/0.2668, allocations: 4.691 MB / 0.4929 GB, free: 10.2 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001528/0.2684, allocations: 1.285 MB / 0.4942 GB, free: 9.207 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009134/0.2693, allocations: 0.6372 MB / 0.4948 GB, free: 8.883 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.247e-05/0.2694, allocations: 10.44 kB / 0.4948 GB, free: 8.883 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001243/0.2706, allocations: 0.8924 MB / 0.4957 GB, free: 8.32 MB / 330.7 MB Notification: Performance of pre-optimization done (n=122): time 2.816e-06/0.2707, allocations: 0 / 0.4957 GB, free: 8.32 MB / 330.7 MB Notification: Performance of matching and sorting (n=123): time 0.005586/0.2763, allocations: 3.573 MB / 0.4992 GB, free: 6.297 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001318/0.2764, allocations: 234.6 kB / 0.4994 GB, free: 6.016 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005923/0.277, allocations: 0.4901 MB / 0.4999 GB, free: 5.512 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.513e-05/0.2771, allocations: 49.7 kB / 0.4999 GB, free: 5.457 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003037/0.2774, allocations: 408 kB / 0.5003 GB, free: 5.051 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003073/0.2777, allocations: 363.1 kB / 0.5007 GB, free: 4.691 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.233e-05/0.2778, allocations: 24 kB / 0.5007 GB, free: 4.668 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001752/0.278, allocations: 398.7 kB / 0.5011 GB, free: 4.27 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007618/0.2787, allocations: 0.5186 MB / 0.5016 GB, free: 3.754 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009293/0.2797, allocations: 0.7738 MB / 0.5023 GB, free: 2.887 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001765/0.2815, allocations: 1.395 MB / 0.5037 GB, free: 1.379 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.855e-06/0.2815, allocations: 7.938 kB / 0.5037 GB, free: 1.371 MB / 330.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.003723/0.2852, allocations: 2.043 MB / 0.5057 GB, free: 15.3 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.467e-05/0.2853, allocations: 59.41 kB / 0.5057 GB, free: 15.23 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002859/0.2882, allocations: 1.638 MB / 0.5073 GB, free: 13.58 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001854/0.29, allocations: 0.6488 MB / 0.508 GB, free: 12.93 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005142/0.2906, allocations: 139.7 kB / 0.5081 GB, free: 12.79 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008518/0.2991, allocations: 5.887 MB / 0.5139 GB, free: 6.77 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008472/0.3, allocations: 67.8 kB / 0.5139 GB, free: 6.703 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001112/0.3001, allocations: 48 kB / 0.514 GB, free: 6.656 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (124): * Single equations (assignments): 119 * Array equations: 2 * 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.0007051/0.3008, allocations: 430 kB / 0.5144 GB, free: 6.215 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001907/0.301, allocations: 91.05 kB / 0.5145 GB, free: 6.125 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00206/0.3031, allocations: 1.407 MB / 0.5158 GB, free: 4.691 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.308e-05/0.3031, allocations: 27.98 kB / 0.5159 GB, free: 4.664 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.3032, allocations: 4 kB / 0.5159 GB, free: 4.66 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.152e-05/0.3032, allocations: 7.922 kB / 0.5159 GB, free: 4.652 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004024/0.3072, allocations: 2.771 MB / 0.5186 GB, free: 1.805 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.154e-06/0.3072, allocations: 0 / 0.5186 GB, free: 1.805 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001001/0.3082, allocations: 219.8 kB / 0.5188 GB, free: 1.59 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.127e-05/0.3083, allocations: 16 kB / 0.5188 GB, free: 1.574 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.3e-05/0.3084, allocations: 27.98 kB / 0.5188 GB, free: 1.547 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.207e-06/0.3084, allocations: 4 kB / 0.5188 GB, free: 1.543 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.201e-06/0.3084, allocations: 4 kB / 0.5188 GB, free: 1.539 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003036/0.3114, allocations: 2.269 MB / 0.5211 GB, free: 15.23 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002821/0.3117, allocations: 156 kB / 0.5212 GB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001318/0.3119, allocations: 31.98 kB / 0.5212 GB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004522/0.3123, allocations: 43.95 kB / 0.5213 GB, free: 14.98 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002548/0.3126, allocations: 112.8 kB / 0.5214 GB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.173e-05/0.3127, allocations: 35.98 kB / 0.5214 GB, free: 14.84 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004304/0.3131, allocations: 338.8 kB / 0.5218 GB, free: 14.5 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3131, allocations: 4 kB / 0.5218 GB, free: 14.5 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001034/0.3142, allocations: 300 kB / 0.522 GB, free: 14.21 MB / 362.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_c.closed,switch1.switch_a.closed,switch1.switch_b.closed,switch2.switch_b.closed,switch2.switch_c.closed,switch2.switch_a.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,switch2.switch_a.open,switch2.switch_c.open,switch2.switch_b.open,relay1.y[3],relay1.y[2],relay1.y[1],relay1.cnt,$whenCondition1,switch1.switch_b.open,switch1.switch_a.open,switch1.switch_c.open) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (99): * Single equations (assignments): 88 * Array equations: 2 * 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.0002721/0.3144, allocations: 179 kB / 0.5222 GB, free: 14.02 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002865/0.3173, allocations: 1.856 MB / 0.524 GB, free: 12.13 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.3173, allocations: 0 / 0.524 GB, free: 12.13 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001049/0.3184, allocations: 0.8837 MB / 0.5249 GB, free: 11.22 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008228/0.3192, allocations: 138.4 kB / 0.525 GB, free: 11.09 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003525/0.3228, allocations: 2.731 MB / 0.5277 GB, free: 8.309 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006394/0.3234, allocations: 1.105 MB / 0.5288 GB, free: 7.18 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002889/0.3237, allocations: 63.44 kB / 0.5288 GB, free: 7.117 MB / 362.7 MB Notification: Performance of SimCode: time 5.71e-07/0.3237, allocations: 0 / 0.5288 GB, free: 7.117 MB / 362.7 MB Notification: Performance of Templates: time 0.01989/0.3436, allocations: 13.92 MB / 0.5424 GB, free: 9.172 MB / 378.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.RXline.makefile (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 & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.RXline --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe 2>&1)