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.00213/0.00213, allocations: 173.5 kB / 16.76 MB, free: 5.043 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.02/3.02, allocations: 205.4 MB / 222.9 MB, free: 9.023 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.001131/0.00113, allocations: 89.39 kB / 271.3 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.3988/0.3988, allocations: 38.09 MB / 357.6 MB, free: 1.719 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005535/0.0005537, allocations: 12 kB / 423.9 MB, free: 38.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5078/0.5084, allocations: 56.32 MB / 480.3 MB, free: 9.203 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2272/0.7357, allocations: 100.3 MB / 0.567 GB, free: 2.031 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004137/0.7362, allocations: 87.95 kB / 0.5671 GB, free: 1.945 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07031/0.8065, allocations: 14.95 MB / 0.5817 GB, free: 2.789 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.8066, allocations: 4 kB / 0.5817 GB, free: 2.785 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.467e-05/0.8067, allocations: 16 kB / 0.5817 GB, free: 2.77 MB / 410.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.003469/0.8101, allocations: 1.066 MB / 0.5827 GB, free: 1.637 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.787e-05/0.8102, allocations: 12.03 kB / 0.5827 GB, free: 1.625 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003138/0.8106, allocations: 83.91 kB / 0.5828 GB, free: 1.543 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002703/0.8133, allocations: 0.7872 MB / 0.5836 GB, free: 0.7109 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001046/0.8134, allocations: 62.42 kB / 0.5836 GB, free: 0.6523 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001808/0.8136, allocations: 67.94 kB / 0.5837 GB, free: 0.5859 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002204/0.8158, allocations: 0.8163 MB / 0.5845 GB, free: 15.72 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.525e-05/0.8159, allocations: 0 / 0.5845 GB, free: 15.72 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001118/0.816, allocations: 27.98 kB / 0.5845 GB, free: 15.69 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.832e-05/0.8161, allocations: 16 kB / 0.5845 GB, free: 15.68 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001801/0.8179, allocations: 0.5944 MB / 0.5851 GB, free: 15.08 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006828/0.8247, allocations: 2.966 MB / 0.588 GB, free: 12 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001577/0.8264, allocations: 0.5897 MB / 0.5886 GB, free: 11.39 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00104/0.8274, allocations: 399.7 kB / 0.589 GB, free: 11 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.17e-05/0.8275, allocations: 12.5 kB / 0.589 GB, free: 10.99 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001536/0.8291, allocations: 0.6077 MB / 0.5896 GB, free: 10.35 MB / 426.7 MB Notification: Performance of pre-optimization done (n=81): time 4.718e-06/0.8291, allocations: 0 / 0.5896 GB, free: 10.35 MB / 426.7 MB Notification: Performance of matching and sorting (n=82): time 0.007737/0.8368, allocations: 2.521 MB / 0.592 GB, free: 7.699 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001833/0.8371, allocations: 204.6 kB / 0.5922 GB, free: 7.457 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001086/0.8382, allocations: 482 kB / 0.5927 GB, free: 6.977 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001082/0.8383, allocations: 53.7 kB / 0.5928 GB, free: 6.918 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004486/0.8388, allocations: 340.1 kB / 0.5931 GB, free: 6.578 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003243/0.8391, allocations: 239.7 kB / 0.5933 GB, free: 6.344 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.47e-05/0.8392, allocations: 16 kB / 0.5933 GB, free: 6.328 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002221/0.8395, allocations: 394.7 kB / 0.5937 GB, free: 5.934 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008367/0.8403, allocations: 309.8 kB / 0.594 GB, free: 5.629 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009885/0.8413, allocations: 0.4977 MB / 0.5945 GB, free: 5.062 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001887/0.8432, allocations: 0.8594 MB / 0.5953 GB, free: 4.109 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.783e-06/0.8432, allocations: 0 / 0.5953 GB, free: 4.109 MB / 426.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.003248/0.8465, allocations: 1.076 MB / 0.5964 GB, free: 3.012 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.569e-05/0.8466, allocations: 63.41 kB / 0.5964 GB, free: 2.938 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.851e-05/0.8467, allocations: 4 kB / 0.5964 GB, free: 2.934 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008278/0.8475, allocations: 137.7 kB / 0.5966 GB, free: 2.793 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001437/0.8489, allocations: 207.7 kB / 0.5968 GB, free: 2.59 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004534/0.8535, allocations: 3.052 MB / 0.5997 GB, free: 15.27 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001156/0.8547, allocations: 47.97 kB / 0.5998 GB, free: 15.22 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001234/0.8549, allocations: 36 kB / 0.5998 GB, free: 15.19 MB / 442.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.0009725/0.8559, allocations: 366.1 kB / 0.6002 GB, free: 14.81 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002276/0.8561, allocations: 75.09 kB / 0.6002 GB, free: 14.74 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003126/0.8592, allocations: 0.9957 MB / 0.6012 GB, free: 13.71 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-05/0.8593, allocations: 11.94 kB / 0.6012 GB, free: 13.7 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.675e-06/0.8593, allocations: 0 / 0.6012 GB, free: 13.7 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.455e-05/0.8594, allocations: 3.984 kB / 0.6012 GB, free: 13.7 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005702/0.8651, allocations: 1.878 MB / 0.6031 GB, free: 11.74 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.718e-06/0.8651, allocations: 0 / 0.6031 GB, free: 11.74 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001074/0.8662, allocations: 155.8 kB / 0.6032 GB, free: 11.59 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008241/0.8671, allocations: 149.5 kB / 0.6034 GB, free: 11.44 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001061/0.8672, allocations: 23.98 kB / 0.6034 GB, free: 11.41 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004349/0.8715, allocations: 3.048 MB / 0.6064 GB, free: 8.098 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.213e-06/0.8716, allocations: 0 / 0.6064 GB, free: 8.098 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003924/0.8755, allocations: 1.516 MB / 0.6078 GB, free: 6.539 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005669/0.8762, allocations: 204.2 kB / 0.608 GB, free: 6.32 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001767/0.8764, allocations: 27.98 kB / 0.6081 GB, free: 6.293 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005971/0.877, allocations: 47.95 kB / 0.6081 GB, free: 6.246 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003227/0.8773, allocations: 88.47 kB / 0.6082 GB, free: 6.16 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.629e-05/0.8774, allocations: 27.98 kB / 0.6082 GB, free: 6.133 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0006906/0.8781, allocations: 330.8 kB / 0.6085 GB, free: 5.809 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.8781, allocations: 4 kB / 0.6085 GB, free: 5.805 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001267/0.8794, allocations: 208 kB / 0.6087 GB, free: 5.602 MB / 442.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.0004203/0.8799, allocations: 178.9 kB / 0.6089 GB, free: 5.418 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003211/0.8831, allocations: 1.193 MB / 0.6101 GB, free: 4.176 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.8831, allocations: 0 / 0.6101 GB, free: 4.176 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002342/0.8855, allocations: 0.8472 MB / 0.6109 GB, free: 3.273 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001605/0.8871, allocations: 141.6 kB / 0.611 GB, free: 3.137 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005472/0.8926, allocations: 2.168 MB / 0.6131 GB, free: 0.9219 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008624/0.8935, allocations: 0.997 MB / 0.6141 GB, free: 15.9 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004103/0.8939, allocations: 59.44 kB / 0.6142 GB, free: 15.84 MB / 458.7 MB Notification: Performance of SimCode: time 6.81e-07/0.894, allocations: 0 / 0.6142 GB, free: 15.84 MB / 458.7 MB Notification: Performance of Templates: time 0.03524/0.9292, allocations: 15.49 MB / 0.6293 GB, free: 356 kB / 458.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)