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.002137/0.002137, allocations: 185.7 kB / 8.013 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.067/2.067, allocations: 205.3 MB / 213.7 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00107/0.00107, allocations: 86.64 kB / 261.8 MB, free: 1.68 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2532/0.2532, allocations: 37.99 MB / 347.7 MB, free: 5.77 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.305e-05/2.314e-05, allocations: 0 / 409.9 MB, free: 35.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1194/0.1195, allocations: 56.33 MB / 466.2 MB, free: 10.82 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4941/0.6136, allocations: 99.51 MB / 0.5524 GB, free: 9.477 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002748/0.6139, allocations: 96.48 kB / 0.5525 GB, free: 9.457 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05933/0.6733, allocations: 14.81 MB / 0.567 GB, free: 15.34 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.6733, allocations: 3.938 kB / 0.567 GB, free: 15.34 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.967e-05/0.6734, allocations: 19.94 kB / 0.567 GB, free: 15.32 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.002738/0.6762, allocations: 0.9623 MB / 0.568 GB, free: 14.34 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.3e-05/0.6762, allocations: 12.02 kB / 0.568 GB, free: 14.32 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003564/0.6766, allocations: 86.97 kB / 0.5681 GB, free: 14.24 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004404/0.681, allocations: 1.065 MB / 0.5691 GB, free: 13.32 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.98e-05/0.6811, allocations: 30.67 kB / 0.5691 GB, free: 13.29 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001961/0.6814, allocations: 42.5 kB / 0.5692 GB, free: 13.25 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00155/0.6829, allocations: 0.5376 MB / 0.5697 GB, free: 12.89 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001702/0.6846, allocations: 0.725 MB / 0.5704 GB, free: 12.3 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.62e-05/0.6847, allocations: 4 kB / 0.5704 GB, free: 12.3 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.442e-05/0.6848, allocations: 7.984 kB / 0.5704 GB, free: 12.29 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.403e-05/0.6848, allocations: 16 kB / 0.5704 GB, free: 12.27 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006157/0.691, allocations: 2.839 MB / 0.5732 GB, free: 9.809 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001294/0.6923, allocations: 0.5631 MB / 0.5737 GB, free: 9.418 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001206/0.6936, allocations: 449.9 kB / 0.5742 GB, free: 9.102 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.42e-05/0.6936, allocations: 8.562 kB / 0.5742 GB, free: 9.094 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00126/0.6949, allocations: 0.5957 MB / 0.5748 GB, free: 8.59 MB / 378.7 MB Notification: Performance of pre-optimization done (n=81): time 3.166e-06/0.6949, allocations: 0 / 0.5748 GB, free: 8.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=82): time 0.004589/0.6995, allocations: 1.705 MB / 0.5764 GB, free: 7.148 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001433/0.6997, allocations: 204.4 kB / 0.5766 GB, free: 6.91 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006819/0.7004, allocations: 384.8 kB / 0.577 GB, free: 6.605 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001044/0.7005, allocations: 41.44 kB / 0.577 GB, free: 6.562 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000316/0.7008, allocations: 371.1 kB / 0.5774 GB, free: 6.273 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002832/0.7011, allocations: 226.5 kB / 0.5776 GB, free: 6.082 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.387e-05/0.7012, allocations: 0 / 0.5776 GB, free: 6.082 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001715/0.7014, allocations: 355.9 kB / 0.5779 GB, free: 5.742 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007139/0.7021, allocations: 285 kB / 0.5782 GB, free: 5.566 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008786/0.703, allocations: 475.8 kB / 0.5787 GB, free: 5.16 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007583/0.7038, allocations: 313.2 kB / 0.579 GB, free: 4.949 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.965e-06/0.7038, allocations: 7.938 kB / 0.579 GB, free: 4.941 MB / 378.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002393/0.7062, allocations: 0.8759 MB / 0.5798 GB, free: 4.254 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.853e-05/0.7063, allocations: 59.41 kB / 0.5799 GB, free: 4.184 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.479e-05/0.7063, allocations: 4.5 kB / 0.5799 GB, free: 4.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008047/0.7071, allocations: 139.5 kB / 0.58 GB, free: 4.055 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001695/0.7088, allocations: 206.7 kB / 0.5802 GB, free: 3.859 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004136/0.713, allocations: 2.94 MB / 0.5831 GB, free: 0.8711 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009175/0.714, allocations: 39.98 kB / 0.5831 GB, free: 0.832 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.26e-05/0.7141, allocations: 38.8 kB / 0.5832 GB, free: 0.8008 MB / 378.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 () * 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.0003656/0.7144, allocations: 212.4 kB / 0.5834 GB, free: 0.582 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001748/0.7146, allocations: 71.25 kB / 0.5834 GB, free: 0.5117 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002386/0.7171, allocations: 0.8466 MB / 0.5843 GB, free: 15.88 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.495e-05/0.7171, allocations: 11.94 kB / 0.5843 GB, free: 15.86 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.436e-06/0.7171, allocations: 3.984 kB / 0.5843 GB, free: 15.86 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.303e-05/0.7171, allocations: 3.984 kB / 0.5843 GB, free: 15.86 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004294/0.7215, allocations: 1.656 MB / 0.5859 GB, free: 14.54 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.915e-06/0.7215, allocations: 0 / 0.5859 GB, free: 14.54 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001378/0.7229, allocations: 158.9 kB / 0.5861 GB, free: 14.38 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009598/0.7239, allocations: 148.2 kB / 0.5862 GB, free: 14.25 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001191/0.724, allocations: 15.86 kB / 0.5862 GB, free: 14.23 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004122/0.7281, allocations: 2.939 MB / 0.5891 GB, free: 11.25 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.066e-05/0.7282, allocations: 4.031 kB / 0.5891 GB, free: 11.24 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003454/0.7317, allocations: 1.386 MB / 0.5904 GB, free: 10.18 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005511/0.7323, allocations: 203.9 kB / 0.5906 GB, free: 9.98 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001802/0.7325, allocations: 22.05 kB / 0.5907 GB, free: 9.965 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007335/0.7332, allocations: 23.97 kB / 0.5907 GB, free: 9.941 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003157/0.7335, allocations: 96.89 kB / 0.5908 GB, free: 9.863 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.975e-05/0.7336, allocations: 22.98 kB / 0.5908 GB, free: 9.844 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005134/0.7342, allocations: 290.1 kB / 0.5911 GB, free: 9.621 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.216e-06/0.7342, allocations: 0 / 0.5911 GB, free: 9.621 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001109/0.7353, allocations: 195.4 kB / 0.5913 GB, free: 9.434 MB / 394.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) * 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.0003655/0.7357, allocations: 152.8 kB / 0.5914 GB, free: 9.281 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002956/0.7387, allocations: 1.115 MB / 0.5925 GB, free: 8.348 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.02e-06/0.7387, allocations: 5.188 kB / 0.5925 GB, free: 8.344 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002229/0.7409, allocations: 0.8067 MB / 0.5933 GB, free: 7.637 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001212/0.7422, allocations: 127.8 kB / 0.5934 GB, free: 7.535 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004672/0.7469, allocations: 1.451 MB / 0.5948 GB, free: 6.203 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008355/0.7478, allocations: 1.007 MB / 0.5958 GB, free: 5.188 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003985/0.7482, allocations: 59.42 kB / 0.5959 GB, free: 5.133 MB / 394.7 MB Notification: Performance of SimCode: time 1.092e-06/0.7482, allocations: 0 / 0.5959 GB, free: 5.133 MB / 394.7 MB Notification: Performance of Templates: time 0.03228/0.7805, allocations: 14.8 MB / 0.6103 GB, free: 6.445 MB / 410.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)