Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.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.AC1ph_DC.Elementary.Fault,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Fault") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Fault,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Fault") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001271/0.001271, allocations: 171.9 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.255/1.255, allocations: 205.4 MB / 222.2 MB, free: 9.027 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.0007261/0.0007261, allocations: 92.3 kB / 270.6 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1669/0.1669, allocations: 38.07 MB / 356.9 MB, free: 1.734 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003554/0.0003554, allocations: 12 kB / 423.3 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2266/0.227, allocations: 56.32 MB / 479.6 MB, free: 9.246 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Fault): time 0.005965/0.233, allocations: 7.095 MB / 486.7 MB, free: 4.449 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002905/0.2359, allocations: 1.859 MB / 488.6 MB, free: 3.121 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004521/0.2364, allocations: 43.22 kB / 488.6 MB, free: 3.102 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004832/0.2369, allocations: 160.5 kB / 488.8 MB, free: 3.023 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001062/0.2379, allocations: 482.7 kB / 489.2 MB, free: 2.77 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007654/0.2387, allocations: 279.2 kB / 489.5 MB, free: 2.641 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001447/0.2402, allocations: 1.38 MB / 490.9 MB, free: 2.125 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003662/0.2406, allocations: 248.3 kB / 491.1 MB, free: 2.031 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006505/0.2412, allocations: 429 kB / 491.6 MB, free: 1.859 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007924/0.242, allocations: 0.5353 MB / 492.1 MB, free: 1.68 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 9.328e-05/0.2421, allocations: 33.94 kB / 492.1 MB, free: 1.68 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001407/0.2423, allocations: 39.59 kB / 492.2 MB, free: 1.676 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003422/0.2426, allocations: 311.4 kB / 492.5 MB, free: 1.59 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003891/0.243, allocations: 390.7 kB / 492.9 MB, free: 1.363 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007113/0.2437, allocations: 0.68 MB / 493.5 MB, free: 1.207 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.2438, allocations: 0 / 493.5 MB, free: 1.207 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2438, allocations: 1.062 kB / 493.5 MB, free: 1.207 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.673e-05/0.2438, allocations: 0 / 493.5 MB, free: 1.207 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: 158 * Number of variables: 158 Notification: Performance of Generate backend data structure: time 0.001737/0.2455, allocations: 1.031 MB / 494.6 MB, free: 472 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.494e-05/0.2456, allocations: 8.438 kB / 494.6 MB, free: 472 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001506/0.2457, allocations: 88.45 kB / 494.7 MB, free: 428 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008172/0.2466, allocations: 0.564 MB / 495.2 MB, free: 36 kB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.586e-05/0.2466, allocations: 51.69 kB / 495.3 MB, free: 16 kB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000133/0.2468, allocations: 67.05 kB / 495.3 MB, free: 15.99 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001373/0.2481, allocations: 0.8322 MB / 496.2 MB, free: 15.6 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.52e-05/0.2482, allocations: 1.031 kB / 496.2 MB, free: 15.6 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.027e-05/0.2482, allocations: 31.16 kB / 496.2 MB, free: 15.58 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001838/0.2484, allocations: 53.19 kB / 496.3 MB, free: 15.57 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00108/0.2495, allocations: 0.6137 MB / 496.9 MB, free: 15.37 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004032/0.2536, allocations: 2.987 MB / 499.9 MB, free: 13.26 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001095/0.2547, allocations: 0.9325 MB / 0.4891 GB, free: 12.53 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005935/0.2553, allocations: 408.2 kB / 0.4894 GB, free: 12.34 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.671e-05/0.2553, allocations: 6.188 kB / 0.4894 GB, free: 12.34 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008743/0.2562, allocations: 0.6318 MB / 0.4901 GB, free: 11.91 MB / 330.7 MB Notification: Performance of pre-optimization done (n=81): time 2.415e-06/0.2562, allocations: 0 / 0.4901 GB, free: 11.91 MB / 330.7 MB Notification: Performance of matching and sorting (n=82): time 0.004408/0.2607, allocations: 2.583 MB / 0.4926 GB, free: 10.25 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001111/0.2608, allocations: 208.3 kB / 0.4928 GB, free: 10.02 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005603/0.2614, allocations: 489.6 kB / 0.4933 GB, free: 9.723 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.357e-05/0.2614, allocations: 50.27 kB / 0.4933 GB, free: 9.676 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002415/0.2617, allocations: 343.1 kB / 0.4936 GB, free: 9.371 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002083/0.2619, allocations: 236.6 kB / 0.4939 GB, free: 9.172 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.459e-05/0.262, allocations: 19.38 kB / 0.4939 GB, free: 9.156 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.2621, allocations: 385 kB / 0.4942 GB, free: 8.789 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005135/0.2626, allocations: 314.8 kB / 0.4945 GB, free: 8.645 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006381/0.2633, allocations: 0.4986 MB / 0.495 GB, free: 8.266 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001072/0.2644, allocations: 0.8608 MB / 0.4959 GB, free: 7.637 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.2644, allocations: 1.125 kB / 0.4959 GB, free: 7.637 MB / 330.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.00176/0.2661, allocations: 1.082 MB / 0.4969 GB, free: 7.059 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.674e-05/0.2662, allocations: 63.64 kB / 0.497 GB, free: 6.992 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.153e-05/0.2662, allocations: 5.5 kB / 0.497 GB, free: 6.992 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004898/0.2667, allocations: 148.2 kB / 0.4971 GB, free: 6.918 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007827/0.2675, allocations: 208.3 kB / 0.4973 GB, free: 6.875 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002945/0.2705, allocations: 3.104 MB / 0.5004 GB, free: 3.941 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000613/0.2711, allocations: 45.28 kB / 0.5004 GB, free: 3.922 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.617e-05/0.2712, allocations: 34.19 kB / 0.5004 GB, free: 3.914 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 64 (system.initime,$PRE.fault_Ab.fault_pp.t0,fault_Ab.fault_pp.t0,$PRE.fault_Ab.fault_pg.t0,fault_Ab.fault_pg.t0,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.relay1.y[1],relay1.y[1],$PRE.relay1.y[2],relay1.y[2],$PRE.relay2.y[1],relay2.y[1],$PRE.relay2.y[2],relay2.y[2],$PRE.switch1.switch_1.arc,switch1.switch_1.arc,$PRE.switch1.switch_1.open,switch1.switch_1.open,switch1.switch_1.closed,$PRE.switch1.switch_2.arc,switch1.switch_2.arc,$PRE.switch1.switch_2.open,switch1.switch_2.open,switch1.switch_2.closed,$PRE.switch2.switch_1.arc,switch2.switch_1.arc,$PRE.switch2.switch_1.open,switch2.switch_1.open,switch2.switch_1.closed,$PRE.switch2.switch_2.arc,switch2.switch_2.arc,$PRE.switch2.switch_2.open,switch2.switch_2.open,switch2.switch_2.closed,$PRE.fault_Ab.t_zero,fault_Ab.t_zero,$PRE.fault_Ab.v_pos,fault_Ab.v_pos,$PRE.fault_Ab.first,fault_Ab.first,$PRE.fault_Ab.fault_pp.on,fault_Ab.fault_pp.on,$PRE.fault_Ab.fault_pg.on,fault_Ab.fault_pg.on) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 118 * 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: 2 * Mixed (continuous/discrete) equation systems: 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: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005372/0.2717, allocations: 368 kB / 0.5008 GB, free: 3.617 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001081/0.2718, allocations: 66.09 kB / 0.5009 GB, free: 3.586 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00176/0.2736, allocations: 1.029 MB / 0.5019 GB, free: 2.988 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.126e-05/0.2736, allocations: 15.48 kB / 0.5019 GB, free: 2.98 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.2736, allocations: 1 kB / 0.5019 GB, free: 2.98 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/0.2737, allocations: 5.266 kB / 0.5019 GB, free: 2.977 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003124/0.2768, allocations: 1.914 MB / 0.5037 GB, free: 1.023 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.743e-06/0.2768, allocations: 4 kB / 0.5038 GB, free: 1.02 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006362/0.2775, allocations: 163.8 kB / 0.5039 GB, free: 0.8594 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006303/0.2781, allocations: 169.4 kB / 0.5041 GB, free: 0.6875 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.787e-05/0.2782, allocations: 31.98 kB / 0.5041 GB, free: 0.6562 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002841/0.281, allocations: 3.084 MB / 0.5071 GB, free: 13.3 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.57e-06/0.2811, allocations: 7.922 kB / 0.5071 GB, free: 13.3 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002361/0.2834, allocations: 1.555 MB / 0.5086 GB, free: 11.7 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003187/0.2838, allocations: 212.2 kB / 0.5088 GB, free: 11.47 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001063/0.2839, allocations: 27.94 kB / 0.5089 GB, free: 11.45 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003618/0.2843, allocations: 39.95 kB / 0.5089 GB, free: 11.41 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001911/0.2845, allocations: 92.52 kB / 0.509 GB, free: 11.32 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.682e-05/0.2845, allocations: 23.98 kB / 0.509 GB, free: 11.29 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003953/0.2849, allocations: 334.9 kB / 0.5093 GB, free: 10.96 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2849, allocations: 0 / 0.5093 GB, free: 10.96 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007524/0.2857, allocations: 216 kB / 0.5095 GB, free: 10.75 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (line.i1[1],line.i1[2],line.i2[1],line.i2[2]) * Number of discrete variables: 43 (switch1.switch_1.closed,switch1.switch_2.closed,switch2.switch_1.closed,switch2.switch_2.closed,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,relay1.y[1],relay1.y[2],relay1.cnt,relay2.y[1],relay2.y[2],relay2.cnt,switch1.switch_1.arc,switch1.switch_1.open,switch1.switch_2.arc,switch1.switch_2.open,switch2.switch_1.arc,switch2.switch_1.open,switch2.switch_2.arc,switch2.switch_2.open,fault_Ab.t_zero,fault_Ab.v_pos,fault_Ab.first,fault_Ab.fault_pp.on,fault_Ab.fault_pp.t0,fault_Ab.fault_pg.on,fault_Ab.fault_pg.t0,system.initime) * Number of discrete states: 17 (fault_Ab.t_zero,fault_Ab.fault_pp.on,fault_Ab.fault_pg.on,fault_Ab.v_pos,fault_Ab.first,relay2.y[2],relay2.y[1],relay2.cnt,$whenCondition2,switch2.switch_2.open,switch2.switch_1.open,relay1.y[2],relay1.y[1],relay1.cnt,$whenCondition1,switch1.switch_2.open,switch1.switch_1.open) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 9 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 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: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002055/0.2859, allocations: 151 kB / 0.5097 GB, free: 10.6 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001978/0.2879, allocations: 1.22 MB / 0.5109 GB, free: 9.328 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.2879, allocations: 3.938 kB / 0.5109 GB, free: 9.324 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001372/0.2893, allocations: 0.8591 MB / 0.5117 GB, free: 8.41 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008573/0.2902, allocations: 154.1 kB / 0.5119 GB, free: 8.262 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003151/0.2933, allocations: 2.141 MB / 0.514 GB, free: 6.078 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005775/0.2939, allocations: 0.9932 MB / 0.5149 GB, free: 5.055 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002157/0.2942, allocations: 63.44 kB / 0.515 GB, free: 4.992 MB / 346.7 MB Notification: Performance of SimCode: time 5.61e-07/0.2942, allocations: 0 / 0.515 GB, free: 4.992 MB / 346.7 MB Notification: Performance of Templates: time 0.0178/0.312, allocations: 15.35 MB / 0.53 GB, free: 5.637 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Fault --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.pipe 2>&1)