Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001542/0.001542, allocations: 183 kB / 15.76 MB, free: 6.363 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.032/2.032, allocations: 205.4 MB / 221.9 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001129/0.001129, allocations: 110.7 kB / 270.3 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2598/0.2598, allocations: 38.07 MB / 356.6 MB, free: 0.8086 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004506/0.0004507, allocations: 12 kB / 422.7 MB, free: 26.46 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1121, allocations: 56.32 MB / 479 MB, free: 2.07 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5074/0.6196, allocations: 100.3 MB / 0.5657 GB, free: 15.54 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003515/0.62, allocations: 94.89 kB / 0.5658 GB, free: 15.48 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07655/0.6966, allocations: 14.97 MB / 0.5804 GB, free: 2.574 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.384e-06/0.6966, allocations: 0 / 0.5804 GB, free: 2.574 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.676e-05/0.6967, allocations: 24 kB / 0.5805 GB, free: 2.551 MB / 378.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.003335/0.7, allocations: 1.07 MB / 0.5815 GB, free: 1.469 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.989e-05/0.7001, allocations: 12.03 kB / 0.5815 GB, free: 1.457 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003471/0.7005, allocations: 86.95 kB / 0.5816 GB, free: 1.371 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004505/0.705, allocations: 1.102 MB / 0.5827 GB, free: 420 kB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.365e-05/0.7051, allocations: 49.81 kB / 0.5827 GB, free: 392 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001854/0.7053, allocations: 63 kB / 0.5828 GB, free: 348 kB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002119/0.7075, allocations: 0.8062 MB / 0.5836 GB, free: 15.71 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.088e-05/0.7075, allocations: 3.938 kB / 0.5836 GB, free: 15.71 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001062/0.7076, allocations: 39.12 kB / 0.5836 GB, free: 15.69 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.72e-05/0.7077, allocations: 16 kB / 0.5836 GB, free: 15.68 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001675/0.7094, allocations: 0.5989 MB / 0.5842 GB, free: 15.26 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006641/0.716, allocations: 2.958 MB / 0.5871 GB, free: 12.7 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001526/0.7176, allocations: 0.599 MB / 0.5877 GB, free: 12.28 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.787e-05/0.7177, allocations: 12.58 kB / 0.5877 GB, free: 12.27 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001396/0.7191, allocations: 0.6157 MB / 0.5883 GB, free: 11.75 MB / 394.7 MB Notification: Performance of pre-optimization done (n=81): time 3.677e-06/0.7191, allocations: 0 / 0.5883 GB, free: 11.75 MB / 394.7 MB Notification: Performance of matching and sorting (n=82): time 0.007378/0.7265, allocations: 2.665 MB / 0.5909 GB, free: 9.453 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001639/0.7267, allocations: 212 kB / 0.5911 GB, free: 9.207 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008475/0.7276, allocations: 435.2 kB / 0.5915 GB, free: 8.859 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001626/0.7278, allocations: 57.38 kB / 0.5916 GB, free: 8.812 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003354/0.7281, allocations: 369.2 kB / 0.5919 GB, free: 8.527 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003312/0.7285, allocations: 233.2 kB / 0.5922 GB, free: 8.332 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.94e-05/0.7286, allocations: 18.44 kB / 0.5922 GB, free: 8.328 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001961/0.7288, allocations: 355.5 kB / 0.5925 GB, free: 7.988 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009333/0.7297, allocations: 311.6 kB / 0.5928 GB, free: 7.785 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001089/0.7308, allocations: 498.3 kB / 0.5933 GB, free: 7.352 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009429/0.7318, allocations: 406.4 kB / 0.5937 GB, free: 7.07 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.496e-06/0.7318, allocations: 4 kB / 0.5937 GB, free: 7.066 MB / 394.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.00285/0.7347, allocations: 1.03 MB / 0.5947 GB, free: 6.273 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.691e-05/0.7348, allocations: 62.22 kB / 0.5947 GB, free: 6.203 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.923e-05/0.7348, allocations: 8 kB / 0.5948 GB, free: 6.195 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008149/0.7356, allocations: 137.1 kB / 0.5949 GB, free: 6.074 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001739/0.7374, allocations: 210.9 kB / 0.5951 GB, free: 5.875 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004548/0.742, allocations: 3.084 MB / 0.5981 GB, free: 2.73 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009662/0.743, allocations: 47.28 kB / 0.5981 GB, free: 2.699 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001017/0.7431, allocations: 39.75 kB / 0.5982 GB, free: 2.668 MB / 394.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.000741/0.7439, allocations: 363 kB / 0.5985 GB, free: 2.359 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000181/0.7441, allocations: 67.25 kB / 0.5986 GB, free: 2.293 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002745/0.7468, allocations: 0.9946 MB / 0.5996 GB, free: 1.551 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.187e-05/0.7469, allocations: 8 kB / 0.5996 GB, free: 1.543 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.115e-06/0.7469, allocations: 4 kB / 0.5996 GB, free: 1.539 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.336e-05/0.7469, allocations: 3.984 kB / 0.5996 GB, free: 1.535 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004862/0.7518, allocations: 1.882 MB / 0.6014 GB, free: 40 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.614e-06/0.7518, allocations: 4.031 kB / 0.6014 GB, free: 36 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0014/0.7533, allocations: 155.2 kB / 0.6016 GB, free: 15.89 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009944/0.7543, allocations: 146.8 kB / 0.6017 GB, free: 15.75 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000141/0.7544, allocations: 37.19 kB / 0.6017 GB, free: 15.73 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004493/0.7589, allocations: 3.075 MB / 0.6047 GB, free: 12.59 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.58e-06/0.759, allocations: 4.031 kB / 0.6047 GB, free: 12.58 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004034/0.763, allocations: 1.533 MB / 0.6062 GB, free: 11.39 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005606/0.7637, allocations: 207.3 kB / 0.6064 GB, free: 11.2 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001894/0.7639, allocations: 29.92 kB / 0.6065 GB, free: 11.18 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001659/0.7655, allocations: 34.84 kB / 0.6065 GB, free: 11.16 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005449/0.7661, allocations: 97.34 kB / 0.6066 GB, free: 11.08 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001207/0.7663, allocations: 27.48 kB / 0.6066 GB, free: 11.05 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006408/0.7669, allocations: 332.6 kB / 0.6069 GB, free: 10.8 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.767, allocations: 0 / 0.6069 GB, free: 10.8 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001131/0.7681, allocations: 216.7 kB / 0.6071 GB, free: 10.61 MB / 410.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_2.closed,switch1.switch_1.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_1.open,switch1.switch_2.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.000391/0.7685, allocations: 170.6 kB / 0.6073 GB, free: 10.45 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0034/0.7719, allocations: 1.2 MB / 0.6085 GB, free: 9.422 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.429e-06/0.772, allocations: 1.062 kB / 0.6085 GB, free: 9.422 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002428/0.7744, allocations: 0.852 MB / 0.6093 GB, free: 8.664 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001219/0.7757, allocations: 137.4 kB / 0.6094 GB, free: 8.566 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005811/0.7815, allocations: 2.147 MB / 0.6115 GB, free: 6.555 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009099/0.7824, allocations: 1.011 MB / 0.6125 GB, free: 5.539 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004129/0.7829, allocations: 63.42 kB / 0.6126 GB, free: 5.477 MB / 410.7 MB Notification: Performance of SimCode: time 8.41e-07/0.7829, allocations: 0 / 0.6126 GB, free: 5.477 MB / 410.7 MB Notification: Performance of Templates: time 0.03233/0.8152, allocations: 14.92 MB / 0.6272 GB, free: 6.656 MB / 426.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)